Commit dc6fa1e2 by zhangxw

云中鹤商品下单修改

1 parent b02f7a89
......@@ -58,7 +58,7 @@ Component({
})
this.setData({
detailInfo,
['detailInfo.goodsStock']: specificationDetailList?.stock,
['detailInfo.goodsStock']: specificationDetailList?.stock || detailInfo.goodsStock, // 多规格商品库存在每个规格组中
goodsNumber: detailInfo?.sellQty || 1
})
},
......@@ -121,6 +121,7 @@ Component({
this.cancel()
return this.triggerEvent('changeSku', {specificationData: detailInfo.specificationData, sellQty: goodsNumber || detailInfo.startQty})
}
console.log(detailInfo)
if (!detailInfo.goodsStock) return
detailInfo.sellQty = goodsNumber || detailInfo.sellQty
detailInfo?.platformGlGoodsSpecifications?.forEach(val => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!