Commit 1280aee0 authored by FE-安焕焕's avatar FE-安焕焕 👣

修改实际支付金额

parent d42997b7
......@@ -606,14 +606,14 @@ export default {
return Object.keys(obj);
},
setAmount() {
const faceValue = +this.selectedCoupon?.faceValue || 0;
const orderAmt = +this.displayInfo?.orderAmt || 0;
const finalAmt =
IS_THIRD_PAY(this.payType) || !this.showCoupon
? this.displayInfo?.orderAmt || '0.00'
: (this.displayInfo?.orderAmt - this.selectedCoupon?.faceValue || 0).toFixed(2);
? orderAmt || '0.00'
: (orderAmt - faceValue || 0).toFixed(2);
const freeAmount =
!IS_THIRD_PAY(this.payType) && this.showCoupon
? this.selectedCoupon?.faceValue || '0.00'
: '0.00';
!IS_THIRD_PAY(this.payType) && this.showCoupon ? faceValue || '0.00' : '0.00';
cookies.set('amount', { finalAmt, freeAmount });
},
async reissueContract() {
......
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