修复:自考试卷答案显示问题

This commit is contained in:
2025-11-04 11:34:00 +08:00
parent 1d0c9e818d
commit 335a52dbe4
6 changed files with 19 additions and 19 deletions

View File

@@ -50,16 +50,16 @@
</view>
<view class="optionsBox">
<view :class="['item','border_radius_10',
item.right_wrong == 1 ? 'right' : '',
checkAnswer(item.id) && item.right_wrong == 0 ? 'wrong' : '',
checkAnswer(item.id) && item.right_wrong == 1 ? 'right' : ''
item.rightWrong == 1 ? 'right' : '',
checkAnswer(item.id) && item.rightWrong == 0 ? 'wrong' : '',
checkAnswer(item.id) && item.rightWrong == 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.right_wrong == 1 ? '正确':'错误'}}</text>
v-if="checkAnswer(item.id)">{{item.rightWrong == 1 ? '正确':'错误'}}</text>
</view>
</view>