diff --git a/.env.local b/.env.local
index 23eeb00..0af2b7f 100644
--- a/.env.local
+++ b/.env.local
@@ -4,7 +4,7 @@ NODE_ENV=development
VITE_DEV=true
# 请求路径
-VITE_BASE_URL='http://127.0.0.1:48081'
+VITE_BASE_URL='http://127.0.0.1:48080'
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
VITE_UPLOAD_TYPE=server
diff --git a/src/api/community/banner/index.ts b/src/api/community/banner/index.ts
new file mode 100644
index 0000000..2c57a35
--- /dev/null
+++ b/src/api/community/banner/index.ts
@@ -0,0 +1,54 @@
+import request from '@/config/axios'
+import type {Dayjs} from 'dayjs';
+
+/** banner管理信息 */
+export interface Banner {
+ id: number; // 编号
+ name?: string; // banner名称
+ picUrl?: string; // banner图片URL
+ position?: number; // 显示位置(1-首页,2-个人中心,3-好房出租)
+ url: string; // 跳转链接
+ status?: number; // 状态(0-开启,1-关闭)
+ startTime?: string | Dayjs; // 有效期开始时间
+ endTime?: string | Dayjs; // 有效期结束时间
+ sort?: number; // 排序(数字越小越靠前)
+ remark: string; // 备注
+ }
+
+// banner管理 API
+export const BannerApi = {
+ // 查询banner管理分页
+ getBannerPage: async (params: any) => {
+ return await request.get({ url: `/community/banner/page`, params })
+ },
+
+ // 查询banner管理详情
+ getBanner: async (id: number) => {
+ return await request.get({ url: `/community/banner/get?id=` + id })
+ },
+
+ // 新增banner管理
+ createBanner: async (data: Banner) => {
+ return await request.post({ url: `/community/banner/create`, data })
+ },
+
+ // 修改banner管理
+ updateBanner: async (data: Banner) => {
+ return await request.put({ url: `/community/banner/update`, data })
+ },
+
+ // 删除banner管理
+ deleteBanner: async (id: number) => {
+ return await request.delete({ url: `/community/banner/delete?id=` + id })
+ },
+
+ /** 批量删除banner管理 */
+ deleteBannerList: async (ids: number[]) => {
+ return await request.delete({ url: `/community/banner/delete-list?ids=${ids.join(',')}` })
+ },
+
+ // 导出banner管理 Excel
+ exportBanner: async (params) => {
+ return await request.download({ url: `/community/banner/export-excel`, params })
+ }
+}
\ No newline at end of file
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index ad07b6a..a88f989 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -202,4 +202,5 @@ export enum DICT_TYPE {
COMM_AUDIT_STATUS = 'comm_audit_status',
COMM_RELATION_TYPE = 'comm_relation_type',
COMM_ID_TYPE = 'comm_id_type',
+ COMM_BANNER_LOCATION = 'comm_banner_location',
}
diff --git a/src/views/community/banner/BannerForm.vue b/src/views/community/banner/BannerForm.vue
new file mode 100644
index 0000000..e44a1fa
--- /dev/null
+++ b/src/views/community/banner/BannerForm.vue
@@ -0,0 +1,195 @@
+
+
+
+
diff --git a/src/views/community/banner/index.vue b/src/views/community/banner/index.vue
new file mode 100644
index 0000000..9724d4b
--- /dev/null
+++ b/src/views/community/banner/index.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+ 重置
+
+
+
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+ {{ formatDate(scope.row.startTime) }} ~ {{ formatDate(scope.row.endTime) }}
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+