From 7d984ebe645f71f0b0e88e429a7fd0a3aceb92ef Mon Sep 17 00:00:00 2001 From: lkddi Date: Tue, 17 Mar 2026 20:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BE=E5=AE=B6=E4=B9=90=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E9=A1=B5=EF=BC=9A10=E7=A7=92=E5=90=8E=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=85=B3=E9=97=AD=EF=BC=8C=E6=98=BE=E7=A4=BA=E5=80=92=E8=AE=A1?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E6=89=8B=E5=8A=A8=E5=85=B3=E9=97=AD=E5=8F=AF?= =?UTF-8?q?=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../partials/games/baccarat-panel.blade.php | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/resources/views/chat/partials/games/baccarat-panel.blade.php b/resources/views/chat/partials/games/baccarat-panel.blade.php index e86c485..f710992 100644 --- a/resources/views/chat/partials/games/baccarat-panel.blade.php +++ b/resources/views/chat/partials/games/baccarat-panel.blade.php @@ -276,13 +276,16 @@ {{-- 底部关闭 --}}
+ style="background:#fff; border-top:1px solid #d0e4f5; padding:12px 16px; display:flex; flex-direction:column; align-items:center; gap:6px;"> + {{-- 结算后显示自动关闭倒计时 --}} +
@@ -427,6 +430,10 @@ // 历史记录 history: [], + // 结算后定时自动关闭 + autoCloseTimer: null, + autoCloseCountdown: 0, + /** * 开局:填充局次数据并开始倒计时 */ @@ -545,6 +552,17 @@ this.updateFab(false); this.loadHistory(); + + // 结算后 10 秒自动关闭 + this.autoCloseCountdown = 10; + clearInterval(this.autoCloseTimer); + this.autoCloseTimer = setInterval(() => { + this.autoCloseCountdown--; + if (this.autoCloseCountdown <= 0) { + clearInterval(this.autoCloseTimer); + this.close(); + } + }, 1000); }, /** @@ -570,6 +588,9 @@ * 关闭面板 */ close() { + // 手动关闭时清除自动关闭定时器 + clearInterval(this.autoCloseTimer); + this.autoCloseCountdown = 0; this.show = false; if (this.phase === 'betting') { this.updateFab(true); // 还在下注阶段时保留悬浮按钮