diff --git a/resources/views/chat/partials/user-actions.blade.php b/resources/views/chat/partials/user-actions.blade.php index 849d9ed..211c4c8 100644 --- a/resources/views/chat/partials/user-actions.blade.php +++ b/resources/views/chat/partials/user-actions.blade.php @@ -877,89 +877,91 @@ {{-- ═══════════ 奖励金币独立弹窗 ═══════════ --}} -
-
+ // 在历史记录头部插入 + const now = new Date(); + const mm = String(now.getMonth() + 1).padStart(2, '0'); + const dd = String(now.getDate()).padStart(2, '0'); + const hh = String(now.getHours()).padStart(2, '0'); + const mi = String(now.getMinutes()).padStart(2, '0'); + this.quota.recent_rewards.unshift({ target: this.targetUsername, amount: amt, created_at: mm + '-' + dd + ' ' + hh + ':' + mi }); + if (this.quota.recent_rewards.length > 10) this.quota.recent_rewards.pop(); + this.amount = ''; + alert(data.message); + } else { + alert(data.message || '发放失败'); + } + } catch { alert('网络异常,请稍后重试'); } + this.sending = false; + } +}"> +
{{-- 标题栏 --}} -
🪙 发放奖励金币
-
+
@@ -1011,7 +1025,8 @@
{{-- 最近 10 条记录 --}}
-
+
📋 最近发放记录
加载中…
@@ -1025,7 +1040,8 @@ - +
@@ -1048,4 +1064,3 @@ } } -