暂存
This commit is contained in:
@@ -491,12 +491,25 @@
|
||||
this.severNowTime = severNowTime
|
||||
console.log('this.endTime',this.endTime);
|
||||
this.secondTimeDif = this.endTime - severNowTime // 时间差 毫秒
|
||||
let that = this
|
||||
if(this.secondTimeDif > 0){
|
||||
// this.setPaperEndTime({time:this.endTime})
|
||||
this.timeDif.hour = parseInt((this.secondTimeDif % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60))
|
||||
this.timeDif.minutes = parseInt((this.secondTimeDif % (1000 * 60 * 60)) / (1000 * 60))
|
||||
this.timeDif.second = (this.secondTimeDif % (1000 * 60)) / 1000
|
||||
console.log('this.endTime',this.timeDif.hour, this.timeDif.minutes, this.timeDif.second);
|
||||
}else{
|
||||
uni.showModal({
|
||||
title:'提示',
|
||||
content:'您的时间已经结束,即将返回班级',
|
||||
confirmText:'好的',
|
||||
showCancel:fals,
|
||||
success: (res) => {
|
||||
if(res.confirm){
|
||||
that.goToClass()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
this.curQuestion = {
|
||||
...this.questionList[this.curIndex1]
|
||||
|
||||
Reference in New Issue
Block a user