From 491b3a5018db069f0237473441b1189273ee0f0d Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sat, 21 Oct 2023 02:40:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20banner=20=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/market/banner/index.ts | 36 ++++ src/views/mall/promotion/article/index.vue | 1 - .../promotion/market/banner/BannerForm.vue | 142 +++++++++++++ .../mall/promotion/market/banner/index.vue | 199 ++++++++++++++++++ 4 files changed, 377 insertions(+), 1 deletion(-) create mode 100644 src/api/mall/market/banner/index.ts create mode 100644 src/views/mall/promotion/market/banner/BannerForm.vue create mode 100644 src/views/mall/promotion/market/banner/index.vue diff --git a/src/api/mall/market/banner/index.ts b/src/api/mall/market/banner/index.ts new file mode 100644 index 00000000..af96b8f9 --- /dev/null +++ b/src/api/mall/market/banner/index.ts @@ -0,0 +1,36 @@ +import request from '@/config/axios' + +export interface BannerVO { + id: number + title: string + picUrl: string + status: number + url: string + sort: number + memo: string +} + +// 查询Banner管理列表 +export const getBannerPage = async (params) => { + return await request.get({ url: `/market/banner/page`, params }) +} + +// 查询Banner管理详情 +export const getBanner = async (id: number) => { + return await request.get({ url: `/market/banner/get?id=` + id }) +} + +// 新增Banner管理 +export const createBanner = async (data: BannerVO) => { + return await request.post({ url: `/market/banner/create`, data }) +} + +// 修改Banner管理 +export const updateBanner = async (data: BannerVO) => { + return await request.put({ url: `/market/banner/update`, data }) +} + +// 删除Banner管理 +export const deleteBanner = async (id: number) => { + return await request.delete({ url: `/market/banner/delete?id=` + id }) +} diff --git a/src/views/mall/promotion/article/index.vue b/src/views/mall/promotion/article/index.vue index 1dc0928d..123fdde7 100644 --- a/src/views/mall/promotion/article/index.vue +++ b/src/views/mall/promotion/article/index.vue @@ -78,7 +78,6 @@ -