From fd403ac3977353177439af3959c184ee09b72c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 13 Jan 2025 16:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A0=E7=B2=97=E7=9A=84?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/coupon.vue | 30 ++++++++++---------- components/diy/modules/custom/model-text.vue | 4 +-- components/diy/title.vue | 8 +++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/components/diy/coupon.vue b/components/diy/coupon.vue index a6160d41..184870fe 100644 --- a/components/diy/coupon.vue +++ b/components/diy/coupon.vue @@ -394,7 +394,7 @@ .number { font-size: 52rpx; line-height: 48rpx; - font-weight: 500; + font-weight: bold; padding: 0 8rpx; box-sizing: border-box; } @@ -448,7 +448,7 @@ .number { font-size: 52rpx; - font-weight: 500; + font-weight: bold; padding: 0 8rpx; box-sizing: border-box; } @@ -456,7 +456,7 @@ .name { font-size: 16rpx; - font-weight: 500; + font-weight: bold; margin-bottom: 8rpx; } @@ -539,13 +539,13 @@ .name { font-size: 36rpx; - font-weight: 500; + font-weight: bold; line-height: 50rpx; } .desc { font-size: 28rpx; - font-weight: 500; + font-weight: bold; line-height: 40rpx; } @@ -708,7 +708,7 @@ .title { font-size: 32rpx; - font-weight: 500; + font-weight: bold; line-height: 44rpx; } @@ -764,12 +764,12 @@ .symbol { font-size: 24rpx; - font-weight: 500; + font-weight: bold; } .number { font-size: 48rpx; - font-weight: 500; + font-weight: bold; line-height: 40rpx; padding-left: 8rpx; box-sizing: border-box; @@ -799,7 +799,7 @@ .coupon-btn { position: relative; font-size: 24rpx; - font-weight: 500; + font-weight: bold; text-align: center; letter-spacing: 4rpx; } @@ -863,12 +863,12 @@ .symbol { font-size: 40rpx; - font-weight: 500; + font-weight: bold; } .number { font-size: 64rpx; - font-weight: 500; + font-weight: bold; line-height: 64rpx; padding-left: 8rpx; box-sizing: border-box; @@ -888,7 +888,7 @@ position: relative; font-size: 28rpx; line-height: 44rpx; - font-weight: 500; + font-weight: bold; text-align: center; } } @@ -945,12 +945,12 @@ .symbol { font-size: 24rpx; - font-weight: 500; + font-weight: bold; } .number { font-size: 48rpx; - font-weight: 500; + font-weight: bold; line-height: 40rpx; padding-left: 8rpx; box-sizing: border-box; @@ -984,7 +984,7 @@ padding: 8rpx; width: 100%; font-size: 20rpx; - font-weight: 500; + font-weight: bold; text-align: center; letter-spacing: 4rpx; height: 100%; diff --git a/components/diy/modules/custom/model-text.vue b/components/diy/modules/custom/model-text.vue index c0414acf..28eb3ac9 100644 --- a/components/diy/modules/custom/model-text.vue +++ b/components/diy/modules/custom/model-text.vue @@ -189,8 +189,8 @@ let style = `font-size: ${form.text_size * scale }px;line-height: ${ (typeof form.line_text_size === "number" ? form.line_text_size : form.text_size) * scale }px;color: ${form.text_color}; text-align: ${form.text_location}; transform: rotate(${form.text_rotate}deg);text-decoration: ${form.text_option};${padding_computer(form.text_padding, scale, true)};box-sizing: border-box;`; if (form.text_weight == 'italic') { style += `font-style: italic`; - } else if (form.text_weight == '500') { - style += `font-weight: 500`; + } else if (['bold', '500'].includes(form.text_weight)) { + style += `font-weight: bold;`; } return style; }, diff --git a/components/diy/title.vue b/components/diy/title.vue index 066c2585..0498bb7c 100644 --- a/components/diy/title.vue +++ b/components/diy/title.vue @@ -93,8 +93,8 @@ let common_styles = ''; if (title_weight == 'italic') { common_styles += `font-style: italic`; - } else if (title_weight == '500') { - common_styles += `font-weight: 500`; + } else if (['bold', '500'].includes(title_weight)) { + common_styles += `font-weight: bold`; } // 是否居中 this.setData({ @@ -117,8 +117,8 @@ let common_styles = ''; if (new_style.subtitle_weight == 'italic') { common_styles += `font-style: italic`; - } else if (new_style.subtitle_weight == '500') { - common_styles += `font-weight: 500`; + } else if (['bold', '500'].includes(new_style.subtitle_weight)) { + common_styles += `font-weight: bold;`; } return `color:${new_style.subtitle_color}; font-size: ${new_style.subtitle_size * 2}rpx; ${common_styles}`; },