From b143673d26543fa207222daf986a7a0402486c18 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Thu, 12 Sep 2024 18:52:34 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-article-list/index.vue | 4 +- src/components/model-coupon/index.vue | 51 +++++++++---------- .../layout/components/main/default/coupon.ts | 9 ++++ 3 files changed, 33 insertions(+), 31 deletions(-) diff --git a/src/components/model-article-list/index.vue b/src/components/model-article-list/index.vue index dbadb607..69c04307 100644 --- a/src/components/model-article-list/index.vue +++ b/src/components/model-article-list/index.vue @@ -103,7 +103,6 @@ const content_padding = ref(''); const content_spacing = ref(''); // 文章间距 const article_spacing = ref(''); -const article_spacing_children = ref(''); const article_item_height = ref('155'); const article_style = ref({}); @@ -227,8 +226,7 @@ watch( if (article_theme.value == '0') { article_style.value += content_spacing.value + content_padding.value + content_radius.value; } else if (article_theme.value == '1') { - article_spacing_children.value = `width: calc(50% - ${new_style.article_spacing / 2}px);`; - article_style.value += article_spacing_children.value + content_radius.value; + article_style.value += `width: calc(50% - ${new_style.article_spacing / 2}px);` + content_radius.value; } else if (article_theme.value == '2') { article_style.value += content_radius.value; } else if (article_theme.value == '3') { diff --git a/src/components/model-coupon/index.vue b/src/components/model-coupon/index.vue index 42d54213..f5a0c267 100644 --- a/src/components/model-coupon/index.vue +++ b/src/components/model-coupon/index.vue @@ -4,7 +4,7 @@