From c8e64a1abfba3392f199c4d5f8a40e486285872d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=80=AA?= <690927457@qq.com> Date: Fri, 29 Dec 2023 00:09:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=83=8C=E6=99=AF=E5=9B=BE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bgList.js | 40 +++++ src/view/article/index.vue | 8 +- src/view/bgList/index.vue | 344 +++++++++++++++++++++++++++++++++++++ 3 files changed, 390 insertions(+), 2 deletions(-) create mode 100644 src/api/bgList.js create mode 100644 src/view/bgList/index.vue diff --git a/src/api/bgList.js b/src/api/bgList.js new file mode 100644 index 0000000..71cafe4 --- /dev/null +++ b/src/api/bgList.js @@ -0,0 +1,40 @@ +import service from '@/utils/request' +const api = { + // 背景图api + getBgManageList: data => { + return service({ + url: '/poster/list', + method: 'get', + params: data + }) + }, + addBgManage: data => { + return service({ + url: '/poster', + method: 'post', + data + }) + }, + editBgManage: data => { + return service({ + url: '/poster', + method: 'put', + data + }) + }, + delBg: data => { + return service({ + url: '/poster', + method: 'delete', + data + }) + }, + editBgState: data => { + return service({ + url: '/banner/status', + method: 'put', + data + }) + }, +} +export default api diff --git a/src/view/article/index.vue b/src/view/article/index.vue index 0f4992d..26f1376 100644 --- a/src/view/article/index.vue +++ b/src/view/article/index.vue @@ -296,9 +296,10 @@ function beforeAvatarUpload(file) {
-