Commit ed2232e6 authored by zhengzy's avatar zhengzy

删除试题题号

parent 6d9a8b82
......@@ -246,6 +246,7 @@ var examJson = {
examId: "",
examStatus: "",
isComplete: false,
questionTime: null,
},
{
title: "接单操作",
......@@ -257,6 +258,7 @@ var examJson = {
examId: "",
examStatus: "",
isComplete: false,
questionTime: null,
},
],
test: [
......@@ -269,6 +271,7 @@ var examJson = {
id: 3,
examId: "",
examStatus: "",
questionTime: null,
isComplete: false,
},
{
......@@ -280,6 +283,7 @@ var examJson = {
id: 4,
examId: "",
examStatus: "",
questionTime: null,
isComplete: false,
},
],
......@@ -294,6 +298,7 @@ var examJson = {
examId: "",
examStatus: "",
isComplete: false,
questionTime: null,
},
{
title: "接单操作",
......@@ -305,6 +310,7 @@ var examJson = {
examId: "",
examStatus: "",
isComplete: false,
questionTime: null,
},
],
};
......@@ -379,6 +385,7 @@ export default {
examId: examListJson[0].examId,
examStatus: examListJson[0].examStatus,
isComplete: examListJson[0].isComplete,
questionTime: examListJson[0].questionTime,
},
{
title: examListJson[1].title,
......@@ -390,6 +397,7 @@ export default {
examId: examListJson[1].examId,
examStatus: examListJson[1].examStatus,
isComplete: examListJson[1].isComplete,
questionTime: examListJson[1].questionTime,
},
],
loadStatus: "loading",
......@@ -635,6 +643,11 @@ export default {
}
this.examList[i].examId = res.data.id;
this.examList[i].examStatus = res.data.examStatus; //i;//
this.examList[i].questionTime = res.data.questionTime;
console.log(
this.examList[i].questionTime,
"每题考试时间"
);
let examResult = res.data.examLevelResult;
this.examList[i].status =
examResult != "" ? examResult : "未通过";
......@@ -671,6 +684,9 @@ export default {
aaa(index) {
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
//考试完成分成通过、未通过
getApp().globalData.questionTime = this.examList[
index
].questionTime;
var examInfo = this.examList[index];
if (examInfo.examStatus == 0) {
console.log("这是试卷id", examInfo.id);
......
......@@ -74,8 +74,8 @@ export default {
isSelect: false,
timeDefine: {
"time-id-2": 1800,
"time-id-3": 900,
"time-id-4": 450,
"time-id-3": getApp().globalData.questionTime * 5,
"time-id-4": getApp().globalData.questionTime * 5,
},
endTime: 0,
currentTime: 100,
......@@ -130,6 +130,7 @@ export default {
if (h !== "00") res += `${h}:`;
if (m !== "00") res += `${m}:`;
res += `${s}`;
if (this.endTime == 0) res = "00:00";
return res;
},
toSubmit() {
......@@ -353,13 +354,20 @@ export default {
}
if (res.data.code == 200) {
that.currentItem = res.data.data;
console.log(that.currentItem);
that.progress = res.data.data.progress;
if (res.data.data.isQuestion) {
let str = res.data.data.question.content;
var wz = str.indexOf(".");
let str1 = str.substring(wz + 1);
console.log(that.currentItem);
that.currentItem.question.content = str1;
console.log(str1, "切割的字符串");
}
if (res.data.data.answerList) {
that.handleData();
// that.currentTime = 100
this.everyTime = 90; //每道题90s
this.everyTime = getApp().globalData.questionTime; //每道题100s
that.isSelect = false;
clearTimeout(this.timer);
that.startCounting();
......
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