This commit is contained in:
@fawn-nine
2024-09-03 17:08:18 +08:00
parent 9f265afa4a
commit 69cbc35e0a
8 changed files with 572 additions and 234 deletions

View File

@@ -131,7 +131,7 @@
console.log('this.endTime',this.endTime.getTime());
},
beforeDestroy() {
if(!this.isOvertime){ // 如果中途退出就把成绩记为0
if(!this.isOvertime){ // 如果中途退出
this.giveZero()
}
@@ -144,7 +144,7 @@
var maxNumber = 0
var minNumber = 0
if(this.nowPart == 1){
maxNumber = this.nowPart + 8
maxNumber = this.nowPart + 7
minNumber = 1
}else{
minNumber = (this.nowPart - 1) * 8
@@ -172,15 +172,16 @@
// 倒计时结束 (超时)
timeup(){
this.isOvertime = true
this.sumitAnswer()
let that = this
uni.showModal({
title:'提示',
content:"考试结束,您未在规定时间内交卷本次成绩为0分",
content:"考试结束,系统已为您自动交卷",
confirmText:'知道了',
showCancel:false,
success: (res) => {
if (res.confirm) {
that.goToClass()
// that.goToClass()
}
}
})