diff --git a/assets/css/routes/user-center/credits.css b/assets/css/routes/user-center/credits.css index 7a12ba96..5a233fc5 100644 --- a/assets/css/routes/user-center/credits.css +++ b/assets/css/routes/user-center/credits.css @@ -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; diff --git a/inc/helpers/user-center-renderers/credits-wallet.php b/inc/helpers/user-center-renderers/credits-wallet.php index 184d4460..dc435a15 100644 --- a/inc/helpers/user-center-renderers/credits-wallet.php +++ b/inc/helpers/user-center-renderers/credits-wallet.php @@ -147,7 +147,10 @@ $charge_mark_html = $charge_mark_symbol ? '' . esc_html($mark) . '' : ''; $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) { ?>