迁移游戏面板关闭事件

This commit is contained in:
2026-04-25 10:50:35 +08:00
parent e9a3310649
commit 8cdf8492fb
5 changed files with 61 additions and 3 deletions
@@ -27,7 +27,7 @@
<div style="font-size:11px; color:rgba(255,255,255,.75);">
今日免费 <span x-text="freeCount"></span> 次,已用 <span x-text="freeUsed"></span>
</div>
<span onclick="Alpine.$data(document.getElementById('fortune-panel')).show = false"
<span data-game-panel-close="fortune-panel"
style="cursor:pointer; font-size:18px; color:rgba(255,255,255,.8); line-height:1; transition:opacity .15s;"
onmouseover="this.style.opacity=1" onmouseout="this.style.opacity=.8">&times;</span>
</div>
@@ -50,7 +50,7 @@
{{-- 结算 --}}
<div x-show="phase === 'settled'" style="display:none;"
style="font-size:12px; color:#ffe082; font-weight:bold;">🏆 已结算</div>
<span onclick="Alpine.$data(document.getElementById('horse-race-panel')).close()"
<span data-game-panel-close="horse-race-panel"
style="cursor:pointer; font-size:18px; color:rgba(255,255,255,.8); line-height:1; transition:opacity .15s;"
onmouseover="this.style.opacity=1" onmouseout="this.style.opacity=.8">&times;</span>
</div>
@@ -34,7 +34,7 @@
<div x-show="dailyLimit > 0"
style="font-size:11px; color:rgba(255,255,255,.7); background:rgba(255,255,255,.15); padding:2px 8px; border-radius:10px;"
x-text="'剩余 ' + remaining + ' 次'"></div>
<span onclick="Alpine.$data(document.getElementById('slot-panel')).close()"
<span data-game-panel-close="slot-panel"
style="cursor:pointer; font-size:18px; color:rgba(255,255,255,.8); line-height:1; transition:opacity .15s;"
onmouseover="this.style.opacity=1" onmouseout="this.style.opacity=.8">&times;</span>
</div>