修复:自考试卷答案显示问题
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user