From 3ece39f6834fe4604ecac75a8de6993340233eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B2=B3=E9=B9=8F=E9=BE=99?= <1547476325@qq.com> Date: Wed, 14 May 2025 08:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/votingElection/index.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/votingElection/index.vue b/src/pages/votingElection/index.vue index 481b0ec..bc6d192 100644 --- a/src/pages/votingElection/index.vue +++ b/src/pages/votingElection/index.vue @@ -108,11 +108,11 @@ } else { voteMember(param).then((res : any) => { if (res.code === 1) { - uni.showToast({ title: res.msg, icon: 'success', duration: 1000 }) + uni.showToast({ title: '投票成功', icon: 'success', duration: 1000 }) isButton.value = false } - else if (res.msg === '您已投票') { - console.log(res.msg); + else if (res.code === 0) { + uni.showToast({ title: '您已投票,无需重复投票', icon: 'success', duration: 1000 }) isButton.value = false } }) @@ -154,7 +154,7 @@ - {{row.num}} + {{row.num + 1}}、 @@ -250,7 +250,6 @@ } .rightpart { - margin-left: 32rpx; display: grid; justify-items: left; align-content: baseline;