修改实名认证
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
"name" : "斯耀短剧",
|
"name" : "斯耀短剧",
|
||||||
"appid" : "__UNI__E0B05B1",
|
"appid" : "__UNI__E0B05B1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.2.9",
|
"versionName" : "1.3.0",
|
||||||
"versionCode" : 129,
|
"versionCode" : 130,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -2,36 +2,60 @@
|
|||||||
<view class="containerView">
|
<view class="containerView">
|
||||||
<up-cell-group label-width="80" :border="false">
|
<up-cell-group label-width="80" :border="false">
|
||||||
<up-cell>
|
<up-cell>
|
||||||
<template #title> <view style="width: 90px;">姓名</view></template>
|
<template #title>
|
||||||
<template #right-icon> <up-input border="none" :disabled="data.certName" v-model="data.certName" placeholder="请输入姓名"></up-input> </template>
|
<view style="width: 90px;">姓名</view>
|
||||||
|
</template>
|
||||||
|
<template #right-icon> <up-input border="none" :disabled="setinput()" v-model="data.certName"
|
||||||
|
placeholder="请输入姓名"></up-input>
|
||||||
|
</template>
|
||||||
</up-cell>
|
</up-cell>
|
||||||
<up-cell>
|
<up-cell>
|
||||||
<template #title> <view style="width: 90px;">身份证号码</view></template>
|
<template #title>
|
||||||
<template #right-icon> <up-input border="none" :disabled="data.certNum" v-model="data.certNum" placeholder="请输入身份证号码"></up-input> </template>
|
<view style="width: 90px;">身份证号码</view>
|
||||||
|
</template>
|
||||||
|
<template #right-icon> <up-input border="none" v-model="data.certNum" :disabled="setinput()"
|
||||||
|
placeholder="请输入身份证号码"></up-input>
|
||||||
|
</template>
|
||||||
</up-cell>
|
</up-cell>
|
||||||
<up-cell>
|
<up-cell>
|
||||||
<template #title> <view style="width: 90px;">银行卡号码</view></template>
|
<template #title>
|
||||||
<template #right-icon> <up-input border="none" :disabled="data.accountNo" v-model="data.accountNo" placeholder="请输入银行卡号码"></up-input> </template>
|
<view style="width: 90px;">银行卡号码</view>
|
||||||
|
</template>
|
||||||
|
<template #right-icon> <up-input border="none" :disabled="setinput()" v-model="data.accountNo"
|
||||||
|
placeholder="请输入银行卡号码"></up-input> </template>
|
||||||
</up-cell>
|
</up-cell>
|
||||||
<up-cell>
|
<up-cell>
|
||||||
<template #title> <view style="width: 90px;">手机号</view></template>
|
<template #title>
|
||||||
<template #right-icon> <up-input border="none" :disabled="data.mobile" v-model="data.mobile" placeholder="请输入银行预留号码"></up-input> </template>
|
<view style="width: 90px;">手机号</view>
|
||||||
|
</template>
|
||||||
|
<template #right-icon> <up-input border="none" :disabled="setinput()" v-model="data.mobile"
|
||||||
|
placeholder="请输入银行预留号码"></up-input> </template>
|
||||||
</up-cell>
|
</up-cell>
|
||||||
<up-cell>
|
<up-cell>
|
||||||
<template #title> <view style="width: 90px;">开户省份</view></template>
|
<template #title>
|
||||||
<template #right-icon> <up-input border="none" v-model="data.province" placeholder="请输入银行开户省份"></up-input> </template>
|
<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>
|
||||||
<up-cell>
|
<up-cell>
|
||||||
<template #title> <view style="width: 90px;">开户市区</view></template>
|
<template #title>
|
||||||
<template #right-icon> <up-input border="none" v-model="data.city" placeholder="请输入银行开户市区"></up-input> </template>
|
<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>
|
||||||
<up-cell>
|
<up-cell>
|
||||||
<template #title> <view style="width: 90px;">开户行</view></template>
|
<template #title>
|
||||||
<template #right-icon> <up-input border="none" v-model="data.bankBranch" placeholder="请输入银行开户行"></up-input> </template>
|
<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>
|
||||||
</up-cell-group>
|
</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-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;;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>
|
||||||
@@ -40,12 +64,26 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { reactive, nextTick, ref } from 'vue';
|
import {
|
||||||
import { onReady,onLoad,onShow } from '@dcloudio/uni-app'
|
reactive,
|
||||||
import { realNameAuth } from '@/api/me/withdraw.js';
|
nextTick,
|
||||||
import { selectUserById } from '@/api/user/user.js';
|
ref
|
||||||
import { commonType } from '@/api/init.js';
|
} from 'vue';
|
||||||
|
import {
|
||||||
|
onReady,
|
||||||
|
onLoad,
|
||||||
|
onShow
|
||||||
|
} from '@dcloudio/uni-app'
|
||||||
|
import {
|
||||||
|
realNameAuth
|
||||||
|
} from '@/api/me/withdraw.js';
|
||||||
|
import {
|
||||||
|
selectUserById
|
||||||
|
} from '@/api/user/user.js';
|
||||||
|
import {
|
||||||
|
commonType
|
||||||
|
} from '@/api/init.js';
|
||||||
|
|
||||||
let data = reactive({
|
let data = reactive({
|
||||||
certName: null,
|
certName: null,
|
||||||
mobile: null,
|
mobile: null,
|
||||||
@@ -53,42 +91,51 @@
|
|||||||
accountNo: null,
|
accountNo: null,
|
||||||
isAccountNo: true,
|
isAccountNo: true,
|
||||||
logining: false,
|
logining: false,
|
||||||
province:null,
|
province: null,
|
||||||
city:null,
|
city: null,
|
||||||
bankBranch:null
|
bankBranch: null
|
||||||
})
|
})
|
||||||
|
let inputdata = ref()
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
getUserInfo()
|
getUserInfo()
|
||||||
})
|
})
|
||||||
|
|
||||||
function getUserInfo () {
|
function setinput() {
|
||||||
selectUserById().then(res=>{
|
if (data.accountNo) {
|
||||||
if(res){
|
return data.accountNo.indexOf('****') != -1
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getUserInfo() {
|
||||||
|
selectUserById().then(res => {
|
||||||
|
if (res) {
|
||||||
data.certName = res.certName;
|
data.certName = res.certName;
|
||||||
data.mobile = res.mobile;
|
data.mobile = res.mobile;
|
||||||
if ( res.accountNo ) {
|
if (res.accountNo) {
|
||||||
|
inputdata.value = res
|
||||||
data.accountNo = res.accountNo;
|
data.accountNo = res.accountNo;
|
||||||
data.certNum = res.certNo;
|
data.certNum = res.certNo;
|
||||||
}
|
}
|
||||||
if(res.accountNo&& res.province&& res.city && res.bankBranch){
|
if (res.accountNo && res.province && res.city && res.bankBranch) {
|
||||||
data.province = res.province;
|
data.province = res.province;
|
||||||
data.city = res.city;
|
data.city = res.city;
|
||||||
data.bankBranch = res.bankBranch;
|
data.bankBranch = res.bankBranch;
|
||||||
data.isAccountNo = false
|
data.isAccountNo = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function inputChange(e) {
|
function inputChange(e) {
|
||||||
const key = e.currentTarget.dataset.key;
|
const key = e.currentTarget.dataset.key;
|
||||||
data[key] = e.detail.value;
|
data[key] = e.detail.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function toLogin() {
|
async function toLogin() {
|
||||||
|
|
||||||
if (!data.certName) {
|
if (!data.certName) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请设置收款人姓名',
|
title: '请设置收款人姓名',
|
||||||
@@ -116,11 +163,11 @@
|
|||||||
mobile: data.mobile,
|
mobile: data.mobile,
|
||||||
certNum: data.certNum,
|
certNum: data.certNum,
|
||||||
accountNo: data.accountNo.replace(/\s+/g, ''),
|
accountNo: data.accountNo.replace(/\s+/g, ''),
|
||||||
province:data.province,
|
province: data.province,
|
||||||
city:data.city,
|
city: data.city,
|
||||||
bankBranch:data.bankBranch
|
bankBranch: data.bankBranch
|
||||||
})
|
})
|
||||||
if( res) {
|
if (res) {
|
||||||
data.logining = false
|
data.logining = false
|
||||||
let userInfo = uni.getStorageSync('userInfo')
|
let userInfo = uni.getStorageSync('userInfo')
|
||||||
userInfo.mobile = data.mobile
|
userInfo.mobile = data.mobile
|
||||||
@@ -140,10 +187,10 @@
|
|||||||
} else {
|
} else {
|
||||||
data.logining = false
|
data.logining = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -151,11 +198,13 @@
|
|||||||
page {
|
page {
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
}
|
}
|
||||||
.u-cell__body__content{
|
|
||||||
flex: 0!important;
|
.u-cell__body__content {
|
||||||
|
flex: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.containerView {
|
.containerView {
|
||||||
padding:30rpx;
|
padding: 30rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -191,6 +240,7 @@
|
|||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user