| xqd
@@ -249,10 +249,8 @@
|
|
|
computed: {
|
|
|
...mapGetters(['appInfo', 'userInfo'])
|
|
|
},
|
|
|
- async onLoad(o) {
|
|
|
- this.withDrawType = o.type
|
|
|
-
|
|
|
- if (o.type == 1) {
|
|
|
+ async onShow() {
|
|
|
+ if (this.withDrawType == 1) {
|
|
|
let ress1 = await taskCount()
|
|
|
if (ress1.code == 0) {
|
|
|
console.log('提现-任务佣金汇总返回值', ress1);
|
| xqd
@@ -267,7 +265,9 @@
|
|
|
console.log('推广-可提现金额', this.enableMoney);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ },
|
|
|
+ async onLoad(o) {
|
|
|
+ this.withDrawType = o.type
|
|
|
|
|
|
let ress = await sysParms()
|
|
|
console.log('提现页系统参数返回值', ress, ress.msg, this.$IMG_URL + '/imgs/wallet/bank_type.png');
|
| xqd
@@ -330,10 +330,10 @@
|
|
|
icon: 'none'
|
|
|
})
|
|
|
}
|
|
|
- if (this.selectedWithdrawType == 1) {
|
|
|
- this.$u.toast('银行卡提现暂未开通');
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.selectedWithdrawType == 1) {
|
|
|
+ // this.$u.toast('银行卡提现暂未开通');
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
if (this.selectedWithdrawType == 1) {
|
|
|
if (!this.cardNum || !this.realname) {
|
|
|
this.$u.toast('请上传提现信息');
|
| xqd
@@ -353,7 +353,8 @@
|
|
|
amount: this.money,
|
|
|
|
|
|
real_name: this.realname,
|
|
|
- qrcode_url: this.paymentcode
|
|
|
+ qrcode_url: this.paymentcode,
|
|
|
+ card_num: this.cardNum
|
|
|
});
|
|
|
let parms = {}
|
|
|
if (this.selectedWithdrawType == 1) {
|
| xqd
@@ -363,7 +364,7 @@
|
|
|
amount: this.money,
|
|
|
|
|
|
real_name: this.realname,
|
|
|
- cardNum: this.cardNum
|
|
|
+ card_num: this.cardNum
|
|
|
}
|
|
|
} else {
|
|
|
parms = {
|
| xqd
@@ -377,7 +378,8 @@
|
|
|
}
|
|
|
let ress = await applyWithdraw(parms)
|
|
|
console.log('申请提现返回值', ress, ress.msg);
|
|
|
- if (ress.code == 0) {
|
|
|
+ // if (ress.code == 0) {
|
|
|
+ if (ress.code == '提交成功') {
|
|
|
uni.showToast({
|
|
|
title: '提现申请成功'
|
|
|
})
|