Commit cf807bfc authored by FE-安焕焕's avatar FE-安焕焕 👣

修改优惠券展示问题

parent 96c03c90
......@@ -576,7 +576,10 @@ export default {
IS_THIRD_PAY(this.payType) || !this.showCoupon
? this.displayInfo?.orderAmt || '0.00'
: (this.displayInfo?.orderAmt - this.selectedCoupon?.faceValue || 0).toFixed(2);
const freeAmount = this.showCoupon ? this.selectedCoupon?.faceValue || '0.00' : '0.00';
const freeAmount =
!IS_THIRD_PAY(this.payType) && this.showCoupon
? this.selectedCoupon?.faceValue || '0.00'
: '0.00';
cookies.set('amount', { finalAmt, freeAmount });
}
}
......
......@@ -63,7 +63,7 @@ export default {
created() {
const { orderNo, reason } = this.$route.query;
const { success } = this.$route.meta;
const amount = cookies.get('amount');
const amount = cookies.get('amount') || {};
this.money = amount.finalAmt;
this.orderNo = orderNo;
this.reason = reason || '';
......
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