Commit afb34daa authored by zhengke's avatar zhengke

1

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