Commit 89d64c41 authored by 罗超's avatar 罗超

1

parent b56dd3b4
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
:auto-start="true" :auto-start="true"
class="flex flex_center_center" class="flex flex_center_center"
ref="countdown" ref="countdown"
@finish="examFinish"
/> />
</view> </view>
</template> </template>
...@@ -285,6 +286,7 @@ ...@@ -285,6 +286,7 @@
:paperData="peaperDetail" :paperData="peaperDetail"
@hideAnswer="hideAnswerSheet" @hideAnswer="hideAnswerSheet"
@chooseTopic="jumpTopic" @chooseTopic="jumpTopic"
ref="answer"
/> />
</view> </view>
<van-toast id="van-toast" /> <van-toast id="van-toast" />
...@@ -412,7 +414,14 @@ export default { ...@@ -412,7 +414,14 @@ export default {
val.index1 + 1; val.index1 + 1;
data.isShowAnswer = false; data.isShowAnswer = false;
}, },
//考试结束
examFinish() {
if (data.peaperDetail.Publish.IsAutoSubmit === 1) {
refs.answer;
}
},
}; };
console.log(424, refs.answer);
onMounted(() => { onMounted(() => {
getSystemInfo((res) => { getSystemInfo((res) => {
data.statusBarHeight = res.statusBarHeight; data.statusBarHeight = res.statusBarHeight;
...@@ -426,7 +435,6 @@ export default { ...@@ -426,7 +435,6 @@ export default {
onLoad(options) { onLoad(options) {
this.msg.PaperId = options.PaperId; this.msg.PaperId = options.PaperId;
this.msg.PublishId = options.Id; this.msg.PublishId = options.Id;
console.log(414, this.selectComponent);
this.getPaperDetail(); 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