添加证书
This commit is contained in:
@@ -430,7 +430,9 @@
|
||||
url: "common/classExam/generateExamPaper",
|
||||
method: "POST",
|
||||
data: {
|
||||
"classId": this.classId
|
||||
// "classId":
|
||||
"type":"1",//考试类型 1小班 2自考
|
||||
"relationId": this.classId, //小班id、课程id
|
||||
},
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
@@ -454,23 +456,23 @@
|
||||
this.examId = res.id
|
||||
this.paperCreateTime = 1
|
||||
// this.endTime = this.hourUp(res.startTime,2) // 结束的时间戳
|
||||
var planEndTimeDate = new Date(res.planEndTime)
|
||||
this.endTime = planEndTimeDate.getTime();
|
||||
|
||||
// var planEndTimeDate = new Date(res.planEndTime)
|
||||
// this.endTime = planEndTimeDate.getTime();
|
||||
this.endTime = res.planEndTime
|
||||
var severNowTime = await this.getServerTime()
|
||||
this.secondTimeDif = this.endTime - severNowTime // 时间差 毫秒
|
||||
if(this.secondTimeDif > 0){
|
||||
// this.setPaperEndTime({time:this.endTime})
|
||||
uni.setStorage({
|
||||
key:'paperEndTime',
|
||||
data:{
|
||||
time: this.endTime,
|
||||
examId: this.examId,
|
||||
},
|
||||
success: function () {
|
||||
console.log('时间存储成功');
|
||||
}
|
||||
})
|
||||
// uni.setStorage({
|
||||
// key:'paperEndTime',
|
||||
// data:{
|
||||
// time: this.endTime,
|
||||
// examId: this.examId,
|
||||
// },
|
||||
// success: function () {
|
||||
// console.log('时间存储成功');
|
||||
// }
|
||||
// })
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user