From 7e30890122602759e184898bdde47ae906ff0e69 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 16 Jan 2025 09:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/swiper-manage/index.js | 13 +- src/views/login1.vue | 473 ++++++++++++++++++------------ src/views/swiper-manage/index.vue | 109 +++++-- vue.config.js | 3 +- 4 files changed, 384 insertions(+), 214 deletions(-) diff --git a/src/api/swiper-manage/index.js b/src/api/swiper-manage/index.js index 4b934254..267afcfe 100644 --- a/src/api/swiper-manage/index.js +++ b/src/api/swiper-manage/index.js @@ -1,10 +1,19 @@ import request from "@/utils/request"; // 新增上传首页轮播图 -export const addHomeSwiperApi = () => { +export const addHomeSwiperApi = (data) => { return request({ - url: "/auth/getConfig", + url: "/material-mall/bm_slide_show", + method: "post", + data, + }); +}; +// 轮播图列表 +export const getSwiperListApi = (data) => { + return request({ + url: "/material-mall//bm_slide_show/list", method: "get", + params: data, }); }; // 修改轮播图状态 diff --git a/src/views/login1.vue b/src/views/login1.vue index e1448ee7..3003166e 100644 --- a/src/views/login1.vue +++ b/src/views/login1.vue @@ -2,17 +2,28 @@