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

签约页面ui优化

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