diff --git a/pages/home/news.vue b/pages/home/news.vue index 65591fc..b2889a9 100644 --- a/pages/home/news.vue +++ b/pages/home/news.vue @@ -162,6 +162,9 @@ export default { } }, toDetail(e){ + if(this.searchVal.msgType==0){ + this.$store.dispatch("getSysMsg") + } uni.navigateTo({ url:`/pages/home/newsDetail?type=${e.msgType}&msgType=${this.searchVal.msgType}`, events:{update:()=>this.search('pageOne')} diff --git a/pages/home/newsDetail.vue b/pages/home/newsDetail.vue index 3ade768..f4943ba 100644 --- a/pages/home/newsDetail.vue +++ b/pages/home/newsDetail.vue @@ -109,7 +109,7 @@ export default { if(res.statu){ this.list=this.list.concat(res.data.list) this.searchVal.pageNo++ - this.total=res.dta.total + this.total=res.data.total if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"}) }else{ uni.showModal({