Commit afb34daa authored by zhengke's avatar zhengke

1

parent 18df880a
...@@ -390,6 +390,7 @@ export default { ...@@ -390,6 +390,7 @@ export default {
Exam_Student_Id: 0, Exam_Student_Id: 0,
autoTimeStart: false, autoTimeStart: false,
isOperate: true, //考试状态 判断是考试还是查看答案 isOperate: true, //考试状态 判断是考试还是查看答案
isAutoTime: true
}); });
let methods = { let methods = {
changeNumToHan, changeNumToHan,
...@@ -409,8 +410,11 @@ export default { ...@@ -409,8 +410,11 @@ export default {
if (res) { if (res) {
if (res.Code == 1) { if (res.Code == 1) {
data.peaperDetail = res.Data; data.peaperDetail = res.Data;
data.autoTimeStart = true; //判断是查看答题结果就不倒计时
data.time = res.Data.Publish.ExamTimes * 60 * 1000; if(this.isAutoTime){
data.autoTimeStart = true;
data.time = res.Data.Publish.ExamTimes * 60 * 1000;
}
} }
} }
}, },
...@@ -475,6 +479,7 @@ export default { ...@@ -475,6 +479,7 @@ export default {
if (options.ExamStatus && options.ExamStatus == 1) { if (options.ExamStatus && options.ExamStatus == 1) {
this.isOperate = false; this.isOperate = false;
this.msg.isShowAnswer = true; this.msg.isShowAnswer = true;
this.isAutoTime = false;
} }
this.getPaperDetail(); this.getPaperDetail();
}, },
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
:key="index" :key="index"
class="exam-item" class="exam-item"
:style="{ 'background-image': `url(${item.PicList[0]})` }" :style="{ 'background-image': `url(${item.PicList[0]})` }"
@click="jumpPage(item.PaperId, item.Id, item.Exam_Student_Id)" @click="jumpPage(item.PaperId, item.Id, item.Exam_Student_Id,item.ExamStatus)"
> >
<view class="testName"> <view class="testName">
{{ item.PaperName }} {{ item.PaperName }}
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
data.msg.pageIndex = 1; data.msg.pageIndex = 1;
methods.getList(); methods.getList();
}, },
jumpPage(PaperId, Id, SId) { jumpPage(PaperId, Id, SId,ExamStatus) {
uni.navigateTo({ uni.navigateTo({
url: url:
"/pages/exam/examPaper?PaperId=" + "/pages/exam/examPaper?PaperId=" +
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
"&&Id=" + "&&Id=" +
Id + Id +
"&&Exam_Student_Id=" + "&&Exam_Student_Id=" +
SId, SId+"&&ExamStatus="+ExamStatus
}); });
}, },
lower(e) { lower(e) {
......
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