Fix:抽奖活动商品不允许修改数量
This commit is contained in:
@@ -493,6 +493,7 @@
|
|||||||
ref="attrWindow"
|
ref="attrWindow"
|
||||||
:attr="attr"
|
:attr="attr"
|
||||||
:cartNum="cart_num"
|
:cartNum="cart_num"
|
||||||
|
:hideQuantityControls="source === 'countyLottery' && Number(activityId) > 0"
|
||||||
@changeFun="changeFun"
|
@changeFun="changeFun"
|
||||||
:isNegotiable="storeInfo.isNegotiable === 1"
|
:isNegotiable="storeInfo.isNegotiable === 1"
|
||||||
@gift="gift"
|
@gift="gift"
|
||||||
|
|||||||
@@ -848,11 +848,21 @@ export default {
|
|||||||
goGoodsCon(item, isGiftCardReceiveBlind, isDrawOrder) {
|
goGoodsCon(item, isGiftCardReceiveBlind, isDrawOrder) {
|
||||||
if(isGiftCardReceiveBlind) return
|
if(isGiftCardReceiveBlind) return
|
||||||
if(isDrawOrder) return
|
if(isDrawOrder) return
|
||||||
|
const activityId = Number(
|
||||||
|
item.drawActivityId ||
|
||||||
|
(item.productInfo && item.productInfo.drawActivityId) ||
|
||||||
|
0
|
||||||
|
)
|
||||||
|
const query = {
|
||||||
|
id: item.productId
|
||||||
|
}
|
||||||
|
if (activityId > 0) {
|
||||||
|
query.from = 'countyLottery'
|
||||||
|
query.activityId = activityId
|
||||||
|
}
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
path: '/pages/shop/GoodsCon/index',
|
path: '/pages/shop/GoodsCon/index',
|
||||||
query: {
|
query
|
||||||
id: item.productId
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleShowMore() {
|
handleShowMore() {
|
||||||
|
|||||||
Reference in New Issue
Block a user