Commit 075a9a7a authored by 李俊赕's avatar 李俊赕

考试完成后-更新考试成绩

parent cbf9f861
......@@ -87,7 +87,6 @@
examScore:0,
alphaArr:['A','B','C','D','E'],
timer:null,
scoreStatus:false,
isComplete:false, // 是否已经考试完成判定
}
},
......@@ -158,22 +157,17 @@
if (res.data.code == 200) {
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
if (res.data.data.examStatus == 2) {
that.scoreStatus = true
that.applyExam()
return
}
if(res.data.data.examStatus == 1){
that.isComplete = true
that.examScore = res.data.data.examScore
if(that.scoreStatus){
that.scoreStatus = false
that.postResult()
}
return
}
if (res.data.data.examStatus == 0 ) {
that.userExamId = res.data.data.id
that.scoreStatus = true
that.getNext()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment