Fix:抽奖活动商品不允许修改数量
This commit is contained in:
@@ -123,7 +123,7 @@
|
|||||||
:cartNum="cart_num"
|
:cartNum="cart_num"
|
||||||
:hideQuantityControls="true"
|
:hideQuantityControls="true"
|
||||||
:showOk="true"
|
:showOk="true"
|
||||||
:okText="currentGoodsItem && Number(currentGoodsItem.isGiftCard) === 1 ? '送给朋友' : '立即下单'"
|
:okText="currentGoodsItem && Number(currentGoodsItem.isGiftCard) === 1 ? '立即下单' : '立即下单'"
|
||||||
@changeFun="changeFun"
|
@changeFun="changeFun"
|
||||||
@ok="submitFromSku()"
|
@ok="submitFromSku()"
|
||||||
/>
|
/>
|
||||||
@@ -369,7 +369,9 @@ export default {
|
|||||||
...(productSelect || {}),
|
...(productSelect || {}),
|
||||||
...(this.attr.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 stock = Number(currentSelect.stock || 0)
|
||||||
const hasNo = (this.attr.productAttr.length && !productSelect && this.isOpen) || stock <= 0
|
const hasNo = (this.attr.productAttr.length && !productSelect && this.isOpen) || stock <= 0
|
||||||
if (hasNo) {
|
if (hasNo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user