| xqd
@@ -130,8 +130,13 @@
|
|
|
size="22"></u-icon></view>
|
|
|
|
|
|
<view class="carmititle">添加提现信息</view>
|
|
|
- <view class="carmiinput" v-if="selectedWithdrawType==1"><u--input placeholder="请输入您的银行卡号"
|
|
|
- border="surround" clearable v-model="cardNum"></u--input></view>
|
|
|
+ <view class="" v-if="selectedWithdrawType==1">
|
|
|
+ <view class="carmiinput"><u--input placeholder="请输入您的银行卡号" border="surround" clearable
|
|
|
+ v-model="cardNum"></u--input></view>
|
|
|
+ <view class="carmiinput"><u--input placeholder="请输入银行卡开户行" border="surround" clearable
|
|
|
+ v-model="bankName"></u--input></view>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="" v-else>
|
|
|
<view class="kf_qrcode tn-flex justify-center">
|
|
|
<u--image :showLoading="true" :src="paymentcode" width="100px" height="100px"
|
| xqd
@@ -243,7 +248,8 @@
|
|
|
minCash: 0,
|
|
|
dayCash: 0,
|
|
|
methods: [],
|
|
|
- cardNum: ''
|
|
|
+ cardNum: '',
|
|
|
+ bankName: ''
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
| xqd
@@ -335,7 +341,7 @@
|
|
|
// return;
|
|
|
// }
|
|
|
if (this.selectedWithdrawType == 1) {
|
|
|
- if (!this.cardNum || !this.realname) {
|
|
|
+ if (!this.cardNum || !this.realname || !this.bankName) {
|
|
|
this.$u.toast('请上传提现信息');
|
|
|
this.showBindForm = true
|
|
|
return;
|
| xqd
@@ -354,7 +360,8 @@
|
|
|
|
|
|
real_name: this.realname,
|
|
|
qrcode_url: this.paymentcode,
|
|
|
- card_num: this.cardNum
|
|
|
+ card_num: this.cardNum,
|
|
|
+ bank_name: this.bankName
|
|
|
});
|
|
|
let parms = {}
|
|
|
if (this.selectedWithdrawType == 1) {
|
| xqd
@@ -364,7 +371,8 @@
|
|
|
amount: this.money,
|
|
|
|
|
|
real_name: this.realname,
|
|
|
- card_num: this.cardNum
|
|
|
+ card_num: this.cardNum,
|
|
|
+ bank_name: this.bankName
|
|
|
}
|
|
|
} else {
|
|
|
parms = {
|
| xqd
@@ -427,6 +435,7 @@
|
|
|
this.showWithdrawList = false;
|
|
|
this.paymentcode = ''
|
|
|
this.cardNum = ''
|
|
|
+ this.bankName = ''
|
|
|
console.log('this.paymentcode----------------', this.paymentcode);
|
|
|
console.log('this.selectedWithdrawType', this.selectedWithdrawType);
|
|
|
// this.getWithdrawInfo();
|
| xqd
@@ -446,6 +455,14 @@
|
|
|
})
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
+ if (!that.bankName) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '请填写开户行',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
} else {
|
|
|
if (!that.paymentcode) {
|
|
|
uni.showToast({
|
| xqd
@@ -471,19 +488,37 @@
|
|
|
|
|
|
if (this.selectedWithdrawType == 1) {
|
|
|
if (that.realname && that.cardNum) {
|
|
|
- uni.showToast({
|
|
|
- title: '保存成功'
|
|
|
- })
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '保存成功'
|
|
|
+ // })
|
|
|
that.showBindForm = false
|
|
|
}
|
|
|
} else {
|
|
|
if (that.realname && that.paymentcode) {
|
|
|
- uni.showToast({
|
|
|
- title: '保存成功'
|
|
|
- })
|
|
|
+ // uni.showToast({
|
|
|
+ // title: '保存成功'
|
|
|
+ // })
|
|
|
that.showBindForm = false
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ this.confirmWithdraw()
|
|
|
+ this.selectedWithdrawType = 2
|
|
|
+ this.money = ''
|
|
|
+ this.realname = ''
|
|
|
+ this.cardNum = ''
|
|
|
+ this.bankName = ''
|
|
|
+ this.paymentcode = ''
|
|
|
+ console.log('提现参数重置后', {
|
|
|
+ type: this.withDrawType,
|
|
|
+ method: this.selectedWithdrawType,
|
|
|
+ amount: this.money,
|
|
|
+
|
|
|
+ real_name: this.realname,
|
|
|
+ card_num: this.cardNum,
|
|
|
+ bank_name: this.bankName,
|
|
|
+ qrcode_url: this.paymentcode
|
|
|
+ });
|
|
|
return
|
|
|
that.$http('commission.update', {
|
|
|
real_name: that.realname,
|