From d8c0bbe9cf5ef67333eaffa9507749bc2ac2dd3c Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Mon, 20 Nov 2023 14:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 10 +- pages/nongKe/gather/select_warehouse.vue | 8 +- pages/product/addGood/addGood.vue | 186 +++++++++++------- .../product/addGood/components/commodity.vue | 55 +----- pages/product/addGood/components/price.vue | 3 + pages/product/addGood/specGood.vue | 34 ++++ pages/product/addGoods/index.vue | 1 + pages/product/goodsOnSale/index.vue | 4 +- pages/product/list/index.vue | 36 ++-- 9 files changed, 191 insertions(+), 146 deletions(-) create mode 100644 pages/product/addGood/specGood.vue diff --git a/pages.json b/pages.json index c9b61e7..0ee15b6 100644 --- a/pages.json +++ b/pages.json @@ -1332,7 +1332,15 @@ "path" : "addGood/addGood", "style" : { - "navigationBarTitleText" : "", + "navigationBarTitleText" : "商品设置", + "enablePullDownRefresh" : false + } + }, + { + "path" : "addGood/specGood", + "style" : + { + "navigationBarTitleText" : "规格设置", "enablePullDownRefresh" : false } }, diff --git a/pages/nongKe/gather/select_warehouse.vue b/pages/nongKe/gather/select_warehouse.vue index ddacc96..ff1bd72 100644 --- a/pages/nongKe/gather/select_warehouse.vue +++ b/pages/nongKe/gather/select_warehouse.vue @@ -528,7 +528,7 @@ Toast("暂无搜索商品,请添加!") setTimeout(() => { uni.navigateTo({ - url: `/pages/product/addGoods/index?mer_id=${rq.mer_id}` + url: `/pages/product/addGood/addGood?mer_id=${rq.mer_id}` }) }, 2000) return @@ -646,8 +646,8 @@ }, navToAdd(){ let url; - if(this.showModelCode) url = `/pages/product/addGoods/index?mer_id=${this.mer_id}&code=${this.showModelCode}`; - else url = `/pages/product/addGoods/index?mer_id=${this.mer_id}`; + if(this.showModelCode) url = `/pages/product/addGood/addGood?mer_id=${this.mer_id}&code=${this.showModelCode}`; + else url = `/pages/product/addGood/addGood?mer_id=${this.mer_id}`; uni.navigateTo({ url:url, success:()=> { @@ -667,7 +667,7 @@ } }) } - navigateTo(1, '/pages/product/addGoods/index', { + navigateTo(1, '/pages/product/addGood/addGood', { mer_id: this.mer_id }); }, diff --git a/pages/product/addGood/addGood.vue b/pages/product/addGood/addGood.vue index 93a54d1..a2ba749 100644 --- a/pages/product/addGood/addGood.vue +++ b/pages/product/addGood/addGood.vue @@ -64,6 +64,7 @@ + @@ -72,11 +73,34 @@ + + - + + + + 商品规格 + + + {{ setFormData.spec_type==0?'单规格':'多规格' }} + + + + + + + + + + + 设置多规格 + + +