diff --git a/yudao-admin-vue3/index.html b/yudao-admin-vue3/index.html index 8cfcbef..fd7ffbd 100644 --- a/yudao-admin-vue3/index.html +++ b/yudao-admin-vue3/index.html @@ -136,7 +136,7 @@
- +
%VITE_APP_TITLE%
diff --git a/yudao-admin-vue3/src/api/mall/promotion/advertising/index.ts b/yudao-admin-vue3/src/api/mall/promotion/advertising/index.ts new file mode 100644 index 0000000..2756c6e --- /dev/null +++ b/yudao-admin-vue3/src/api/mall/promotion/advertising/index.ts @@ -0,0 +1,50 @@ +import request from '@/config/axios' + +// 开屏广告 VO +export interface AdvertisingVO { + id: number // id + status: number // 广告状态 + time: number // 广告时间(秒) + property: string // 广告属性 + picData: [] + stat: boolean, +} + +// 开屏广告 API +export const AdvertisingApi = { + // 查询开屏广告分页 + getAdvertisingPage: async (params: any) => { + return await request.get({ url: `/promotion/advertising/page`, params }) + }, + + // 查询开屏广告详情 + getAdvertising: async () => { + return await request.get({ url: `/promotion/advertising/getAdvertising`}) + }, + + // 新增开屏广告 + createAdvertising: async (data: AdvertisingVO) => { + return await request.post({ url: `/promotion/advertising/create`, data }) + }, + + // 修改开屏广告 + updateAdvertising: async (data: AdvertisingVO) => { + return await request.put({ url: `/promotion/advertising/update`, data }) + }, + + // 删除开屏广告 + deleteAdvertising: async (id: number) => { + return await request.delete({ url: `/promotion/advertising/delete?id=` + id }) + }, + + // 导出开屏广告 Excel + exportAdvertising: async (params) => { + return await request.download({ url: `/promotion/advertising/export-excel`, params }) + }, + + // 新增修稿开屏广告 + saveAdvertising: async (data: AdvertisingVO) => { + return await request.post({ url: `/promotion/advertising/saveAdvertising`, data }) + }, + +} \ No newline at end of file diff --git a/yudao-admin-vue3/src/api/mall/promotion/configuration/index.ts b/yudao-admin-vue3/src/api/mall/promotion/configuration/index.ts index 0d26c49..170a388 100644 --- a/yudao-admin-vue3/src/api/mall/promotion/configuration/index.ts +++ b/yudao-admin-vue3/src/api/mall/promotion/configuration/index.ts @@ -3,7 +3,7 @@ import request from '@/config/axios' // 客服配置 VO export interface ConfigurationVO { id: number // id - type: string // 客服类型 + type: number // 客服类型 feedback: string // 客服反馈 phone: string // 客服电话 link: string // 客服链接 diff --git a/yudao-admin-vue3/src/api/mall/promotion/kefu/conversation/index.ts b/yudao-admin-vue3/src/api/mall/promotion/kefu/conversation/index.ts index 6e9589c..c63bc1b 100644 --- a/yudao-admin-vue3/src/api/mall/promotion/kefu/conversation/index.ts +++ b/yudao-admin-vue3/src/api/mall/promotion/kefu/conversation/index.ts @@ -23,8 +23,8 @@ export const KeFuConversationApi = { return await request.get({ url: '/promotion/kefu-conversation/list' }) }, // 获得客服会话列表 - getConversationListByKefuId: async (kefuId: number) => { - return await request.get({ url: '/promotion/kefu-conversation/list?kefuId=' + kefuId }) + getConversationListByKefuId: async (kefuId: number , name: string) => { + return await request.get({ url: '/promotion/kefu-conversation/list?kefuId=' + kefuId + `&name=` + name }) }, // 客服会话置顶 updateConversationPinned: async (data: any) => { diff --git a/yudao-admin-vue3/src/api/mall/promotion/kefu/message/index.ts b/yudao-admin-vue3/src/api/mall/promotion/kefu/message/index.ts index a12167f..95e54a6 100644 --- a/yudao-admin-vue3/src/api/mall/promotion/kefu/message/index.ts +++ b/yudao-admin-vue3/src/api/mall/promotion/kefu/message/index.ts @@ -32,5 +32,10 @@ export const KeFuMessageApi = { // 获得消息分页数据 getKeFuMessagePage: async (params: any) => { return await request.get({ url: '/promotion/kefu-message/page', params }) + }, + + // 获得消息分页数据 + getBySenderIdStat: async (senderId: number) => { + return await request.get({ url: '/promotion/kefu-message/getBySenderIdStat?senderId=' + senderId }) } } diff --git a/yudao-admin-vue3/src/assets/imgs/quxiao.png b/yudao-admin-vue3/src/assets/imgs/quxiao.png new file mode 100644 index 0000000..b6b0bab Binary files /dev/null and b/yudao-admin-vue3/src/assets/imgs/quxiao.png differ diff --git a/yudao-admin-vue3/src/components/DiyEditor/index.vue b/yudao-admin-vue3/src/components/DiyEditor/index.vue index c01f6a9..adc621f 100644 --- a/yudao-admin-vue3/src/components/DiyEditor/index.vue +++ b/yudao-admin-vue3/src/components/DiyEditor/index.vue @@ -120,7 +120,8 @@