Commit 95e54e80 authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/xiangwei/educationstu into master

# Conflicts:
#	src/pages/exam/examPaper.vue
parents 5c0993f3 d9737374
...@@ -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, PublishId: 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,8 +383,11 @@ export default { ...@@ -382,8 +383,11 @@ export default {
async getPaperDetail() { async getPaperDetail() {
let res = await getPaperDetail(data.msg); let res = await getPaperDetail(data.msg);
if (res) { if (res) {
data.peaperDetail = res.Data; if (res.Code == 1) {
data.time = res.Data.Publish.ExamTimes * 60 * 1000; data.peaperDetail = res.Data;
data.autoTimeStart = true;
data.time = res.Data.Publish.ExamTimes * 60 * 1000;
}
} }
}, },
//往后翻 //往后翻
......
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