diff --git a/src/api/mall/promotion/diy/page.ts b/src/api/mall/promotion/diy/page.ts index 255015d2..1cd34282 100644 --- a/src/api/mall/promotion/diy/page.ts +++ b/src/api/mall/promotion/diy/page.ts @@ -33,3 +33,13 @@ export const updateDiyPage = async (data: DiyPageVO) => { export const deleteDiyPage = async (id: number) => { return await request.delete({ url: `/promotion/diy-page/delete?id=` + id }) } + +// 获得装修页面属性 +export const getDiyPageProperty = async (id: number) => { + return await request.get({ url: `/promotion/diy-page/get-property?id=` + id }) +} + +// 更新装修页面属性 +export const updateDiyPageProperty = async (data: DiyPageVO) => { + return await request.put({ url: `/promotion/diy-page/update-property`, data }) +} diff --git a/src/api/mall/promotion/diy/template.ts b/src/api/mall/promotion/diy/template.ts index 72eea41c..f8d4bc80 100644 --- a/src/api/mall/promotion/diy/template.ts +++ b/src/api/mall/promotion/diy/template.ts @@ -1,4 +1,5 @@ import request from '@/config/axios' +import { DiyPageVO } from '@/api/mall/promotion/diy/page' export interface DiyTemplateVO { id?: number @@ -10,6 +11,10 @@ export interface DiyTemplateVO { property: string } +export interface DiyTemplatePropertyVO extends DiyTemplateVO { + pages: DiyPageVO[] +} + // 查询装修模板列表 export const getDiyTemplatePage = async (params: any) => { return await request.get({ url: `/promotion/diy-template/page`, params }) @@ -39,3 +44,15 @@ export const deleteDiyTemplate = async (id: number) => { export const useDiyTemplate = async (id: number) => { return await request.put({ url: `/promotion/diy-template/use?id=` + id }) } + +// 获得装修模板属性 +export const getDiyTemplateProperty = async (id: number) => { + return await request.get({ + url: `/promotion/diy-template/get-property?id=` + id + }) +} + +// 更新装修模板属性 +export const updateDiyTemplateProperty = async (data: DiyTemplateVO) => { + return await request.put({ url: `/promotion/diy-template/update-property`, data }) +} diff --git a/src/components/DiyEditor/components/mobile/NavigationBar/index.vue b/src/components/DiyEditor/components/mobile/NavigationBar/index.vue index 953748c7..345b6681 100644 --- a/src/components/DiyEditor/components/mobile/NavigationBar/index.vue +++ b/src/components/DiyEditor/components/mobile/NavigationBar/index.vue @@ -40,7 +40,6 @@ defineProps<{ property: NavigationBarProperty }>() display: flex; justify-content: space-between; align-items: center; - cursor: pointer; /* 左边 */ .left { margin-left: 8px; diff --git a/src/components/DiyEditor/components/mobile/NoticeBar/index.vue b/src/components/DiyEditor/components/mobile/NoticeBar/index.vue index dc360688..fce1afbb 100644 --- a/src/components/DiyEditor/components/mobile/NoticeBar/index.vue +++ b/src/components/DiyEditor/components/mobile/NoticeBar/index.vue @@ -1,6 +1,6 @@