diff --git a/src/api/mall/market/banner/index.ts b/src/api/mall/market/banner/index.ts
index af96b8f9..ee65024c 100644
--- a/src/api/mall/market/banner/index.ts
+++ b/src/api/mall/market/banner/index.ts
@@ -6,31 +6,32 @@ export interface BannerVO {
picUrl: string
status: number
url: string
+ position: number
sort: number
memo: string
}
// 查询Banner管理列表
export const getBannerPage = async (params) => {
- return await request.get({ url: `/market/banner/page`, params })
+ return await request.get({ url: `/promotion/banner/page`, params })
}
// 查询Banner管理详情
export const getBanner = async (id: number) => {
- return await request.get({ url: `/market/banner/get?id=` + id })
+ return await request.get({ url: `/promotion/banner/get?id=` + id })
}
// 新增Banner管理
export const createBanner = async (data: BannerVO) => {
- return await request.post({ url: `/market/banner/create`, data })
+ return await request.post({ url: `/promotion/banner/create`, data })
}
// 修改Banner管理
export const updateBanner = async (data: BannerVO) => {
- return await request.put({ url: `/market/banner/update`, data })
+ return await request.put({ url: `/promotion/banner/update`, data })
}
// 删除Banner管理
export const deleteBanner = async (id: number) => {
- return await request.delete({ url: `/market/banner/delete?id=` + id })
+ return await request.delete({ url: `/promotion/banner/delete?id=` + id })
}
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index f6d5e434..041d5ba3 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -185,6 +185,7 @@ export enum DICT_TYPE {
PROMOTION_CONDITION_TYPE = 'promotion_condition_type', // 营销的条件类型枚举
PROMOTION_BARGAIN_RECORD_STATUS = 'promotion_bargain_record_status', // 砍价记录的状态
PROMOTION_COMBINATION_RECORD_STATUS = 'promotion_combination_record_status', // 拼团记录的状态
+ BANNER_POSITION = 'banner_position', // banner 定位
// ========== CRM - 客户管理模块 ==========
CRM_RECEIVABLE_CHECK_STATUS = 'crm_receivable_check_status',
diff --git a/src/views/mall/promotion/banner/BannerForm.vue b/src/views/mall/promotion/banner/BannerForm.vue
index 42405d41..d794d2bf 100644
--- a/src/views/mall/promotion/banner/BannerForm.vue
+++ b/src/views/mall/promotion/banner/BannerForm.vue
@@ -41,6 +41,19 @@
+
+
+
+
+ {{ dict.label }}
+
+
+
+
@@ -70,6 +83,7 @@ const formData = ref({
title: undefined,
picUrl: undefined,
status: 0,
+ position: 1,
url: undefined,
sort: 0,
memo: undefined
@@ -133,6 +147,7 @@ const resetForm = () => {
title: undefined,
picUrl: undefined,
status: 0,
+ position: 1,
url: undefined,
sort: 0,
memo: undefined
diff --git a/src/views/mall/promotion/banner/index.vue b/src/views/mall/promotion/banner/index.vue
index 6050abb5..bcf6d80d 100644
--- a/src/views/mall/promotion/banner/index.vue
+++ b/src/views/mall/promotion/banner/index.vue
@@ -48,7 +48,7 @@
重置
+
+
+
+
+