diff --git a/api/goods/index.js b/api/goods/index.js index ffe6ee8..904f6a0 100644 --- a/api/goods/index.js +++ b/api/goods/index.js @@ -92,5 +92,5 @@ export const editGoodsSeckillPrice = param => { } // 是否有货 export const getGoodsStock = param => { - return request.get('goods/getGoodsStock', param) + return request.post('goods/getGoodsStock', param) } \ No newline at end of file diff --git a/components/goods-sku-popup/index.vue b/components/goods-sku-popup/index.vue index 9c28eb4..bd422d6 100644 --- a/components/goods-sku-popup/index.vue +++ b/components/goods-sku-popup/index.vue @@ -1,1381 +1,1455 @@ - - - - - \ No newline at end of file + + + + + diff --git a/pages/goods/components/SkuPopup.vue b/pages/goods/components/SkuPopup.vue index 9d9b438..ca482e5 100644 --- a/pages/goods/components/SkuPopup.vue +++ b/pages/goods/components/SkuPopup.vue @@ -184,9 +184,17 @@ }, selectedOld(e) { this.selectSku = e + this.$emit('getSku', { + selectSku: this.selectSku, + shopNum: this.shopNum + }) }, numChange(e) { this.shopNum = e + this.$emit('getSku', { + selectSku: this.selectSku, + shopNum: this.shopNum + }) }, // sku组件 开始----------------------------------------------------------- openSkuPopup() { @@ -194,10 +202,6 @@ }, closeSkuPopup() { - this.$emit('getSku', { - selectSku: this.selectSku, - shopNum: this.shopNum - }) // console.log("监听 - 关闭sku组件") }, diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index 5713b39..4d4bc1a 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -117,17 +117,17 @@ - + 已选 {{selectSku.title.name}}-{{selectSku.value.name}}{{selectShop}}件 - + - + 已选 - {{selectShop}}件 + {{selectNum}}件 @@ -284,12 +284,15 @@