diff --git a/pages/quote/bindAccout.vue b/pages/quote/bindAccout.vue
index aa70000..e6f784e 100644
--- a/pages/quote/bindAccout.vue
+++ b/pages/quote/bindAccout.vue
@@ -5,7 +5,7 @@
提现至
- {{form.is_own?'对公账户':'个人账户'}} {{form.is_own}}
+ {{form.is_own?'对公账户':'个人账户'}}
账户类型
@@ -35,10 +35,13 @@
-
+
审核失败,请重新提交审核
-
+
+ 正在审核中
+
+
@@ -91,6 +94,7 @@
"bank_branch": "",
"financial_img": "",
"is_own": 0,
+ is_check: '', // 0待审核,1通过,2未通过
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: '提交成功,等待后台审核'
});