618活动修改

This commit is contained in:
liuyuan
2025-06-12 17:08:34 +08:00
parent 29b2a8b206
commit e0556ef0fd
11 changed files with 219 additions and 197 deletions

View File

@@ -50,16 +50,16 @@
</view>
<view class="optionsBox">
<view :class="['item','border_radius_10',
item.rightWrong == 1 ? 'right' : '',
checkAnswer(item.id) && item.rightWrong == 0 ? 'wrong' : '',
checkAnswer(item.id) && item.rightWrong == 1 ? 'right' : ''
item.right_wrong == 1 ? 'right' : '',
checkAnswer(item.id) && item.right_wrong == 0 ? 'wrong' : '',
checkAnswer(item.id) && item.right_wrong == 1 ? 'right' : ''
]"
v-for="(item, index) in curQuestion.options" :key="index">
<!-- {{checkAnswer(item.id) ? '包含' : '不包含'}} -->
<view class="flex_box flex_between">
<text>{{item.content}}</text>
<text
v-if="checkAnswer(item.id)">{{item.rightWrong == 1 ? '正确':'错误'}}</text>
v-if="checkAnswer(item.id)">{{item.right_wrong == 1 ? '正确':'错误'}}</text>
</view>
</view>
@@ -236,6 +236,8 @@ checkAnswer(id){
})
this.questionList = subOptions
console.log('this.questionListthis.questionListthis.questionList', this.questionList)
this.testPaper = res.examPaper
console.log('试卷信息', this.testPaper);
this.answerIdsList = JSON.parse(res.examPaper.answer)