|
@@ -331,7 +331,8 @@ export default {
|
|
|
// 计算订单金额
|
|
|
this.orderMoney = details.payAmount.toFixed(2);
|
|
|
// 如果是单个停车订单,且是路边停车,且不是月卡支付,则显示优惠券
|
|
|
- if (numType === 'single' && orderType === 'parking' && !this.isMonthPay && this.wxEnv) {
|
|
|
+ // console.table({numType:numType,orderType:orderType,isMonthPay:!this.isMonthPay,wxEnv:this.wxEnv});
|
|
|
+ if (numType === 'single' && orderType === 'road' && !this.isMonthPay && this.wxEnv) {
|
|
|
this.isShowCoupon = true;
|
|
|
this.isCancelCoupon = true;
|
|
|
this.getCouponList(details.id);
|
|
@@ -344,8 +345,10 @@ export default {
|
|
|
* @returns {any}
|
|
|
*/
|
|
|
getCouponList(orderId) {
|
|
|
- this.$u.api.getCouponByOrderIdApi({ orderId }).then((res) => {
|
|
|
- this.couponPopup.couponList = res?.data ?? [];
|
|
|
+ this.$u.api.getCouponByOrderIdApi({ orderId:orderId,payAmount:this.orderMoney }).then((res) => {
|
|
|
+ console.log('getCouponList',res);
|
|
|
+ this.couponPopup.couponList = res?.data.list ?? [];
|
|
|
+ // console.log(' this.couponPopup.couponList', this.couponPopup.couponList);
|
|
|
});
|
|
|
},
|
|
|
/**
|