优惠券限制

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

@@ -26,7 +26,7 @@
</view>
<view style="width: 7%;">
<view class="" style="background-color: #d9d9d9; border-radius: 10rpx; 0 0 10rpx; text-align: center;" v-if="sumMeony < item.couponEntity.useLevel">
<view class="" style="background-color: #d9d9d9; border-radius: 10rpx; 0 0 10rpx; text-align: center;" v-if="item.canUse == 0">
<text
style="color: #999; "
>不可用</text>
@@ -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);