Commit 4bbbbeb1 authored by 李智书's avatar 李智书

1.充值提现;

parent 4cee79c1
...@@ -140,7 +140,8 @@ ...@@ -140,7 +140,8 @@
openCardPhonSms: "", openCardPhonSms: "",
msCount: 60, //定时器 msCount: 60, //定时器
CodeMsg: "获取验证码", CodeMsg: "获取验证码",
RechargeSmsorderNoInfo: {} //第三方合作交易标识 RechargeSmsorderNoInfo: {}, //第三方合作交易标识
WithdrawInfo: null
} }
}, },
onLoad: function(options) { onLoad: function(options) {
...@@ -311,6 +312,7 @@ ...@@ -311,6 +312,7 @@
// 提现 // 提现
async ExchangeWithdraw() { async ExchangeWithdraw() {
let this_ = this; let this_ = this;
if (bankInfo.accountType != 4) {
if (!this.RechargeSmsorderNoInfo.orderNo) { if (!this.RechargeSmsorderNoInfo.orderNo) {
Dialog({ Dialog({
title: '系统提示', title: '系统提示',
...@@ -318,6 +320,7 @@ ...@@ -318,6 +320,7 @@
}); });
return return
} }
}
if (!this.openCardPhonSms) { if (!this.openCardPhonSms) {
Dialog({ Dialog({
title: '系统提示', title: '系统提示',
...@@ -366,14 +369,21 @@ ...@@ -366,14 +369,21 @@
success: function(res5) { success: function(res5) {
loading.hide(); loading.hide();
if (res5.code == "10000") { if (res5.code == "10000") {
this.WithdrawInfo = res5.results || null
wx.showModal({ wx.showModal({
title: '提现申请已提交', title: '提现申请已提交',
content: '银行处理需要1-5分钟时间,充值结果以余额查询为准。', content: '银行处理需要1-5分钟时间,充值结果以余额查询为准。',
showCancel: false, showCancel: false,
success: function() { success: function() {
if (bankInfo.accountType != 4) {
this_.ExchangeWithdrawQuery(); this_.ExchangeWithdrawQuery();
} }
if (bankInfo.accountType == 4) {
window.location.reload()
}
}
}) })
} else { } else {
weui.topTips(res5.message) weui.topTips(res5.message)
} }
...@@ -581,13 +591,14 @@ ...@@ -581,13 +591,14 @@
if (res3.results.eacTotalAmt == null) { if (res3.results.eacTotalAmt == null) {
weui.topTips("账户信息为空,余额查询失败"); weui.topTips("账户信息为空,余额查询失败");
} else { } else {
this_.ReflectMoney = res3.results.eacTotalAmt * 1
this_.cardBalanceTx = (res3.results.eacTotalAmt * 1).toFixed(2); this_.cardBalanceTx = (res3.results.eacTotalAmt * 1).toFixed(2);
$('.TxClsTx').attr('placeholder', $('.TxClsTx').attr('placeholder',
`可提现金额${(res3.results.eacTotalAmt * 1).toFixed(2)}元` `可提现金额${(res3.results.eacTotalAmt * 1).toFixed(2)}元`
) )
this_.RechargeMax = ((2000 - ((res3.results.eacTotalAmt * 1).toFixed( this_.RechargeMax = ((2000 - ((res3.results.eacTotalAmt * 1).toFixed(2) *
2) *
1)).toFixed(2)); 1)).toFixed(2));
this_.placeholder = `可提现金额${(res3.results.eacTotalAmt * 1).toFixed(2)}元`
} }
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment