Commit bfc29922 authored by zhengke's avatar zhengke

修改

parent 441226c0
...@@ -45,14 +45,18 @@ ...@@ -45,14 +45,18 @@
<text style="color: #8c8a94">正确答案:</text> <text style="color: #8c8a94">正确答案:</text>
<text class="isTrueAnswer">{{item1.QuestionAnswerList[index2].SubAnswer}}</text> <text class="isTrueAnswer">{{item1.QuestionAnswerList[index2].SubAnswer}}</text>
<text>您的答案: <text>您的答案:
<template v-if="item1.AnswerList[index2].SubAnswer != ''"> <template v-if="item1.AnswerList&&item1.AnswerList.length>0&&item1.AnswerList[index2].SubAnswer != ''">
<text v-if="item1.QuestionAnswerList[index2].SubAnswer==item1.AnswerList[index2].SubAnswer" class="isTrueAnswer"> <text v-if="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">{{ item1.AnswerList[index2].SubAnswer }},回答错误</text> <text v-else class="isNotAnswer">
<template v-if="item1.AnswerList[index2].SubAnswer">
{{ item1.AnswerList[index2].SubAnswer }},回答错误
</template> </template>
<template v-else> <template v-else>
<text>未作答</text> 未作答
</template>
</text>
</template> </template>
</text> </text>
</view> </view>
......
...@@ -380,9 +380,7 @@ export default { ...@@ -380,9 +380,7 @@ export default {
let data = reactive({ let data = reactive({
time: 999, time: 999,
statusBarHeight: 0, statusBarHeight: 0,
// msg: { GuestId: 0, PaperId: 0, PublishId: 0}, msg: { GuestId: 0, PaperId: 0, PublishId: 0},
msg: { GuestId: 20, PaperId: 9, PublishId: 1, isShowAnswer: true },
peaperDetail: {}, peaperDetail: {},
changeIndex: 0, //大题序号 changeIndex: 0, //大题序号
isLast: false, //用于判断是否从后往前翻 isLast: false, //用于判断是否从后往前翻
...@@ -463,16 +461,15 @@ export default { ...@@ -463,16 +461,15 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
console.log(options, "options"); if(options.GuestId){
// if(options.GuestId){ this.msg.GuestId = options.GuestId;
// this.msg.GuestId = options.GuestId; }
// } if (options.PaperId) {
// if (options.PaperId) { this.msg.PaperId = options.PaperId;
// this.msg.PaperId = options.PaperId; }
// } if (options.Id) {
// if (options.Id) { this.msg.PublishId = options.Id;
// this.msg.PublishId = options.Id; }
// }
if (options.Exam_Student_Id) { if (options.Exam_Student_Id) {
this.Exam_Student_Id = options.Exam_Student_Id; this.Exam_Student_Id = options.Exam_Student_Id;
} }
......
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