Commit 0e3c2891 authored by 李俊赕's avatar 李俊赕

签约页面ui优化

parent ab1b8118
......@@ -66,6 +66,7 @@
title: '加载中',
})
return new Promise((resolve, reject) => {
console.log(uni.login,'uni.login(')
uni.login({
// #ifdef MP-ALIPAY
scopes: 'auth_user',
......@@ -83,7 +84,9 @@
fail: function(res) {
reject('用户授权失败wx.login');
},
complete() {
complete(res) {
reject('code获取失败');
console.log('code获取失败',res)
uni.hideLoading()
}
});
......
<template>
<view class="content">
<view class="title">签约页面</view>
<view class="content-txt">
<view class="title">入驻协议内容</view>
<view class="txt">此处为协议正式内容</view>
</view>
<view class="base-list">
<view class="item item-input flex-yc">
<label class="label">签约人</label>
......@@ -45,7 +49,7 @@
<view class="seat"></view>
<view class="btn-wrap flex-xc">
<button class="btn-submit" :disabled="!submitStatus" @click="submitBaseInfo">
确定
我已阅读协议,点击签约{{count ? '('+count+')' : ''}}
</button>
</view>
</view>
......@@ -77,12 +81,15 @@
}],
settledInfo:{},
saving: false,
isStop:false,
count:9,
}
},
onLoad(e) {
},
onShow(){
this.getBaseInfo()
this.startCounting()
// this.getBaseInfo()
// const url = 'https://m.test.ibanshou.cn/activity/settled_2021/mini'
// uni.navigateTo({
// url:'/pages/settle/web?url='+url
......@@ -93,7 +100,7 @@
submitStatus() {
const baseInfo = this.baseInfo
const flag = baseInfo.pay_type && baseInfo.bank_no && baseInfo.bank_name
return flag && !this.saving;
return flag && !this.saving && this.isStop;
},
},
components: {
......@@ -107,6 +114,22 @@
}
},
methods: {
startCounting : function () {
if(this.isStop){
return
}
this.count = this.count - 1
if(this.count > 0){
setTimeout(this.startCounting, 1000);
}else{
this.isStop = true
}
},
refreshPage(){
this.getBaseInfo()
},
......@@ -341,17 +364,42 @@
</script>
<style lang="scss">
.content{
width:100%;
height:100vh;
display: flex;
flex-direction: column;
background-color: #F3F3F3;
}
.content-txt{
overflow: auto;
flex:1;
.title{
padding:30rpx 30rpx 0;
line-height: 40rpx;
text-align: center;
font-weight: bold;
color: #333;
font-size: 36rpx;
}
.txt{
padding:20rpx 30rpx;
line-height: 40rpx;
color: #333;
font-size: 28rpx;
}
}
.base-list {
.item {
display: flex;
margin-bottom: 58rpx;
padding: 28rpx 30rpx;
width: 100%;
height: 100rpx;
font-size: 32rpx;
color:#333;
border-bottom: 2rpx solid #FDFDFD;
background-color: #fff;
.label {
line-height: 44rpx;
color: #333;
font-size: 32rpx;
}
......@@ -501,14 +549,15 @@
// bottom: px2rem(36);
height: 104rpx;
line-height: 104rpx;
background: #2272ff;
border-radius: 52rpx;
background: #fff;
font-size: 32rpx;
color: #fff;
&:disabled {
border: 2rpx solid #999;
background-color: #f3f3f3;
color: #999;
&[disabled] {
border: none;
background-color:#999999;
color: #fff;
}
}
}
......
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