添加题目数量+考试时长灵活设置

This commit is contained in:
@fawn-nine
2024-09-11 17:05:56 +08:00
parent 72dcbfdd82
commit c71b2c67b4
7 changed files with 327 additions and 353 deletions

View File

@@ -387,8 +387,9 @@
var severNowTime = -1
// paperData = await this.getlocaltestInfo('paperEndTime')
var historyPaper = await this.getingPaper()
if(historyPaper){
paperEndTime = this.hourUp(historyPaper.startTime,1) // 结束的时间戳
if(historyPaper && historyPaper != null){
var planEndTimeDate = new Date(historyPaper.planEndTime)
paperEndTime = planEndTimeDate.getTime(); // 结束的时间戳
this.examId = historyPaper.id
this.classId = historyPaper.classId
}else{
@@ -484,9 +485,12 @@
.then(async (res) => {
console.log('考试中',res);
if (res.code == 0 && res.classExamUser != null) {
obj = res.classExamUser
obj = {...res.classExamUser, planEndTime:res.planEndTime}
}else{
obj = undefined
}
}).catch(e => {
}).catch(e => {
obj = undefined
});
return obj