Commit d9737374 authored by zhengke's avatar zhengke

修改

parent 458bc903
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
/> />
<van-count-down <van-count-down
:time="time" :time="time"
:auto-start="true" :auto-start="autoTimeStart"
class="flex flex_center_center" class="flex flex_center_center"
ref="countdown" ref="countdown"
@finish="examFinish" @finish="examFinish"
...@@ -356,15 +356,16 @@ export default { ...@@ -356,15 +356,16 @@ export default {
let Gid = uni.getStorageSync("userInfo").Id; let Gid = uni.getStorageSync("userInfo").Id;
let { refs } = getCurrentInstance(); let { refs } = getCurrentInstance();
let data = reactive({ let data = reactive({
time: 1 * 60 * 60 * 1000, time: 999,
statusBarHeight: 0, statusBarHeight: 0,
// msg: { GuestId: Gid, PaperId: 6, Id: 3 }, // msg: { GuestId: 64, PaperId: 34, PublishId: 9 },
msg: { GuestId: Gid, PaperId: 0, PublishId: 0 }, msg: { GuestId: Gid, PaperId: 0, PublishId: 0 },
peaperDetail: {}, peaperDetail: {},
changeIndex: 0, //大题序号 changeIndex: 0, //大题序号
isLast: false, //用于判断是否从后往前翻 isLast: false, //用于判断是否从后往前翻
isShowAnswer: false, //是否显示答题卡 isShowAnswer: false, //是否显示答题卡
Exam_Student_Id: 0, Exam_Student_Id: 0,
autoTimeStart:false
}); });
let methods = { let methods = {
changeNumToHan, changeNumToHan,
...@@ -382,9 +383,12 @@ export default { ...@@ -382,9 +383,12 @@ export default {
async getPaperDetail() { async getPaperDetail() {
let res = await getPaperDetail(data.msg); let res = await getPaperDetail(data.msg);
if (res) { if (res) {
if(res.Code==1){
data.peaperDetail = res.Data; data.peaperDetail = res.Data;
data.autoTimeStart = true;
data.time = res.Data.Publish.ExamTimes * 60 * 1000; data.time = res.Data.Publish.ExamTimes * 60 * 1000;
} }
}
}, },
//往后翻 //往后翻
getAfterTopic() { getAfterTopic() {
......
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