fix(user-center): 去除余额金额显示前¥符号
This commit is contained in:
@@ -77,7 +77,9 @@ $mark = (string) ($charge_view['currency_mark'] ?? '元');
|
||||
</div>
|
||||
<div class="uc-asset-card__body flex jsb ac">
|
||||
<div class="uc-asset-card__amount c-blue-2">
|
||||
<span class="uc-asset-card__mark px12"><?php echo esc_html($mark === '元' ? '¥' : $mark); ?></span>
|
||||
<?php if (!in_array($mark, ['', '元', '¥'], true)) : ?>
|
||||
<span class="uc-asset-card__mark px12"><?php echo esc_html($mark); ?></span>
|
||||
<?php endif; ?>
|
||||
<span class="uc-asset-card__value font-bold" data-aksrt-wallet-value title="<?php echo esc_attr($wallet_fmt); ?>"><?php echo esc_html($wallet_fmt); ?></span>
|
||||
</div>
|
||||
<div class="uc-asset-card__actions flex0">
|
||||
@@ -137,8 +139,8 @@ $mark = (string) ($charge_view['currency_mark'] ?? '元');
|
||||
?>
|
||||
<label class="uc-charge-package<?php echo $idx === 0 ? ' is-active' : ''; ?>">
|
||||
<input type="radio" name="balance_package" value="<?php echo esc_attr((string) $pkg['key']); ?>" <?php checked($idx === 0); ?>>
|
||||
<div class="uc-charge-package__credit"><span class="px12">¥</span><?php echo esc_html((string) $pkg['price']); ?></div>
|
||||
<div class="uc-charge-package__pay c-red"><span class="px12">¥</span><?php echo esc_html((string) $pkg['pay_price']); ?>
|
||||
<div class="uc-charge-package__credit"><?php echo esc_html((string) $pkg['price']); ?></div>
|
||||
<div class="uc-charge-package__pay c-red"><?php echo esc_html((string) $pkg['pay_price']); ?>
|
||||
<?php if ($package_saving_minor > 0) : ?>
|
||||
<span class="ml6 c-yellow smail"><?php printf(esc_html__('省%s', 'aksrt'), esc_html(\AKSRT\Ledger\AssetAmount::decimal_from_minor($package_saving_minor))); ?></span>
|
||||
<?php endif; ?>
|
||||
@@ -153,7 +155,6 @@ $mark = (string) ($charge_view['currency_mark'] ?? '元');
|
||||
<?php if ($custom_s) : ?>
|
||||
<div class="muted-color mt16 mb6"><?php echo $packages ? esc_html__('自定义充值金额', 'aksrt') : esc_html__('请输入充值金额', 'aksrt'); ?></div>
|
||||
<div class="uc-charge-custom flex ac">
|
||||
<span class="mr10 muted-color">¥</span>
|
||||
<input type="number" class="uc-charge-custom__input" name="custom_price" min="1" max="<?php echo esc_attr((string) $custom_limit); ?>" step="0.01" placeholder="1 ~ <?php echo esc_attr((string) $custom_limit); ?>">
|
||||
</div>
|
||||
<?php if (!$packages) : ?>
|
||||
|
||||
Reference in New Issue
Block a user