增加实名认证
This commit is contained in:
@@ -4,14 +4,9 @@
|
||||
|
||||
<list-cell title="支付宝账号" type="text" placeholder="请输入要绑定的支付宝手机号" v-model="zhiFuBao"></list-cell>
|
||||
|
||||
<list-cell title="身份证号码" type="text" placeholder="请输入要绑定身份证号码" v-model="certNum"></list-cell>
|
||||
|
||||
|
||||
<button :class="zhiFuBao&&zhiFuBaoName?'confirm-btn':'confirm-btn1'" @click="toLogin"
|
||||
<button class="confirm-btn" @click="toLogin"
|
||||
:disabled="logining">绑定账户</button>
|
||||
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;margin-top: 32rpx;margin-bottom: 10rpx;">请正确填写收款人的支付宝账户和真实的收款人姓名</view>
|
||||
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">身份证姓名需与支付宝姓名一致</view>
|
||||
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">身份证信息仅可使用一次</view>
|
||||
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx">否则将无法正常收款,请须知</view>
|
||||
|
||||
</view>
|
||||
@@ -27,7 +22,6 @@
|
||||
return {
|
||||
zhiFuBao: '',
|
||||
zhiFuBaoName: '',
|
||||
certNum: '',
|
||||
logining: false
|
||||
}
|
||||
},
|
||||
@@ -43,9 +37,7 @@
|
||||
if (res.data.zhiFuBaoName) {
|
||||
this.zhiFuBaoName = res.data.zhiFuBaoName;
|
||||
}
|
||||
if (res.data.certNo) {
|
||||
this.certNum = res.data.certNo;
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -63,7 +55,6 @@
|
||||
toLogin() {
|
||||
let zhiFuBao = this.zhiFuBao
|
||||
let zhiFuBaoName = this.zhiFuBaoName
|
||||
let certNum = this.certNum
|
||||
|
||||
if (!zhiFuBao) {
|
||||
uni.showToast({
|
||||
@@ -75,21 +66,15 @@
|
||||
title: '请设置收款人支付宝账号',
|
||||
icon: 'none'
|
||||
})
|
||||
} else if (!certNum) {
|
||||
uni.showToast({
|
||||
title: '请设置收款人身份证账号',
|
||||
icon: 'none'
|
||||
})
|
||||
} else {
|
||||
this.logining = true
|
||||
this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName + '&certNum=' + certNum).then(
|
||||
this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName).then(
|
||||
res => {
|
||||
this.logining = false
|
||||
console.log(res);
|
||||
if(res.code===0){
|
||||
uni.setStorageSync('zhiFuBao', zhiFuBao)
|
||||
uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
|
||||
uni.setStorageSync('certNum', certNum)
|
||||
uni.showToast({
|
||||
title: '修改成功',
|
||||
icon: 'none',
|
||||
|
||||
Reference in New Issue
Block a user