认证相关更新
This commit is contained in:
@@ -14,8 +14,7 @@
|
||||
<template #right-icon> <up-input border="none" v-model="data.mobile" placeholder="请输入银行预留号码"></up-input> </template>
|
||||
</up-cell>
|
||||
</up-cell-group>
|
||||
<button class="confirm-btn" @click="toLogin"
|
||||
:disabled="data.logining">认证</button>
|
||||
<button v-if="!data.isAccountNo" class="confirm-btn" @click="toLogin" :disabled="data.logining">认证</button>
|
||||
<view style="font-size: 24upx;color: #999999;padding: 0 15rpx;margin-top: 32rpx;margin-bottom: 10rpx;">请正确填写收款人的银行卡号和真实的收款人姓名</view>
|
||||
<view style="font-size: 24upx;color: #999999;padding: 0 15rpx;;margin-bottom: 10rpx;">手机号需是银行卡银行卡预留手机号</view>
|
||||
<view style="font-size: 24upx;color: #999999;padding: 0 15rpx;;margin-bottom: 10rpx;">银行卡号需与收款人姓名一致</view>
|
||||
@@ -29,6 +28,7 @@
|
||||
import { reactive, nextTick, ref } from 'vue';
|
||||
import { onReady,onLoad,onShow } from '@dcloudio/uni-app'
|
||||
import { updateUser } from '@/api/me/withdraw.js';
|
||||
import { selectUserById } from '@/api/user/user.js';
|
||||
import { commonType } from '@/api/init.js';
|
||||
|
||||
let data = reactive({
|
||||
@@ -36,16 +36,29 @@
|
||||
mobile: null,
|
||||
certNum: null,
|
||||
accountNo: null,
|
||||
isAccountNo: null,
|
||||
logining: false
|
||||
})
|
||||
|
||||
onLoad(() => {
|
||||
data.certName = uni.getStorageSync('userInfo').certName;
|
||||
data.mobile = uni.getStorageSync('userInfo').mobile;
|
||||
data.certNum = uni.getStorageSync('userInfo').certNo;
|
||||
data.accountNo = uni.getStorageSync('userInfo').accountNo;
|
||||
getUserInfo()
|
||||
})
|
||||
|
||||
function getUserInfo () {
|
||||
selectUserById().then(res=>{
|
||||
if(res){
|
||||
data.certName = res.certName;
|
||||
data.mobile = res.mobile;
|
||||
if ( res.accountNo ) {
|
||||
data.accountNo = res.accountNo;
|
||||
data.certNum = res.certNo;
|
||||
}
|
||||
data.isAccountNo = res.accountNo;
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
function inputChange(e) {
|
||||
const key = e.currentTarget.dataset.key;
|
||||
data[key] = e.detail.value;
|
||||
|
||||
Reference in New Issue
Block a user