From 5a981d294517649f8da73bab786ab11eb6e30f90 Mon Sep 17 00:00:00 2001 From: woody Date: Sat, 11 Oct 2025 16:59:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(withdrawal):=20=E6=8F=90=E7=8E=B0=E9=9C=80?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E9=93=B6=E8=A1=8C=E5=8D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/balance/withdrawal.vue | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/pages/mine/balance/withdrawal.vue b/pages/mine/balance/withdrawal.vue index 2fa0ceb..451112a 100644 --- a/pages/mine/balance/withdrawal.vue +++ b/pages/mine/balance/withdrawal.vue @@ -7,7 +7,7 @@ :rules="rules" ref="uForm" > - + {{ '提现' }} - + { - // if (res.data && Object.keys(res.data).length > 0) { - // this.bankData = res.data - // this.dataForm.pkBank = res.data.pkId - // } else { - // this.unBindDefaultModal = true - // } - // }) + bal.getDefaultBank().then(res => { + if (res.data && Object.keys(res.data).length > 0) { + this.bankData = res.data + this.dataForm.pkBank = res.data.pkId + } else { + this.unBindDefaultModal = true + } + }) }, unBindDefaultConfirm() { this.unBindDefaultModal = false @@ -261,6 +261,9 @@ export default { this.$refs.uForm .validate() .then(res => { + if (!this.dataForm.pkBank) { + return + } bal.addWithdraw(this.dataForm).then(res => { if (res.code == 200) { this.$refs.uToast.show({