Commit 01ab6c3f authored by 李俊赕's avatar 李俊赕

ui优化-bug问题

parent 4a62675b
......@@ -291,6 +291,10 @@
"name": "基本信息", //模式名称
"path": "pages/settle/base", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},{
"name": "入驻提示", //模式名称
"path": "pages/settle/prompt", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
},{
"name": "资料信息", //模式名称
"path": "pages/settle/file", //启动页面,必选
......
......@@ -58,7 +58,7 @@
<image class="icon" src="@/static/settle/icon-success.png"></image>
<view class="txt">您已成功完成考试</view>
<button class="btn" @click="$u.debounce(goSignContract, 500)">
去签约
去提交
</button>
</view>
</view>
......@@ -84,7 +84,7 @@
bottomTitle: '下一题',
isStop: false,
clock_url:'https://qn-static.banshouhui.com/clock_exam.png',
examScore:1,
examScore:0,
alphaArr:['A','B','C','D','E'],
timer:null,
isComplete:false, // 是否已经考试完成判定
......@@ -158,11 +158,15 @@
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
if (res.data.data.examStatus == 2) {
that.applyExam()
return
}
if (res.data.data.examStatus == 0 ||
res.data.data.examStatus == 1) {
this.examScore = res.data.data.examScore
if(res.data.data.examStatus == 1){
that.isComplete = true
that.examScore = res.data.data.examScore
that.postResult()
return
}
if (res.data.data.examStatus == 0 ) {
that.userExamId = res.data.data.id
that.getNext()
}
......@@ -301,8 +305,11 @@
that.startCounting()
} else {
that.isSelect = true
this.getUserExamInfo()
clearTimeout(this.timer)
this.isComplete = true
// that.bottomTitle = '完成考试,现在签约'
}
......@@ -391,18 +398,9 @@
},
//下一题
nextClick: function() {
if (this.isComplete) {
clearTimeout(this.timer)
this.postResult()
// uni.navigateTo({
// url: '/pages/settle/prompt'
// })
return
}
this.currentNumber = this.currentNumber + 1
//this.getData()
this.handleAnswer()
......@@ -421,7 +419,7 @@
+'?access-token='+getApp().globalData.token,
method: 'POST',
data: {
score:this.examScore,
score:this.examScore || 0,
},
success: (res) => {
uni.hideLoading()
......@@ -435,9 +433,9 @@
if (res.statusCode == 200) {
uni.navigateTo({
url: '/pages/settle/prompt'
})
// uni.navigateTo({
// url: '/pages/settle/prompt'
// })
} else {
uni.showToast({
......@@ -512,10 +510,10 @@
<style lang="scss">
.backView {
background-color: #F3F3F3;
position: absolute;
top: 0;
left: 0;
width: 100%;
// position: absolute;
// top: 0;
// left: 0;
// width: 100%;
display: flex;
flex-direction: column;
}
......
......@@ -314,13 +314,7 @@
if (!this.checkBaseInfo()) {
return;
}
if (this.isPosting){
return
}
this.isPosting = true//尝试防抖
this.saving = true;
uni.showLoading({
title: '加载中'
......@@ -533,9 +527,9 @@
color: #fff;
&[disabled] {
border: none;
background-color: #999999;
color: #fff;
border: 2rpx solid #999;
background-color: #f3f3f3;
color: #999;
}
}
}
......
......@@ -72,9 +72,9 @@
}
},
onLoad(e) {
if(!this.settledInfo){
this.getBaseInfo()
}
// if(!this.settledInfo){
// this.getBaseInfo()
// }
},
onShow(){
if(!this.settledInfo){
......
......@@ -82,13 +82,6 @@
我已阅读协议,点击签约{{count ? '('+count+')' : ''}}
</button>
</view>
<view class="mask">
<view class="box">
<button>
去提交
</button>
</view>
</view>
</view>
</template>
......@@ -607,9 +600,9 @@
color: #fff;
&[disabled] {
border: none;
background-color:#999999;
color: #fff;
border: 2rpx solid #999;
background-color: #f3f3f3;
color: #999;
}
}
}
......
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