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

ui优化-bug问题

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