From 9375dfbf2ea9c082d78f82abe072a4ef9521728e Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 12 二月 2025 16:27:57 +0800
Subject: [PATCH] ll

---
 h5/pages/polling/detail.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/h5/pages/polling/detail.vue b/h5/pages/polling/detail.vue
index 202dfeb..228733e 100644
--- a/h5/pages/polling/detail.vue
+++ b/h5/pages/polling/detail.vue
@@ -83,7 +83,8 @@
 				id: '',
 				info: {},
 				list: [],
-				flag: false,
+				flag: false,
+				userInfo: uni.getStorageSync('userInfo') || {},
 				statusM: [{
 						color: '#4593f7',
 						name: '寰呭紑濮�'
@@ -180,8 +181,10 @@
 				ywPatrolDetail(id).then(res => {
 					this.info = res.data
 					let time = new Date(res.data.startDate).getTime()
-					console.log('res.data.startDate', new Date().getTime());
-					this.flag = new Date().getTime() > time && (this.info.status == 0 || this.info.status == 1 || this.info.status == 2)
+					console.log('res.data.startDate', new Date().getTime());
+					if(res.data.userIds.indexOf(this.userInfo.id) > -1){
+						this.flag = new Date().getTime() > time && (this.info.status == 0 || this.info.status == 1 || this.info.status == 2)
+					}
 				})
 				ywPatrolTaskRecord({
 					capacity: 999,

--
Gitblit v1.9.3