优惠券限制

This commit is contained in:
@fawn-nine
2024-10-21 16:52:04 +08:00
parent 4f8b4bba11
commit a94c9d2c21
2 changed files with 7 additions and 2 deletions

View File

@@ -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();