From c52adbb7f9d112ed2d0aae703b350b05dbc51018 Mon Sep 17 00:00:00 2001 From: WenShiJun Date: Fri, 29 Mar 2024 14:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E4=BE=8B=E4=BC=9A=E6=9C=AA?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E6=88=96=E5=B7=B2=E7=BB=93=E6=9D=9F=E4=BB=8D?= =?UTF-8?q?=E5=8F=AF=E8=BF=9B=E5=85=A5=E9=97=AE=E9=A2=98=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/application/safetymeeting/home.vue | 25 +++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/pages/application/safetymeeting/home.vue b/pages/application/safetymeeting/home.vue index e5830b0..38de609 100644 --- a/pages/application/safetymeeting/home.vue +++ b/pages/application/safetymeeting/home.vue @@ -102,13 +102,24 @@ loginSession(); }, methods: { - //跳转事件 - goToDetail(e) { - uni.navigateTo({ - url: '/pages/application/safetymeeting/safetymeeting-detail?id=' + e - .SAFETY_MEETING_ID - }); - }, + //跳转事件 + goToDetail(item) { + if(item.MEETING_STATUS === '0') { + uni.showToast({ + title: '会议未开始', + icon: 'none' + }); + } else if(item.MEETING_STATUS === '2') { + uni.showToast({ + title: '会议已结束', + icon: 'none' + }); + } else { + uni.navigateTo({ + url: '/pages/application/safetymeeting/safetymeeting-detail?id=' + item.SAFETY_MEETING_ID + }); + } + }, getQuery() { //搜索按钮事件 var _this = this; _this.showCount = -1;