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 @@
- +
优惠券样式
+ + + + + + + + + + + + + +