From 28cbcff6db6092e35e280f716585bfb33a31ad81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Mon, 16 Dec 2024 21:00:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/modules/mer_admin.js | 48 ++ src/router/full-routers.js | 26 + .../modules/marketing/points-mall/index.vue | 13 +- .../points-mall/popup/add-or-update.vue | 593 ++++++++++++++++++ .../marketing/points-mall/popup/commodity.vue | 230 +++++++ src/views/modules/product/banner/index.vue | 320 ++++++++++ .../product/banner/popup/add-or-update.vue | 276 ++++++++ .../product/banner/popup/set-sorting.vue | 122 ++++ src/views/modules/product/notice/index.vue | 324 ++++++++++ .../product/notice/popup/add-or-update.vue | 219 +++++++ .../product/notice/popup/set-sorting.vue | 122 ++++ src/views/modules/product/order/content.vue | 47 ++ src/views/modules/product/order/index.vue | 176 ++++-- src/views/modules/wallet/index.vue | 2 +- 15 files changed, 2476 insertions(+), 44 deletions(-) create mode 100644 src/views/modules/marketing/points-mall/popup/commodity.vue create mode 100644 src/views/modules/product/banner/index.vue create mode 100644 src/views/modules/product/banner/popup/add-or-update.vue create mode 100644 src/views/modules/product/banner/popup/set-sorting.vue create mode 100644 src/views/modules/product/notice/index.vue create mode 100644 src/views/modules/product/notice/popup/add-or-update.vue create mode 100644 src/views/modules/product/notice/popup/set-sorting.vue create mode 100644 src/views/modules/product/order/content.vue diff --git a/package.json b/package.json index 172c36e..30091b7 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "mockjs": "^1.1.0", "nprogress": "0.2.0", "obj-modal": "^1.2.2", - "obj-table-plus": "^2.4.0", + "obj-table-plus": "^2.5.0", "qrcodejs2": "^0.0.2", "qs": "^6.13.0", "quill": "1.3.7", diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index aca5092..b9aaf73 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -212,4 +212,52 @@ export const mer_admin = { params: data, }); }, + // 轮播图分页 + bannerPage: (data) => { + return $http.request({ + method: "get", + url: `/admin-api/banner/page`, + params: data, + }); + }, + // 轮播图添加 + bannerAdd: (data) => { + return $http.post(`/admin-api/banner/add`, data); + }, + //编辑轮播图 + bannerUpdate: (data) => { + return $http.post(`/admin-api/banner/update`, data); + }, + //删除轮播图 + bannerDelete: (data) => { + return $http.post(`/admin-api/banner/delete`, data); + }, + //排序轮播图 + sortBanner: (data) => { + return $http.post(`/admin-api/banner/update/sort`, data); + }, + // 公告分页 + noticePage: (data) => { + return $http.request({ + method: "get", + url: `/admin-api/notice/page`, + params: data, + }); + }, + // 公告添加 + noticeAdd: (data) => { + return $http.post(`/admin-api/notice/add`, data); + }, + //编辑公告 + noticeUpdate: (data) => { + return $http.post(`/admin-api/notice/update`, data); + }, + //删除公告 + noticeDelete: (data) => { + return $http.post(`/admin-api/notice/delete`, data); + }, + //排序公告 + sortnotice: (data) => { + return $http.post(`/admin-api/notice/update/sort`, data); + }, }; diff --git a/src/router/full-routers.js b/src/router/full-routers.js index 1ce4141..d580fd2 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -64,6 +64,32 @@ export default { open: null, list: [], }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "轮播图管理", + url: "product/banner/index", + perms: "", + type: 1, + elIcon: "el-icon-menu", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "公告管理", + url: "product/notice/index", + perms: "", + type: 1, + elIcon: "el-icon-menu", + orderNum: 0, + open: null, + list: [], + }, ], }, { diff --git a/src/views/modules/marketing/points-mall/index.vue b/src/views/modules/marketing/points-mall/index.vue index dfb8348..0400454 100644 --- a/src/views/modules/marketing/points-mall/index.vue +++ b/src/views/modules/marketing/points-mall/index.vue @@ -81,26 +81,26 @@
- +添加 + +添加
- + > + \ No newline at end of file diff --git a/src/views/modules/marketing/points-mall/popup/commodity.vue b/src/views/modules/marketing/points-mall/popup/commodity.vue new file mode 100644 index 0000000..f7d4012 --- /dev/null +++ b/src/views/modules/marketing/points-mall/popup/commodity.vue @@ -0,0 +1,230 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/banner/index.vue b/src/views/modules/product/banner/index.vue new file mode 100644 index 0000000..a719add --- /dev/null +++ b/src/views/modules/product/banner/index.vue @@ -0,0 +1,320 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/banner/popup/add-or-update.vue b/src/views/modules/product/banner/popup/add-or-update.vue new file mode 100644 index 0000000..50e4e07 --- /dev/null +++ b/src/views/modules/product/banner/popup/add-or-update.vue @@ -0,0 +1,276 @@ + + + \ No newline at end of file diff --git a/src/views/modules/product/banner/popup/set-sorting.vue b/src/views/modules/product/banner/popup/set-sorting.vue new file mode 100644 index 0000000..650cf95 --- /dev/null +++ b/src/views/modules/product/banner/popup/set-sorting.vue @@ -0,0 +1,122 @@ + + + diff --git a/src/views/modules/product/notice/index.vue b/src/views/modules/product/notice/index.vue new file mode 100644 index 0000000..8ea3149 --- /dev/null +++ b/src/views/modules/product/notice/index.vue @@ -0,0 +1,324 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/notice/popup/add-or-update.vue b/src/views/modules/product/notice/popup/add-or-update.vue new file mode 100644 index 0000000..bc693e8 --- /dev/null +++ b/src/views/modules/product/notice/popup/add-or-update.vue @@ -0,0 +1,219 @@ + + + \ No newline at end of file diff --git a/src/views/modules/product/notice/popup/set-sorting.vue b/src/views/modules/product/notice/popup/set-sorting.vue new file mode 100644 index 0000000..5229aca --- /dev/null +++ b/src/views/modules/product/notice/popup/set-sorting.vue @@ -0,0 +1,122 @@ + + + diff --git a/src/views/modules/product/order/content.vue b/src/views/modules/product/order/content.vue new file mode 100644 index 0000000..c8ed5e7 --- /dev/null +++ b/src/views/modules/product/order/content.vue @@ -0,0 +1,47 @@ + + + + + \ No newline at end of file diff --git a/src/views/modules/product/order/index.vue b/src/views/modules/product/order/index.vue index 3db031e..1d00cbc 100644 --- a/src/views/modules/product/order/index.vue +++ b/src/views/modules/product/order/index.vue @@ -60,9 +60,10 @@