Commit 358e038c by 陆志强

Merge branch 'feature/question' into test

parents 8c753767 44cd2381
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</div> </div>
<div class="question-form-item__content" @click="judgeLogin"> <div class="question-form-item__content" @click="judgeLogin">
<van-field v-model="answer" class="ques-radio ques-radio--tag"> <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-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="{ <van-radio v-for="(item, index) in info.question.options" :key="index" :disabled="isJoined" :name="`${index}`" :style="{
'--textColor': isJoined ? '#fff' : '#2C7AFA', '--textColor': isJoined ? '#fff' : '#2C7AFA',
...@@ -133,7 +133,6 @@ export default { ...@@ -133,7 +133,6 @@ export default {
isShowStatement: null, isShowStatement: null,
userInfo: {}, userInfo: {},
answer: null, answer: null,
showResult: false,
} }
}, },
computed: { computed: {
...@@ -181,7 +180,8 @@ export default { ...@@ -181,7 +180,8 @@ export default {
} else { } else {
this.$toast('回答错误!谢谢参与') this.$toast('回答错误!谢谢参与')
} }
this.showResult = true // 赋予已参与状态
this.info.answerStatus = 3
setTimeout(() => { setTimeout(() => {
if (this.$route.query.backUrl) { if (this.$route.query.backUrl) {
window.location.href = 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