From 4d8f19abe03b8e5f802fbf1f71020404f1821e92 Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080@qq.com> Date: Wed, 11 May 2022 18:10:31 +0800 Subject: [PATCH] =?UTF-8?q?PC=E5=88=9B=E4=BD=9C=E8=80=85=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wjnft/brand.js | 44 ++ src/components/ImageUpload/index.vue | 18 +- src/views/wjnft/artapplication/index.vue | 30 +- src/views/wjnft/brand/index.vue | 554 +++++++++++++++++++++++ src/views/wjnft/collection/index.vue | 11 +- src/views/wjnft/uploading/upload.vue | 2 +- 6 files changed, 632 insertions(+), 27 deletions(-) create mode 100644 src/api/wjnft/brand.js create mode 100644 src/views/wjnft/brand/index.vue diff --git a/src/api/wjnft/brand.js b/src/api/wjnft/brand.js new file mode 100644 index 0000000..47a350a --- /dev/null +++ b/src/api/wjnft/brand.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询入驻品牌列表 +export function listBrand(query) { + return request({ + url: '/wjnft/brand/list', + method: 'get', + params: query + }) +} + +// 查询入驻品牌详细 +export function getBrand(id) { + return request({ + url: '/wjnft/brand/' + id, + method: 'get' + }) +} + +// 新增入驻品牌 +export function addBrand(data) { + return request({ + url: '/wjnft/brand', + method: 'post', + data: data + }) +} + +// 修改入驻品牌 +export function updateBrand(data) { + return request({ + url: '/wjnft/brand', + method: 'put', + data: data + }) +} + +// 删除入驻品牌 +export function delBrand(id) { + return request({ + url: '/wjnft/brand/' + id, + method: 'delete' + }) +} diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index cf97c39..b0ee40b 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -1,7 +1,7 @@