Commit 44cd2381 by 陆志强

feat: 优化答案显示逻辑

parent c80b41e1
......@@ -13,7 +13,7 @@
</div>
<div class="question-form-item__content" @click="judgeLogin">
<van-field v-model="answer" class="ques-radio ques-radio--tag">
<template v-if="!showResult" #input>
<template v-if="!isJoined" #input>
<van-radio-group v-if="info.question.options.length" :value="answer" @input="input">
<van-radio v-for="(item, index) in info.question.options" :key="index" :disabled="isJoined" :name="`${index}`" :style="{
'--textColor': isJoined ? '#fff' : '#2C7AFA',
......@@ -133,7 +133,6 @@ export default {
isShowStatement: null,
userInfo: {},
answer: null,
showResult: false,
}
},
computed: {
......@@ -181,7 +180,8 @@ export default {
} else {
this.$toast('回答错误!谢谢参与')
}
this.showResult = true
// 赋予已参与状态
this.info.answerStatus = 3
setTimeout(() => {
if (this.$route.query.backUrl) {
window.location.href = this.$route.query.backUrl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment