feat(withdrawal): 提现需绑定银行卡
This commit is contained in:
parent
b1dc487ea4
commit
613128c1e3
|
@ -7,7 +7,7 @@
|
|||
:rules="rules"
|
||||
ref="uForm"
|
||||
>
|
||||
<!-- <u-form-item
|
||||
<u-form-item
|
||||
label-width="200rpx"
|
||||
:label="'银行卡号'"
|
||||
prop="cardNumber"
|
||||
|
@ -24,7 +24,7 @@
|
|||
<view v-else style="color: red" @click="goBindbank">
|
||||
{{ '请先绑定银行卡' }}
|
||||
</view>
|
||||
</u-form-item> -->
|
||||
</u-form-item>
|
||||
<u-form-item
|
||||
label-width="200rpx"
|
||||
:label="`${'提现金额'}(${isLocaled()})`"
|
||||
|
@ -134,7 +134,7 @@
|
|||
<u-button class="subbtn" @click="submit">{{ '提现' }}</u-button>
|
||||
</view>
|
||||
<u-toast ref="uToast"></u-toast>
|
||||
<!-- <u-modal
|
||||
<u-modal
|
||||
:show="unBindDefaultModal"
|
||||
showCancelButton
|
||||
@cancel="unBindDefaultModal = false"
|
||||
|
@ -143,7 +143,7 @@
|
|||
@confirm="unBindDefaultConfirm"
|
||||
>
|
||||
请先绑定默认银行卡
|
||||
</u-modal> -->
|
||||
</u-modal>
|
||||
<!-- 提现引导弹窗 -->
|
||||
<WithdrawalGuide
|
||||
:show="showWithdrawalGuide"
|
||||
|
@ -242,14 +242,14 @@ export default {
|
|||
this.dataForm.pkAccount = res.data[0].pkId
|
||||
}
|
||||
})
|
||||
// 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
|
||||
// }
|
||||
// })
|
||||
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({
|
||||
|
|
Loading…
Reference in New Issue