修复优化

This commit is contained in:
gyq
2025-04-07 09:37:08 +08:00
parent 429283e542
commit ebf912ecd8
3 changed files with 9 additions and 7 deletions

View File

@@ -499,8 +499,8 @@ const noteList = ref([
// 显示
function showDiscountModalHandle() {
let item = goodsStore.cartList[goodsStore.cartActiveIndex]
if ((item && item.id) && (!item.is_temporary || !item.is_gift)) {
// 存在商品并且不能为临时菜
if ((item && item.id) && (!item.is_temporary && !item.is_gift)) {
// 存在商品并且不能为临时菜或者赠送
showDiscountModal.value = true
}
}