Commit db32e9f4 authored by 李俊赕's avatar 李俊赕

线上优化

parent 38c2625c
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
//domain_Name: 'https://system.banshouhui.com', //domain_Name: 'https://system.banshouhui.com',
//测试环境 //测试环境
domain_Name: 'https://system.dev.banshouhui.com', domain_Name: 'https://system.banshouhui.com',
//http://192.168.0.208:8192 //http://192.168.0.208:8192
//小青本地环境 //小青本地环境
...@@ -122,12 +122,14 @@ ...@@ -122,12 +122,14 @@
uni.showLoading({ uni.showLoading({
title:'加载中……' title:'加载中……'
}) })
const res = await vm.$u.api.getSettleBaseInfo() const res = await vm.$u.api.getSettleBaseInfo()
if (!res || !res.status) { if (!res || !res.status) {
uni.showToast({ if(res && res.message){
title: res && res.message || '获取基本信息错误', uni.showToast({
icon: 'none' title: res && res.message || '获取基本信息错误',
}); icon: 'none'
});
}
return false; return false;
} }
this.globalData.settledInfo = res.data this.globalData.settledInfo = res.data
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
examScore:0, examScore:0,
alphaArr:['A','B','C','D','E'], alphaArr:['A','B','C','D','E'],
timer:null, timer:null,
scoreStatus:false,
isComplete:false, // 是否已经考试完成判定 isComplete:false, // 是否已经考试完成判定
} }
}, },
...@@ -157,17 +158,22 @@ ...@@ -157,17 +158,22 @@
if (res.data.code == 200) { if (res.data.code == 200) {
//examStatus 用户考试状态 0考试中 1考试完成 2未参与 //examStatus 用户考试状态 0考试中 1考试完成 2未参与
if (res.data.data.examStatus == 2) { if (res.data.data.examStatus == 2) {
that.scoreStatus = true
that.applyExam() that.applyExam()
return return
} }
if(res.data.data.examStatus == 1){ if(res.data.data.examStatus == 1){
that.isComplete = true that.isComplete = true
that.examScore = res.data.data.examScore that.examScore = res.data.data.examScore
that.postResult() if(that.scoreStatus){
that.scoreStatus = false
that.postResult()
}
return return
} }
if (res.data.data.examStatus == 0 ) { if (res.data.data.examStatus == 0 ) {
that.userExamId = res.data.data.id that.userExamId = res.data.data.id
that.scoreStatus = true
that.getNext() that.getNext()
} }
...@@ -305,11 +311,9 @@ ...@@ -305,11 +311,9 @@
that.startCounting() that.startCounting()
} else { } else {
that.isSelect = true that.isSelect = true
this.getUserExamInfo() that.getUserExamInfo()
clearTimeout(this.timer) clearTimeout(this.timer)
this.isComplete = true this.isComplete = true
// that.bottomTitle = '完成考试,现在签约' // that.bottomTitle = '完成考试,现在签约'
} }
......
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