修改加粗的效果

master
于肖磊 2025-01-13 16:51:06 +08:00
parent 3c0edf39df
commit fd403ac397
3 changed files with 21 additions and 21 deletions

View File

@ -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%;

View File

@ -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;
},

View File

@ -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}`;
},