|
|
|
@ -10,10 +10,20 @@
|
|
|
|
|
<u-tabs :list="list1" :scrollable="false" lineWidth="30" @change="utabschange"
|
|
|
|
|
:current='tabscurrent'></u-tabs>
|
|
|
|
|
</view>
|
|
|
|
|
<scroll-view class="indexcontent-box" @scrolltolower="lowerBottom" scroll-y="true">
|
|
|
|
|
<view class="indexcontent-bottom">
|
|
|
|
|
<u-search placeholder="请输入搜索内容" v-model="massEventsObj.title" @search="searchSou" @clear="qingkong"
|
|
|
|
|
showAction animation @custom="searchSou"></u-search>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<scroll-view class="indexcontent-box" @scrolltolower="lowerBottom" scroll-y="true" :scroll-top="scrollTop">
|
|
|
|
|
<view class="indexcontent-bottom">
|
|
|
|
|
<u-search
|
|
|
|
|
placeholder="请输入搜索内容"
|
|
|
|
|
v-model="massEventsObj.title"
|
|
|
|
|
@search="searchSou"
|
|
|
|
|
@clear="qingkong"
|
|
|
|
|
showAction
|
|
|
|
|
animation
|
|
|
|
|
@custom="searchSou"
|
|
|
|
|
></u-search>
|
|
|
|
|
<template class="" v-if="contentList.length !=0">
|
|
|
|
|
<view class="indexcontentbttom-item" v-for="item in contentList">
|
|
|
|
|
<view class="indexcontentbttom-item-left">
|
|
|
|
@ -51,7 +61,7 @@
|
|
|
|
|
</u-empty>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</scroll-view>
|
|
|
|
|
<u-tabbar :value="tabValue" @change="change1" :fixed="true" :placeholder="true" :safeAreaInsetBottom="true">
|
|
|
|
|
<u-tabbar-item text="群体事件" name="群体事件-1" :badge="msgTypecount[0].count">
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="active-icon" src="@/static/images/contimg/icon-0.png">
|
|
|
|
@ -84,9 +94,7 @@
|
|
|
|
|
<image class="u-page__item__slot-icon" slot="inactive-icon"
|
|
|
|
|
src="@/static/images/contimg/icon-0-2.png"></image>
|
|
|
|
|
</u-tabbar-item>
|
|
|
|
|
|
|
|
|
|
</u-tabbar>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
@ -102,6 +110,7 @@
|
|
|
|
|
tabscurrent: 0,
|
|
|
|
|
navbarValue: "群体事件",
|
|
|
|
|
tabValue: "群体事件-1",
|
|
|
|
|
scrollTop: 0,
|
|
|
|
|
list1: [{
|
|
|
|
|
name: '待审核',
|
|
|
|
|
badge: {
|
|
|
|
@ -129,7 +138,7 @@
|
|
|
|
|
},
|
|
|
|
|
pagesLogin: "",
|
|
|
|
|
contentList: [],
|
|
|
|
|
msgTypecount: [{count:0},{count:0},{count:0},{count:0},{count:0},]
|
|
|
|
|
msgTypecount: [{count:0},{count:0},{count:0},{count:0},{count:0},],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -141,7 +150,7 @@
|
|
|
|
|
this.massEventsObj.current = 1
|
|
|
|
|
this.massEventsObj.title = ""
|
|
|
|
|
this.getList()
|
|
|
|
|
console.log(e);
|
|
|
|
|
// console.log(e);
|
|
|
|
|
},
|
|
|
|
|
//搜索
|
|
|
|
|
searchSou() {
|
|
|
|
@ -155,7 +164,7 @@
|
|
|
|
|
},
|
|
|
|
|
// 跳转
|
|
|
|
|
nextblack(item) {
|
|
|
|
|
console.log(item);
|
|
|
|
|
// console.log(item);
|
|
|
|
|
//navbarValue 头部标题
|
|
|
|
|
//tabscurrent 区分待审核0, 已上报1 重训练2
|
|
|
|
|
// item
|
|
|
|
@ -164,7 +173,7 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
//切换
|
|
|
|
|
change1(e) {
|
|
|
|
|
async change1(e) {
|
|
|
|
|
this.navbarValue = e.split("-")[0]
|
|
|
|
|
// 标题
|
|
|
|
|
this.massEventsObj.title = ""
|
|
|
|
@ -179,18 +188,21 @@
|
|
|
|
|
// 头部归位
|
|
|
|
|
this.tabscurrent = 0
|
|
|
|
|
this.geteventPageCount()
|
|
|
|
|
this.getList()
|
|
|
|
|
await this.getList();
|
|
|
|
|
this.$nextTick(function() {
|
|
|
|
|
this.scrollTop = 0
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 触底刷新
|
|
|
|
|
//触底加载
|
|
|
|
|
lowerBottom() {
|
|
|
|
|
console.log("触底加载")
|
|
|
|
|
// console.log("触底加载")
|
|
|
|
|
|
|
|
|
|
if (this.massEventsObj.current < this.pagesLogin) {
|
|
|
|
|
++this.massEventsObj.current
|
|
|
|
|
this.getList("触底")
|
|
|
|
|
} else {
|
|
|
|
|
console.log("到底了");
|
|
|
|
|
// console.log("到底了");
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '暂无更多',
|
|
|
|
|
icon: 'none',
|
|
|
|
@ -202,7 +214,7 @@
|
|
|
|
|
getList(type) {
|
|
|
|
|
|
|
|
|
|
if (this.tabscurrent == 0) {
|
|
|
|
|
this.massEventsObj.isReport = null
|
|
|
|
|
this.massEventsObj.isReport = 4
|
|
|
|
|
this.massEventsObj.toBeReviewed = 0
|
|
|
|
|
} else {
|
|
|
|
|
this.massEventsObj.toBeReviewed = null
|
|
|
|
@ -225,7 +237,7 @@
|
|
|
|
|
eventPageCount({
|
|
|
|
|
msgType: this.massEventsObj.msgType
|
|
|
|
|
}).then(res => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
// console.log(res);
|
|
|
|
|
this.list1[0].badge.value = res.data
|
|
|
|
|
})
|
|
|
|
|
fiveEventCount().then(res => {
|
|
|
|
@ -264,11 +276,20 @@
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
::v-deep .u-tabs__wrapper__nav__item {
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
.u-badge {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 15rpx;
|
|
|
|
|
top: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.indexcontent-box {
|
|
|
|
|
padding: 20rpx 20rpx 0 20rpx;
|
|
|
|
|
max-height: 85vh;
|
|
|
|
|
height: 85vh;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
|
|
.indexcontent-bottom {
|
|
|
|
|