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

线上优化

parent 38c2625c
......@@ -18,7 +18,7 @@
//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
//小青本地环境
......@@ -122,12 +122,14 @@
uni.showLoading({
title:'加载中……'
})
const res = await vm.$u.api.getSettleBaseInfo()
const res = await vm.$u.api.getSettleBaseInfo()
if (!res || !res.status) {
uni.showToast({
title: res && res.message || '获取基本信息错误',
icon: 'none'
});
if(res && res.message){
uni.showToast({
title: res && res.message || '获取基本信息错误',
icon: 'none'
});
}
return false;
}
this.globalData.settledInfo = res.data
......
......@@ -87,6 +87,7 @@
examScore:0,
alphaArr:['A','B','C','D','E'],
timer:null,
scoreStatus:false,
isComplete:false, // 是否已经考试完成判定
}
},
......@@ -157,17 +158,22 @@
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
that.postResult()
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()
}
......@@ -305,11 +311,9 @@
that.startCounting()
} else {
that.isSelect = true
this.getUserExamInfo()
that.getUserExamInfo()
clearTimeout(this.timer)
this.isComplete = true
// 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