fix(frontend): 充值弹窗选中角标字体族对齐 FA5 并修正充值限额文案语序
1. 档位选中角标(.vip-product.active::before)沿用 Zibll 的 FA4 字体族 "FontAwesome",本主题打包的是 FA5(family "Font Awesome 5 Free"), family 不存在 → PUA 码点 U+F058 渲染为豆腐块(被误认为破图)。 改为 'Font Awesome 5 Free' + font-weight:900(solid 字形要求), 渲染为粉色 check-circle,与 Zibll 视觉一致。 2. 自定义充值限额文案 sprintf 参数错位:「最高充值元9999」→ 「最高充值9999元」。mark 为符号(¥)时按 Zibll 前缀格式 (最低充值¥1,最高充值¥9999)。
This commit is contained in:
@@ -214,7 +214,9 @@
|
||||
}
|
||||
.balance-charge-form .vip-product.active::before {
|
||||
content: '\f058';
|
||||
font: normal normal normal 16px/1 FontAwesome;
|
||||
/* 本主题打包的是 FA5(family "Font Awesome 5 Free",solid 字形需 900),
|
||||
Zibll 的 FA4 family "FontAwesome" 在本主题不存在 → 豆腐块(被误认破图)。 */
|
||||
font: normal normal 900 16px/1 'Font Awesome 5 Free';
|
||||
color: var(--focus-color);
|
||||
position: absolute;
|
||||
left: 3px;
|
||||
|
||||
@@ -147,7 +147,10 @@ $charge_mark_html = $charge_mark_symbol
|
||||
? '<span class="px12">' . esc_html($mark) . '</span>'
|
||||
: '';
|
||||
$charge_unit = $charge_mark_symbol ? '' : (string) $mark;
|
||||
$charge_limit_html = sprintf(__('最低充值1%s,最高充值%s%s', 'aksrt'), $charge_unit, $charge_unit, $custom_limit);
|
||||
// 与 Zibll 格式对齐(mark 前缀:最低充值¥1);mark 配置为单位(元)时用后缀:最低充值1元。
|
||||
$charge_limit_html = $charge_mark_symbol
|
||||
? sprintf(__('最低充值%1$s1,最高充值%1$s%2$s', 'aksrt'), $mark, $custom_limit)
|
||||
: sprintf(__('最低充值1%1$s,最高充值%2$s%1$s', 'aksrt'), $charge_unit, $custom_limit);
|
||||
$charge_custom_block = static function () use ($mark, $charge_mark_html, $charge_unit, $charge_limit_html, $custom_limit) {
|
||||
?>
|
||||
<div data-for="balance_product" data-value="custom">
|
||||
|
||||
Reference in New Issue
Block a user