暂存
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user