瀏覽代碼

提现流程优化

李万涛 2 年之前
父節點
當前提交
0939d99990
共有 1 個文件被更改,包括 47 次插入12 次删除
  1. 47 12
      pages/user/commission/withdraw.vue

+ 47 - 12
pages/user/commission/withdraw.vue

xqd xqd xqd xqd xqd xqd xqd 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"
@@ -243,7 +248,8 @@
 				minCash: 0,
 				dayCash: 0,
 				methods: [],
-				cardNum: ''
+				cardNum: '',
+				bankName: ''
 			};
 		},
 		computed: {
@@ -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;
@@ -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) {
@@ -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 = {
@@ -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();
@@ -446,6 +455,14 @@
 						})
 						return;
 					}
+
+					if (!that.bankName) {
+						uni.showToast({
+							title: '请填写开户行',
+							icon: 'none'
+						})
+						return;
+					}
 				} else {
 					if (!that.paymentcode) {
 						uni.showToast({
@@ -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,