From 5f837001afac8a17951ddf8163705acb4af92db7 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Tue, 19 Nov 2024 18:15:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=BF=A1=E6=81=AF=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B6=88=E6=81=AF=E6=95=B0=E9=87=8F=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/news.vue | 3 +++ pages/home/newsDetail.vue | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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({