From 5b637d2c648afe2df7f8ee8fc64610c5d101ebbe Mon Sep 17 00:00:00 2001 From: lkddi Date: Sun, 12 Apr 2026 17:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=87=AA=E5=8A=A8=E5=85=B3?= =?UTF-8?q?=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../partials/games/horse-race-panel.blade.php | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/resources/views/chat/partials/games/horse-race-panel.blade.php b/resources/views/chat/partials/games/horse-race-panel.blade.php index ccd3a2c..722925b 100644 --- a/resources/views/chat/partials/games/horse-race-panel.blade.php +++ b/resources/views/chat/partials/games/horse-race-panel.blade.php @@ -275,13 +275,15 @@ {{-- ─── 底部关闭 ─── --}}
+ style="background:#fff; border-top:1px solid #d0e4f5; padding:14px 16px; display:flex; flex-direction:column; align-items:center; gap:8px;"> +
窗口将在倒计时结束后自动关闭
@@ -381,6 +383,9 @@ countdown: 90, countdownTimer: null, + settledCountdown: 10, + settledTimer: null, + // 马匹列表(含实时赔率) horses: [], positions: {}, // 跑马进度 {horse_id: 0~100} @@ -540,6 +545,7 @@ */ showResult(data) { clearInterval(this.countdownTimer); + clearInterval(this.settledTimer); this.phase = 'settled'; this.show = true; this.totalPool = data.total_pool || this.totalPool; @@ -565,6 +571,16 @@ this.updateFab(false); this.loadHistory(); + + // 10秒倒计时自动关闭结果弹窗 + this.settledCountdown = 10; + this.settledTimer = setInterval(() => { + this.settledCountdown--; + if (this.settledCountdown <= 0) { + clearInterval(this.settledTimer); + this.close(); + } + }, 1000); }, /** @@ -591,6 +607,7 @@ */ close() { this.show = false; + clearInterval(this.settledTimer); if (this.phase === 'betting') { this.updateFab(true); }