This commit is contained in:
weipengfei 2024-05-25 20:17:58 +08:00
parent 1af643fcaf
commit 59cb9f1fc0

View File

@ -5,7 +5,7 @@
提现至
</view>
<view style="font-weight: bold;">
{{form.is_own?'对公账户':'个人账户'}} {{form.is_own}}
{{form.is_own?'对公账户':'个人账户'}}
</view>
<view style="display: flex;align-items: center;color: #20B128;" @click="showPop1=true">
<text>账户类型</text> <u-icon color="#20B128" name="arrow-right"></u-icon>
@ -35,10 +35,13 @@
</u-form-item>
</u-form>
</view>
<view class="" style="margin-top: 20rpx;color: red;" v-if="false">
<view class="" style="margin-top: 20rpx;color: red;text-align: center;" v-if="form.is_check==2">
审核失败,请重新提交审核
</view>
<view class="submit-btn">
<view class="" style="margin-top: 20rpx;color: red;text-align: center;" v-if="form.is_check===0">
正在审核中
</view>
<view class="submit-btn" v-if="form.is_check==='' || form.is_check==2">
<u-button text="提交绑定" @click="submit" shape="circle" color="#50C758"></u-button>
</view>
<u-popup :show="showPop" :round="10" mode="bottom" @close="showPop=false" @open="showPop=true">
@ -91,6 +94,7 @@
"bank_branch": "",
"financial_img": "",
"is_own": 0,
is_check: '', // 012
phone: '',
"id_card": "",
user_type: '2'
@ -110,9 +114,11 @@
})
},
async getHasBindBankList() {
let res = await amountAccountApi({})
let res = await amountAccountApi({
is_check: 'all' //
})
this.hasBindAccount = res.data.bank_list
this.form = res.data.bank_list[0] || {}
if(res.data.bank_list[0]) this.form = res.data.bank_list[0] || {}
},
getFormData(form, target) {
console.log(target)
@ -132,11 +138,13 @@
form.phone = target.phone || ''
form.id_card = target.id_card || ''
form.is_own = target.is_own
form.is_check = target.is_check
},
choseAccount(type) {
let index = this.hasBindAccount.findIndex(item => item.is_own == type)
this.form = this.hasBindAccount[index] || {}
this.form.is_own = type
this.form.is_own = type;
if(!this.form.id) this.form.is_check = "";
this.showPop1 = false
},
@ -156,6 +164,7 @@
await bindCradApi({
...this.form
})
this.form.is_check = 0;
this.$util.Tips({
title: '提交成功,等待后台审核'
});