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

1.充值提现;

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