From 96c472bfb9cd953a83c26a171958da0b13a838b9 Mon Sep 17 00:00:00 2001 From: lkddi Date: Sun, 1 Mar 2026 11:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E9=A2=9D=E5=BA=A64=E5=88=97=E5=B8=83=E5=B1=80+=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E6=8C=89=E9=92=AE=E8=83=8C=E6=99=AF=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 4列布局:x-show 与 display:grid 分离到两层 div, 避免 Alpine x-show 显示时把 display:grid 覆盖为 block 2. 确认按钮::style 改为始终返回 opacity 值而非空字符串, 避免 Alpine :style 绑定空值时清除静态 style 的 background, 按钮现为橙红渐变(#ea580c→#dc2626)+红色投影, 禁用状态 opacity:0.45 降亮+cursor:not-allowed --- .../chat/partials/user-actions.blade.php | 205 ++++++++++-------- 1 file changed, 110 insertions(+), 95 deletions(-) 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 @@ } } -