Commit bfc29922 authored by zhengke's avatar zhengke

修改

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