From 3907922759527685a639dd8eab3a156fd1c95b97 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 28 Aug 2024 18:09:48 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E6=83=A0=E5=88=B8=E5=BC=80=E5=8F=91?= =?UTF-8?q?=20sws=202024-08-28?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model-coupon/model-coupon-content.vue | 9 ++-- .../model-coupon/model-coupon-setting.vue | 4 +- .../model-coupon/model-coupon-styles.vue | 42 ++++++++++++++++++- src/layout/components/main/default/coupon.ts | 4 ++ 4 files changed, 51 insertions(+), 8 deletions(-) diff --git a/src/components/model-coupon/model-coupon-content.vue b/src/components/model-coupon/model-coupon-content.vue index 181c90c6..5531ec2c 100644 --- a/src/components/model-coupon/model-coupon-content.vue +++ b/src/components/model-coupon/model-coupon-content.vue @@ -70,11 +70,10 @@ const base_list = reactive({ { id: '1', name: '风格1', url: new URL(`../../assets/images/components/model-coupon/theme-1.png`, import.meta.url).href }, { id: '2', name: '风格2', url: new URL(`../../assets/images/components/model-coupon/theme-2.png`, import.meta.url).href }, { id: '3', name: '风格3', url: new URL(`../../assets/images/components/model-coupon/theme-3.png`, import.meta.url).href }, - { id: '4', name: '风格3', url: new URL(`../../assets/images/components/model-coupon/theme-3.png`, import.meta.url).href }, - { id: '5', name: '风格4', url: new URL(`../../assets/images/components/model-coupon/theme-4.png`, import.meta.url).href }, - { id: '6', name: '风格5', url: new URL(`../../assets/images/components/model-coupon/theme-5.png`, import.meta.url).href }, - { id: '7', name: '风格6', url: new URL(`../../assets/images/components/model-coupon/theme-6.png`, import.meta.url).href }, - { id: '8', name: '风格7', url: new URL(`../../assets/images/components/model-coupon/theme-7.png`, import.meta.url).href }, + { id: '4', name: '风格4', url: new URL(`../../assets/images/components/model-coupon/theme-4.png`, import.meta.url).href }, + { id: '5', name: '风格5', url: new URL(`../../assets/images/components/model-coupon/theme-5.png`, import.meta.url).href }, + { id: '6', name: '风格6', url: new URL(`../../assets/images/components/model-coupon/theme-6.png`, import.meta.url).href }, + { id: '7', name: '风格7', url: new URL(`../../assets/images/components/model-coupon/theme-7.png`, import.meta.url).href }, ], }); const emit = defineEmits(['update:change-theme']); diff --git a/src/components/model-coupon/model-coupon-setting.vue b/src/components/model-coupon/model-coupon-setting.vue index ee315a64..6ff35024 100644 --- a/src/components/model-coupon/model-coupon-setting.vue +++ b/src/components/model-coupon/model-coupon-setting.vue @@ -4,7 +4,7 @@ @@ -118,7 +118,7 @@ const default_config = { }; const change_theme = (val: string) => { if (val) { - form.value.style = Object.assign({}, form.value.style, (default_config.style)[`theme_${Number(val) + 1}`]); + form.value.style = Object.assign({}, form.value.style, (default_config.style)[`theme_${Number(val)}`]); } }; diff --git a/src/components/model-coupon/model-coupon-styles.vue b/src/components/model-coupon/model-coupon-styles.vue index a19685a8..22b41e94 100644 --- a/src/components/model-coupon/model-coupon-styles.vue +++ b/src/components/model-coupon/model-coupon-styles.vue @@ -2,22 +2,62 @@
- +
优惠券样式
+ + + + + + + + + + + + + +