From 6d90d8e1bc0ceb99fdb16e07d7fd9020920e5f2d Mon Sep 17 00:00:00 2001 From: fanfan Date: Tue, 16 Apr 2024 10:36:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A0=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/goods/index.js | 2 +- components/goods-sku-popup/index.vue | 2836 +++++++++++++------------- pages/goods/components/SkuPopup.vue | 12 +- pages/goods/detail.vue | 31 +- pages/sureOrder/index.vue | 2379 +++++++++++---------- 5 files changed, 2738 insertions(+), 2522 deletions(-) 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 @@