diff --git a/components/orderCoupon.vue b/components/orderCoupon.vue index 171d822..9cd3332 100644 --- a/components/orderCoupon.vue +++ b/components/orderCoupon.vue @@ -26,7 +26,7 @@ - + 不可用 @@ -130,7 +130,7 @@ }, // 选择优惠券 choseYouhui(e) { - if(this.list[e].couponEntity.useLevel > this.sumMeony ){ + if(this.list[e].canUse == 0 ){ return } console.log('选中优惠券e', e); diff --git a/pages/goods/order/index.vue b/pages/goods/order/index.vue index 92d4ee3..1c04d1b 100644 --- a/pages/goods/order/index.vue +++ b/pages/goods/order/index.vue @@ -714,6 +714,11 @@ } if (res.code == 0) { console.log("可用优惠券列表", res); + res.couponHistoryList.forEach( item =>{ + if(item.couponEntity.useLevel > this.totalPrice){ + item.canUse = 0 + } + }) this.couponHistoryList = res.couponHistoryList } this.$forceUpdate();