|
|
|
@ -69,7 +69,7 @@ const allChange = () => { |
|
|
|
content: '确定吗?', |
|
|
|
success: function (res) { |
|
|
|
if (res.confirm) { |
|
|
|
xjList.value.data?.forEach((ele: { vote_result: number }) => { |
|
|
|
xjList.value.candidate?.forEach((ele: { vote_result: number }) => { |
|
|
|
ele.vote_result = 1 |
|
|
|
}) |
|
|
|
params.value = xjList.value.candidate |
|
|
|
@ -100,7 +100,9 @@ const submit = () => { |
|
|
|
duration: 1500 // 持续时长,单位ms |
|
|
|
}) |
|
|
|
} else { |
|
|
|
voteMember(param) |
|
|
|
voteMember(param).then(res=> { |
|
|
|
uni.showToast({ title: res.msg, icon: 'success', duration: 1000 }) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|