|
@@ -348,6 +348,10 @@ export default {
|
|
|
this.$u.api.getCouponByOrderIdApi({ orderId:orderId,payAmount:this.orderMoney }).then((res) => {
|
|
|
console.log('getCouponList',res);
|
|
|
this.couponPopup.couponList = res?.data.list ?? [];
|
|
|
+ if(this.couponPopup.couponList.length>0){//优惠券选择处应自动默认最大额度的优惠券进行显示(后台排序了)
|
|
|
+ this.couponPopup.currentCoupon = this.couponPopup.couponList[0];
|
|
|
+ this.couponPopup.radioCurrent = this.couponPopup.couponList[0].id;
|
|
|
+ }
|
|
|
// console.log(' this.couponPopup.couponList', this.couponPopup.couponList);
|
|
|
});
|
|
|
},
|