修改物业缴费支付报错

This commit is contained in:
赵毅 2025-09-26 17:41:03 +08:00
parent a0c040e3af
commit e03aed53a5

View File

@ -230,7 +230,7 @@
微信支付
</view>
<view class="banlenceItem_right">
<span></span>{{ (currentMoney - balanceMoney).toFixed(2) }}
<span></span>{{ balanceMoney > currentMoney ? 0.00 : (currentMoney - balanceMoney).toFixed(2) }}
</view>
</view>
<view class="line3"></view>
@ -241,7 +241,7 @@
物业公积金支付
</view>
<view class="banlenceItem_right">
<span></span>{{ balanceMoney }}
<span></span>{{ balanceMoney > currentMoney ? currentMoney : balanceMoney }}
</view>
</view>
</view>
@ -476,7 +476,10 @@ export default {
if (this.payType == 1 || isComboPay) {
//
if (isComboPay) {
payParams.money = this.currentMoney - Number(this.balanceMoney).toFixed(2);
payParams.money = this.currentMoney - Number(this.balanceMoney).toFixed(2) > 0 ? this.currentMoney - Number(this.balanceMoney).toFixed(2) : 0.00;
if (payParams.money == 0.00) {
this.payType = 2;
}
} else {
payParams.money = this.currentMoney;
}