Commit e86dddd6 authored by 罗超's avatar 罗超

1

parent 30996af9
......@@ -25,18 +25,18 @@
</template>
</van-nav-bar>
<view class="exam-con" v-if="!isShowAnswer">
<view v-for="(item, index) in peaperDetail.Paper.GroupList" :key="index">
<i
class="iconfont icon-caidanzu answerSheet"
style="
position: absolute;
right: 15px;
right: 30rpx;
z-index: 999;
margin-top: 13px;
margin-top: 26rpx;
"
:style="{ top: statusBarHeight + 65 }"
:style="{ top: `calc(${statusBarHeight}px + 105rpx)` }"
@click="showAnswerSheet"
></i>
<view v-for="(item, index) in peaperDetail.Paper.GroupList" :key="index">
<!-- 数字单选题 -->
<SingleChoiceNumber
:startIndex="item.startIndex"
......@@ -48,7 +48,9 @@
:sortTotal="peaperDetail.Paper.GroupList.length"
:isLast="isLast"
:isOperate="isOperate"
v-if="item.QuestionTypeKey === 'single-number' && index === changeIndex"
v-if="
item.QuestionTypeKey === 'single-number' && index === changeIndex
"
/>
<!-- 多选题 -->
<MultipleChoice
......@@ -141,7 +143,9 @@
@getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'short-answer' && index === changeIndex"
v-if="
item.QuestionTypeKey === 'short-answer' && index === changeIndex
"
/>
<!-- 名词解释 -->
<nounExplanation
......@@ -277,7 +281,9 @@
@getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'sorting-problem' && index === changeIndex"
v-if="
item.QuestionTypeKey === 'sorting-problem' && index === changeIndex
"
/>
<!-- 连线题待完善 -->
<Connect
......@@ -370,7 +376,7 @@ export default {
time: 999,
statusBarHeight: 0,
// msg: { GuestId: 0, PaperId: 0, PublishId: 0},
msg: { GuestId: 20, PaperId: 9, PublishId: 1 ,isShowAnswer: true},
msg: { GuestId: 20, PaperId: 9, PublishId: 1, isShowAnswer: true },
peaperDetail: {},
changeIndex: 0, //大题序号
......@@ -378,7 +384,7 @@ export default {
isShowAnswer: false, //是否显示答题卡
Exam_Student_Id: 0,
autoTimeStart: false,
isOperate:true, //考试状态 判断是考试还是查看答案
isOperate: true, //考试状态 判断是考试还是查看答案
});
let methods = {
changeNumToHan,
......@@ -440,9 +446,7 @@ export default {
},
};
onMounted(() => {
getSystemInfo((res) => {
data.statusBarHeight = res.statusBarHeight;
});
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
});
return {
...toRefs(data),
......@@ -463,9 +467,9 @@ export default {
if (options.Exam_Student_Id) {
this.Exam_Student_Id = options.Exam_Student_Id;
}
if (options.ExamStatus&&options.ExamStatus==1){
if (options.ExamStatus && options.ExamStatus == 1) {
this.isOperate = false;
this.msg.isShowAnswer=true;
this.msg.isShowAnswer = true;
}
this.getPaperDetail();
},
......
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