Fix:抽奖活动商品不允许修改数量

This commit is contained in:
LinCyJang
2026-05-22 14:57:56 +08:00
parent 1b4db7d4f8
commit 3826e11a3e
+4 -2
View File
@@ -123,7 +123,7 @@
:cartNum="cart_num"
:hideQuantityControls="true"
:showOk="true"
:okText="currentGoodsItem && Number(currentGoodsItem.isGiftCard) === 1 ? '送给朋友' : '立即下单'"
:okText="currentGoodsItem && Number(currentGoodsItem.isGiftCard) === 1 ? '立即下单' : '立即下单'"
@changeFun="changeFun"
@ok="submitFromSku()"
/>
@@ -369,7 +369,9 @@ export default {
...(productSelect || {}),
...(this.attr.productSelect || {})
}
const isGiftOrder = Number(this.currentGoodsItem && this.currentGoodsItem.isGiftCard) === 1
// const isGiftOrder = Number(this.currentGoodsItem && this.currentGoodsItem.isGiftCard) === 1
const isGiftOrder = false
const stock = Number(currentSelect.stock || 0)
const hasNo = (this.attr.productAttr.length && !productSelect && this.isOpen) || stock <= 0
if (hasNo) {