|
@@ -367,19 +367,20 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
//账号余额支付
|
|
//账号余额支付
|
|
|
- async nowYuyue(params) {
|
|
|
|
|
- if (parseInt(this.dBalance) < parseInt(10)) {
|
|
|
|
|
|
|
+ async nowYuyue() {
|
|
|
|
|
+ if (parseFloat(this.dBalance) < parseFloat(this.orderInfo.totalAmount)) {
|
|
|
uni.showModal({
|
|
uni.showModal({
|
|
|
title: '账户余额不足',
|
|
title: '账户余额不足',
|
|
|
content: '请充值',
|
|
content: '请充值',
|
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: 'pages/my/pay?name=充值'
|
|
|
|
|
|
|
+ url: '../../pages/my/pay?name=充值'
|
|
|
})
|
|
})
|
|
|
} else if (res.cancel) { }
|
|
} else if (res.cancel) { }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ this.goPayBtnDisable = false
|
|
|
} else {
|
|
} else {
|
|
|
let data = await this.productOrderPayFun()
|
|
let data = await this.productOrderPayFun()
|
|
|
if (!data) return
|
|
if (!data) return
|