From ecef63664071da7346f1bee5fef76c71db249734 Mon Sep 17 00:00:00 2001 From: 77 <270260644@qq.com> Date: Fri, 8 Nov 2024 17:27:58 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=AE=9E=E7=8E=B0=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E4=B8=8E=E5=88=86=E7=B1=BB=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E4=BA=92=E9=80=9A=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/mall/promotion/diy/template.ts | 29 +++++++++++ .../diy/template/ProductCategory.vue | 29 ++++++++--- .../promotion/diy/template/ThemeStyle.vue | 49 ++++++++++++++++--- 3 files changed, 92 insertions(+), 15 deletions(-) diff --git a/yudao-admin-vue3/src/api/mall/promotion/diy/template.ts b/yudao-admin-vue3/src/api/mall/promotion/diy/template.ts index 87134c9..ed1b95b 100644 --- a/yudao-admin-vue3/src/api/mall/promotion/diy/template.ts +++ b/yudao-admin-vue3/src/api/mall/promotion/diy/template.ts @@ -56,3 +56,32 @@ export const getDiyTemplateProperty = async (id: number) => { export const updateDiyTemplateProperty = async (data: DiyTemplateVO) => { return await request.put({ url: `/promotion/diy-template/update-property`, data }) } + + +// 设置商品分类接口 +export const setDiyProjuctClass = async (id) => { + return await request.get({ + url: `/system/dict-data/diy-template-goods?id=` + id + }) +} + +// 获取商品分类接口 +export const getDiyProjuctClass = async () => { + return await request.get({ + url: `/system/dict-data/getGoods` + }) +} + +// 设置主题风格 +export const setDiyZtClass = async (id) => { + return await request.get({ + url: `/system/dict-data/diy-template-theme?id=` + id + }) +} + +// 获取主题风格 +export const getDiyZtClass = async () => { + return await request.get({ + url: `/system/dict-data/getTheme` + }) +} \ No newline at end of file diff --git a/yudao-admin-vue3/src/views/mall/promotion/diy/template/ProductCategory.vue b/yudao-admin-vue3/src/views/mall/promotion/diy/template/ProductCategory.vue index c2e4808..63b37c7 100644 --- a/yudao-admin-vue3/src/views/mall/promotion/diy/template/ProductCategory.vue +++ b/yudao-admin-vue3/src/views/mall/promotion/diy/template/ProductCategory.vue @@ -9,11 +9,11 @@