|
@@ -78,26 +78,28 @@
|
|
|
methods:{
|
|
|
toTurn(url){
|
|
|
if(!url) return
|
|
|
+ if(url!=='/pages/dialog'&&!this.isLogin()) return
|
|
|
uni.navigateTo({
|
|
|
url
|
|
|
})
|
|
|
},
|
|
|
getWjList(){
|
|
|
this.$api.get('/core/teammember/que/listByUser').then(res=>{
|
|
|
- if(res.data.code!==0) return this.$showToast(res.data.msg)
|
|
|
+ // if(res.data.code!==0) return this.$showToast(res.data.msg)
|
|
|
+ if(res.data.code!==0) return
|
|
|
this.wjDwc = res.data.data.filter(d=>d.status===0).length;
|
|
|
this.wjYwc = res.data.data.filter(d=>d.status===1).length;
|
|
|
})
|
|
|
},
|
|
|
getReportList(){
|
|
|
this.$api.get('/core/report/member/personalReportList/2').then(res=>{
|
|
|
- if(res.data.code!==0) return this.$showToast(res.data.msg)
|
|
|
+ if(res.data.code!==0) return
|
|
|
this.bgGr = res.data.data.filter(d=>d.type==2).length;
|
|
|
})
|
|
|
},
|
|
|
getReportList2(){
|
|
|
this.$api.get('/core/report/member/personalReportList/1').then(res=>{
|
|
|
- if(res.data.code!==0) return this.$showToast(res.data.msg)
|
|
|
+ if(res.data.code!==0) return
|
|
|
this.bgTd = res.data.data.filter(d=>d.type==1).length;
|
|
|
})
|
|
|
}
|