提交
This commit is contained in:
@@ -168,6 +168,7 @@
|
||||
showQuestIndex:false,
|
||||
secondTimeDif:undefined,
|
||||
pagetitle:'', // 页面标题
|
||||
flag:false,
|
||||
}
|
||||
},
|
||||
async onLoad(e) {
|
||||
@@ -353,10 +354,15 @@
|
||||
},
|
||||
// q请求提交试卷
|
||||
sumbitPaper(ids) {
|
||||
let that = this
|
||||
if(that.flag){
|
||||
return
|
||||
}
|
||||
that.flag = true
|
||||
uni.showLoading({
|
||||
title:'正在交卷'
|
||||
})
|
||||
let that = this
|
||||
|
||||
$http.request({
|
||||
url: "common/classExam/submitExamPaper",
|
||||
method: "POST",
|
||||
@@ -394,6 +400,7 @@
|
||||
|
||||
},300)
|
||||
}else{
|
||||
that.flag = false
|
||||
uni.showToast({
|
||||
title: e.errMsg,
|
||||
icon: 'error'
|
||||
@@ -401,6 +408,7 @@
|
||||
}
|
||||
|
||||
}).catch(e => {
|
||||
that.flag = false
|
||||
uni.hideLoading()
|
||||
console.log(e, '数据报错')
|
||||
// this.status = 3
|
||||
|
||||
Reference in New Issue
Block a user