diff --git a/api/product.js b/api/product.js index 07769d9..77fee46 100644 --- a/api/product.js +++ b/api/product.js @@ -250,8 +250,66 @@ export function importProductData(filePath, formData) { // 获取导入记录 export function getImportRecord() { return request8081({ - baseUrl: 'http://192.168.0.7:8081', + baseUrl: 'http://193.112.94.36:8081', url: '/mall/product/importRecord', method: 'get' }); +} + +// 批量删除商品 +export function batchDeleteProduct(ids) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: '/mall/product/batchDelete', + method: 'delete', + data: { ids: ids } + }) +} + +// 添加品牌 +export function addBrand(data) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: '/mall/brand/add', + method: 'post', + data: data + }) +} + +// 获取品牌列表 +export function getBrandList(params) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: '/mall/brand/list', + method: 'get', + params: params + }) +} + +// 获取品牌树状结构 +export function getBrandTree(storeId) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: `/mall/brand/getTree/${storeId}`, + method: 'get' + }) +} + +// 删除品牌 +export function deleteBrand(brandId) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: `/mall/brand/delete/${brandId}`, + method: 'delete' + }) +} + +// 修改品牌名称 +export function updateBrand(data) { + return request8081({ + baseUrl: 'http://193.112.94.36:8081', + url: '/mall/brand/update', + method: 'post', + data: data + }) } \ No newline at end of file diff --git a/config.js b/config.js index 3bbb724..ff72a7b 100644 --- a/config.js +++ b/config.js @@ -3,6 +3,7 @@ module.exports = { // baseUrl: 'https://vue.ruoyi.vip/prod-api', baseUrl:'http://193.112.94.36:8080', + // baseUrl = 'https://api.ruoyi.com' // prodApi: 'https://vue.ruoyi.vip/prod-api', // baseUrl: 'http://localhost:8080', // 应用信息 diff --git a/pages.json b/pages.json index 394eafb..49e33d9 100644 --- a/pages.json +++ b/pages.json @@ -155,6 +155,18 @@ "style": { "navigationBarTitleText": "" } + }, + { + "path": "pages/batchDeleteProduct/batchDeleteProduct", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/addBrand/addBrand", + "style": { + "navigationBarTitleText": "" + } } ], "tabBar": { diff --git a/pages/addBrand/addBrand.vue b/pages/addBrand/addBrand.vue new file mode 100644 index 0000000..8a6627a --- /dev/null +++ b/pages/addBrand/addBrand.vue @@ -0,0 +1,961 @@ + + + + + \ No newline at end of file diff --git a/pages/batchDeleteProduct/batchDeleteProduct.vue b/pages/batchDeleteProduct/batchDeleteProduct.vue new file mode 100644 index 0000000..b6bce9d --- /dev/null +++ b/pages/batchDeleteProduct/batchDeleteProduct.vue @@ -0,0 +1,380 @@ + + + + + \ No newline at end of file diff --git a/pages/product/product.vue b/pages/product/product.vue index 39d3fad..93434df 100644 --- a/pages/product/product.vue +++ b/pages/product/product.vue @@ -104,8 +104,8 @@ - - 更多 + + 更多