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 @@