Commit c4ee8e14 by 陆志强

feat: 优化答案显示逻辑

parent f4b92974
......@@ -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="!isJoined" #input>
<template v-if="!showResult" #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,6 +133,7 @@ export default {
isShowStatement: null,
userInfo: {},
answer: null,
showResult: false,
}
},
computed: {
......@@ -180,7 +181,7 @@ export default {
} else {
this.$toast('回答错误!谢谢参与')
}
this.info.answerStatus = 1
this.showResult = true
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