Browse Source

修改bug

dev
岳鹏龙 11 months ago
parent
commit
3ece39f683
  1. 9
      src/pages/votingElection/index.vue

9
src/pages/votingElection/index.vue

@ -108,11 +108,11 @@
} else { } else {
voteMember(param).then((res : any) => { voteMember(param).then((res : any) => {
if (res.code === 1) { if (res.code === 1) {
uni.showToast({ title: res.msg, icon: 'success', duration: 1000 }) uni.showToast({ title: '投票成功', icon: 'success', duration: 1000 })
isButton.value = false isButton.value = false
} }
else if (res.msg === '您已投票') { else if (res.code === 0) {
console.log(res.msg); uni.showToast({ title: '您已投票,无需重复投票', icon: 'success', duration: 1000 })
isButton.value = false isButton.value = false
} }
}) })
@ -154,7 +154,7 @@
<view class="tppart"> <view class="tppart">
<view class="tpone" v-for="(row, index) of params" :key="row.id + index"> <view class="tpone" v-for="(row, index) of params" :key="row.id + index">
<view class="topp"> <view class="topp">
<text class="number">{{row.num}}</text> <text class="number">{{row.num + 1}}</text>
<!-- <img style="width: 96rpx; height: 96rpx; border-radius: 50%;margin-left: 10rpx;" :src="row.photo" alt="" /> --> <!-- <img style="width: 96rpx; height: 96rpx; border-radius: 50%;margin-left: 10rpx;" :src="row.photo" alt="" /> -->
<view class="rightpart"> <view class="rightpart">
<view class="name"> <view class="name">
@ -250,7 +250,6 @@
} }
.rightpart { .rightpart {
margin-left: 32rpx;
display: grid; display: grid;
justify-items: left; justify-items: left;
align-content: baseline; align-content: baseline;

Loading…
Cancel
Save