修改实名参数

This commit is contained in:
duan
2025-03-21 11:36:04 +08:00
parent 128fd2b716
commit 0714342cee

View File

@@ -3,28 +3,39 @@
<up-cell-group label-width="80" :border="false">
<up-cell>
<template #title> <view style="width: 90px;">姓名</view></template>
<template #right-icon> <up-input border="none" v-model="data.certName" placeholder="请输入姓名"></up-input> </template>
<template #right-icon> <up-input border="none" :disabled="data.certName" v-model="data.certName" placeholder="请输入姓名"></up-input> </template>
</up-cell>
<up-cell>
<template #title> <view style="width: 90px;">身份证号码</view></template>
<template #right-icon> <up-input border="none" v-model="data.certNum" placeholder="请输入身份证号码"></up-input> </template>
<template #right-icon> <up-input border="none" :disabled="data.certNum" v-model="data.certNum" placeholder="请输入身份证号码"></up-input> </template>
</up-cell>
<up-cell>
<template #title> <view style="width: 90px;">银行卡号码</view></template>
<template #right-icon> <up-input border="none" v-model="data.accountNo" placeholder="请输入银行卡号码"></up-input> </template>
<template #right-icon> <up-input border="none" :disabled="data.accountNo" v-model="data.accountNo" placeholder="请输入银行卡号码"></up-input> </template>
</up-cell>
<up-cell>
<template #title> <view style="width: 90px;">手机号</view></template>
<template #right-icon> <up-input border="none" v-model="data.mobile" placeholder="请输入银行预留号码"></up-input> </template>
<template #right-icon> <up-input border="none" :disabled="data.mobile" v-model="data.mobile" placeholder="请输入银行预留号码"></up-input> </template>
</up-cell>
<up-cell>
<template #title> <view style="width: 90px;">开户省份</view></template>
<template #right-icon> <up-input border="none" v-model="data.province" placeholder="请输入银行开户省份"></up-input> </template>
</up-cell>
<up-cell>
<template #title> <view style="width: 90px;">开户市区</view></template>
<template #right-icon> <up-input border="none" v-model="data.city" placeholder="请输入银行开户市区"></up-input> </template>
</up-cell>
<up-cell>
<template #title> <view style="width: 90px;">开户行</view></template>
<template #right-icon> <up-input border="none" v-model="data.bankBranch" placeholder="请输入银行开户行"></up-input> </template>
</up-cell>
</up-cell-group>
<button v-if="!data.isAccountNo" 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>
<view style="font-size: 24upx;color: #999999;padding: 0 15rpx;;margin-bottom: 10rpx;">身份证信息仅可使用一次</view>
<view style="font-size: 24upx;color: #999999;padding: 0 15rpx">否则将无法正常收款请须知</view>
</view>
</template>
@@ -40,8 +51,11 @@
mobile: null,
certNum: null,
accountNo: null,
isAccountNo: null,
logining: false
isAccountNo: true,
logining: false,
province:null,
city:null,
bankBranch:null
})
onLoad(() => {
@@ -57,7 +71,12 @@
data.accountNo = res.accountNo;
data.certNum = res.certNo;
}
data.isAccountNo = res.accountNo;
if(res.accountNo&& res.province&& res.city && res.bankBranch){
data.province = res.province;
data.city = res.city;
data.bankBranch = res.bankBranch;
data.isAccountNo = false
}
}
})
@@ -97,6 +116,9 @@
mobile: data.mobile,
certNum: data.certNum,
accountNo: data.accountNo.replace(/\s+/g, ''),
province:data.province,
city:data.city,
bankBranch:data.bankBranch
})
if( res) {
data.logining = false