优惠券限制
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user