forked from angelo/web-retail-h5
feat(withdrawal): 提现需绑定银行卡
This commit is contained in:
parent
154bd1e771
commit
30a1a0c96e
|
@ -7,7 +7,7 @@
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
ref="uForm"
|
ref="uForm"
|
||||||
>
|
>
|
||||||
<!-- <u-form-item
|
<u-form-item
|
||||||
label-width="200rpx"
|
label-width="200rpx"
|
||||||
:label="'银行卡号'"
|
:label="'银行卡号'"
|
||||||
prop="cardNumber"
|
prop="cardNumber"
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
<view v-else style="color: red" @click="goBindbank">
|
<view v-else style="color: red" @click="goBindbank">
|
||||||
{{ '请先绑定银行卡' }}
|
{{ '请先绑定银行卡' }}
|
||||||
</view>
|
</view>
|
||||||
</u-form-item> -->
|
</u-form-item>
|
||||||
<u-form-item
|
<u-form-item
|
||||||
label-width="200rpx"
|
label-width="200rpx"
|
||||||
:label="`${'提现金额'}(${isLocaled()})`"
|
:label="`${'提现金额'}(${isLocaled()})`"
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
<u-button class="subbtn" @click="submit">{{ '提现' }}</u-button>
|
<u-button class="subbtn" @click="submit">{{ '提现' }}</u-button>
|
||||||
</view>
|
</view>
|
||||||
<u-toast ref="uToast"></u-toast>
|
<u-toast ref="uToast"></u-toast>
|
||||||
<!-- <u-modal
|
<u-modal
|
||||||
:show="unBindDefaultModal"
|
:show="unBindDefaultModal"
|
||||||
showCancelButton
|
showCancelButton
|
||||||
@cancel="unBindDefaultModal = false"
|
@cancel="unBindDefaultModal = false"
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
@confirm="unBindDefaultConfirm"
|
@confirm="unBindDefaultConfirm"
|
||||||
>
|
>
|
||||||
请先绑定默认银行卡
|
请先绑定默认银行卡
|
||||||
</u-modal> -->
|
</u-modal>
|
||||||
<!-- 提现引导弹窗 -->
|
<!-- 提现引导弹窗 -->
|
||||||
<WithdrawalGuide
|
<WithdrawalGuide
|
||||||
:show="showWithdrawalGuide"
|
:show="showWithdrawalGuide"
|
||||||
|
@ -242,14 +242,14 @@ export default {
|
||||||
this.dataForm.pkAccount = res.data[0].pkId
|
this.dataForm.pkAccount = res.data[0].pkId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// bal.getDefaultBank().then(res => {
|
bal.getDefaultBank().then(res => {
|
||||||
// if (res.data && Object.keys(res.data).length > 0) {
|
if (res.data && Object.keys(res.data).length > 0) {
|
||||||
// this.bankData = res.data
|
this.bankData = res.data
|
||||||
// this.dataForm.pkBank = res.data.pkId
|
this.dataForm.pkBank = res.data.pkId
|
||||||
// } else {
|
} else {
|
||||||
// this.unBindDefaultModal = true
|
this.unBindDefaultModal = true
|
||||||
// }
|
}
|
||||||
// })
|
})
|
||||||
},
|
},
|
||||||
unBindDefaultConfirm() {
|
unBindDefaultConfirm() {
|
||||||
this.unBindDefaultModal = false
|
this.unBindDefaultModal = false
|
||||||
|
@ -261,6 +261,9 @@ export default {
|
||||||
this.$refs.uForm
|
this.$refs.uForm
|
||||||
.validate()
|
.validate()
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
if (!this.dataForm.pkBank) {
|
||||||
|
return
|
||||||
|
}
|
||||||
bal.addWithdraw(this.dataForm).then(res => {
|
bal.addWithdraw(this.dataForm).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
|
|
Loading…
Reference in New Issue