Commit ac28f31f authored by zhengke's avatar zhengke

修改

parent d636ab64
...@@ -125,20 +125,17 @@ ...@@ -125,20 +125,17 @@
}}</text> }}</text>
<text> <text>
您的答案: 您的答案:
<template v-if="item1.AnswerList && item1.AnswerList.length > 0"> <template v-if="item1.AnswerList[index2].SubAnswer!=''">
<text v-if=" <text v-if="item1.QuestionAnswerList[index2].SubAnswer == item1.AnswerList[index2].SubAnswer"class="isTrueAnswer">
item1.QuestionAnswerList[index2].SubAnswer ==
item1.AnswerList[index2].SubAnswer
" class="isTrueAnswer">
{{ item1.AnswerList[index2].SubAnswer }},回答正确 {{ item1.AnswerList[index2].SubAnswer }},回答正确
</text> </text>
<text v-else class="isNotAnswer"> <text v-else class="isNotAnswer">
<template v-if="item1.AnswerList[index2].SubAnswer != ''"> {{ item1.AnswerList[index2].SubAnswer }},回答错误
{{ item1.AnswerList[index2].SubAnswer }},回答错误
</template>
<template v-else> 未回答 </template>
</text> </text>
</template> </template>
<template v-else>
<text class="isNotAnswer">未回答</text>
</template>
</text> </text>
</view> </view>
<view style="margin-top: 20rpx" <view style="margin-top: 20rpx"
......
...@@ -123,14 +123,16 @@ ...@@ -123,14 +123,16 @@
<text <text
class="isTrueAnswer">{{item1.QuestionAnswerList[index2].SubAnswer}}</text> class="isTrueAnswer">{{item1.QuestionAnswerList[index2].SubAnswer}}</text>
<text>您的答案: <text>您的答案:
<template v-if="item1.AnswerList && item1.AnswerList.length>0"> <template v-if="item1.AnswerList[index2].SubAnswer!=''">
<text <text
v-if="item1.QuestionAnswerList[index2].SubAnswer == item1.AnswerList[index2].SubAnswer" v-if="item1.QuestionAnswerList[index2].SubAnswer == item1.AnswerList[index2].SubAnswer"
class="isTrueAnswer"> class="isTrueAnswer">
{{ item1.AnswerList[index2].SubAnswer }} {{ item1.AnswerList[index2].SubAnswer }}
</text> </text>
<text v-if="item1.AnswerList[index2].SubAnswer!=''" class="isNotAnswer">{{item1.AnswerList[index2].SubAnswer}},回答错误</text> <text v-else class="isNotAnswer">{{item1.AnswerList[index2].SubAnswer}},回答错误</text>
<text v-if="item1.AnswerList[index2].SubAnswer==''" class="isNotAnswer">未作答</text> </template>
<template v-else>
<text class="isNotAnswer">未作答</text>
</template> </template>
</text> </text>
</view> </view>
......
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 to comment