From eccbae3b697e66e3760a6e8427c0757e8428a48a Mon Sep 17 00:00:00 2001 From: fy <> Date: Thu, 22 Jan 2026 21:27:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/product.js | 38 + components/BrandSelector/BrandSelector.vue | 269 +++++ pages.json | 35 +- pages/BrandSelector/BrandSelector.vue | 184 +++ pages/category/category.vue | 1048 +++++++++++++++++ pages/edit/edit.vue | 273 ++++- pages/enter/enter.vue | 2 +- .../Import .vue => import/import.vue} | 0 pages/product/product.vue | 2 +- 9 files changed, 1819 insertions(+), 32 deletions(-) create mode 100644 components/BrandSelector/BrandSelector.vue create mode 100644 pages/BrandSelector/BrandSelector.vue create mode 100644 pages/category/category.vue rename pages/{Import /Import .vue => import/import.vue} (100%) diff --git a/api/product.js b/api/product.js index 77fee46..457922b 100644 --- a/api/product.js +++ b/api/product.js @@ -312,4 +312,42 @@ export function updateBrand(data) { method: 'post', data: data }) +} + +// 新增分类 +export function addClassification(data) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: '/mall/classification/add', + method: 'post', + data: data + }) +} + +// 获取分类树状结构 +export function getClassificationTree(storeId) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: `/mall/classification/getTree/${storeId}`, + method: 'get' + }) +} + +// 修改分类名称 +export function updateClassification(data) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: '/mall/classification/update', + method: 'post', + data: data + }) +} + +// 删除分类 +export function deleteClassification(classificationId) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: `/mall/classification/delete/${classificationId}`, + method: 'delete' + }) } \ No newline at end of file diff --git a/components/BrandSelector/BrandSelector.vue b/components/BrandSelector/BrandSelector.vue new file mode 100644 index 0000000..ba1fdb3 --- /dev/null +++ b/components/BrandSelector/BrandSelector.vue @@ -0,0 +1,269 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 49e33d9..637147c 100644 --- a/pages.json +++ b/pages.json @@ -127,29 +127,18 @@ } }, { - "path": "pages/Import /Import ", - "style": { - "navigationBarTitleText": "" - } - }, - { - "path": "pages/userStores/userStores", - "style": { - "navigationBarTitleText": "用户门店关联" - } - }, + "path": "pages/import/import", + "style": { + "navigationBarTitleText": "" + } +}, { "path": "pages/userStores/userStores", "style": { "navigationBarTitleText": "" } }, - { - "path": "pages/expired/expired", - "style": { - "navigationBarTitleText": "" - } - }, + { "path": "pages/expired/expired", "style": { @@ -167,6 +156,18 @@ "style": { "navigationBarTitleText": "" } + }, + { + "path": "pages/BrandSelector/BrandSelector", + "style": { + "navigationBarTitleText": "选择品牌" + } + }, + { + "path": "pages/category/category", + "style": { + "navigationBarTitleText": "" + } } ], "tabBar": { diff --git a/pages/BrandSelector/BrandSelector.vue b/pages/BrandSelector/BrandSelector.vue new file mode 100644 index 0000000..d81b98c --- /dev/null +++ b/pages/BrandSelector/BrandSelector.vue @@ -0,0 +1,184 @@ + + + + + \ No newline at end of file diff --git a/pages/category/category.vue b/pages/category/category.vue new file mode 100644 index 0000000..202f391 --- /dev/null +++ b/pages/category/category.vue @@ -0,0 +1,1048 @@ + + + + + \ No newline at end of file diff --git a/pages/edit/edit.vue b/pages/edit/edit.vue index 3879e81..3449050 100644 --- a/pages/edit/edit.vue +++ b/pages/edit/edit.vue @@ -240,15 +240,85 @@ /> - - + + 商品品牌 - + + {{ goodsInfo.brand || '请选择品牌' }} + > + + + + + + + + + + × + + 选择品牌 + + 完成 + + + + + + + + + + + + + 默认品牌 + + + + + + + + + 品牌管理 + + @@ -273,7 +343,6 @@