/user/balance/ 调整

This commit is contained in:
kate522 committed 2026-08-25 04:20:29 +08:00
1 parent 815b938363
commit 90fd59b647
3 files changed
+18 -18

No files matched your search

@@ -25,6 +25,9 @@ defined('ABSPATH') || exit;
<?php foreach ($log['items'] as $row) :
$delta = (int) $row['delta_minor'];
$delta_class = $delta >= 0 ? 'is-positive' : 'is-negative';
$record_note = (string) $row['reason'] === 'points_exchange'
? (string) $row['ref_key']
: (string) $row['remark'];
?>
<div class="uc-transactions__item">
<div class="uc-transactions__icon <?php echo esc_attr($delta_class); ?>">
@@ -33,8 +36,8 @@ defined('ABSPATH') || exit;
<div class="uc-transactions__info">
<div class="uc-transactions__reason">
<?php echo esc_html(aksrt_asset_reason_label((string) $row['reason'])); ?>
<?php if (!empty($row['remark'])) : ?>
<span class="uc-transactions__remark">(<?php echo esc_html((string) $row['remark']); ?>)</span>
<?php if ($record_note !== '') : ?>
<span class="uc-transactions__remark">(<?php echo esc_html($record_note); ?>)</span>
<?php endif; ?>
</div>
<div class="uc-transactions__time">
@@ -46,14 +49,6 @@ defined('ABSPATH') || exit;
<span class="uc-transactions__delta <?php echo esc_attr($delta_class); ?>">
<?php echo esc_html(($delta > 0 ? '+' : '') . $delta); ?>
</span>
<span class="uc-transactions__balance">
<?php
/* translators: %s: balance */
printf(esc_html__('余额 %s', 'aksrt'), esc_html((string) (int) $row['balance_after_minor']));
?>
</span>
<?php if ((int) ($row['fee_minor'] ?? 0) > 0) : ?><span class="muted-2-color em09"><?php printf(esc_html__('手续费 %d', 'aksrt'), (int) $row['fee_minor']); ?></span><?php endif; ?>
<span class="muted-2-color em09"><?php printf(esc_html__('交易 #%d', 'aksrt'), (int) $row['id']); ?></span>
</div>
</div>
<?php endforeach; ?>