Commit 22c3c26a authored by 李俊赕's avatar 李俊赕

签约页面优化

parent d1efcde1
......@@ -53,6 +53,15 @@
</view>
</template>
<view class="mask" v-show="isComplete">
<view class="box">
<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>
</view>
</template>
......@@ -78,6 +87,7 @@
examScore:1,
alphaArr:['A','B','C','D','E'],
timer:null,
isComplete:false,
}
},
onLoad(e) {
......@@ -88,6 +98,12 @@
},
methods: {
goSignContract(){
const url = '/pages/settle/prompt'
uni.navigateTo({
url
})
},
contentFilter(txt){
if(!txt){
return txt
......@@ -146,6 +162,7 @@
if (res.data.data.examStatus == 0 ||
res.data.data.examStatus == 1) {
this.examScore = res.data.data.examScore
that.userExamId = res.data.data.id
that.getNext()
}
......@@ -283,7 +300,8 @@
} else {
that.isSelect = true
clearTimeout(this.timer)
that.bottomTitle = '完成考试,现在签约'
this.isComplete = true
// that.bottomTitle = '完成考试,现在签约'
}
} else {
......@@ -696,4 +714,44 @@
.bottom-padding {
padding-bottom: 180rpx;
}
.mask{
position: fixed;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
background: rgba(0,0,0,0.5);
}
.box{
width: 660rpx;
height:696rpx;
padding:0 70rpx;
border-radius: 12rpx;
background-color: #fff;
.icon{
margin:80rpx auto 0 ;
display: block;
width:192rpx;
height:192rpx;
}
.txt{
margin-top:78rpx;
margin-bottom:98rpx;
font-weight: bold;
font-size: 48rpx;
line-height:66rpx ;
color: #666;
text-align: center;
}
.btn{
line-height: 104rpx;
border-radius: 52rpx;
background: #2272ff;
font-size: 32rpx;
color: #fff;
}
}
</style>
......@@ -470,11 +470,13 @@
// bottom: px2rem(36);
height: 104rpx;
line-height: 104rpx;
border-radius: 52rpx;
overflow: hidden;
background: #2272ff;
font-size: 32rpx;
color: #fff;
&:disabled {
&[disabled] {
border: 2rpx solid #999;
background-color: #f3f3f3;
color: #999;
......
......@@ -85,6 +85,7 @@
}
const res = await this.$u.api.getSettleDepositResult(params);
if(res.status!==true){
this.saving = false
return
}
uni.showToast({
......@@ -158,6 +159,7 @@
// console.log(res.confirm,'res.confirm')
self.pending()
} else if (res.cancel) {
self.saving = false
console.log('用户点击取消');
}
}
......
......@@ -517,6 +517,7 @@
// bottom: px2rem(36);
height: 104rpx;
line-height: 104rpx;
border-radius: 52rpx;
background: #2272ff;
font-size: 32rpx;
color: #fff;
......
......@@ -82,6 +82,13 @@
我已阅读协议,点击签约{{count ? '('+count+')' : ''}}
</button>
</view>
<view class="mask">
<view class="box">
<button>
去提交
</button>
</view>
</view>
</view>
</template>
......@@ -136,7 +143,10 @@
computed: {
submitStatus() {
const baseInfo = this.baseInfo
const flag = baseInfo.pay_type && baseInfo.bank_no && baseInfo.bank_name
let flag = baseInfo.pay_type && baseInfo.bank_no && baseInfo.bank_name
if(baseInfo.pay_type==='bankcard'){
flag = flag && baseInfo.bank_site
}
return flag && !this.saving && this.isStop;
},
},
......
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