迁移奖励金币弹窗入口

This commit is contained in:
2026-04-25 14:00:07 +08:00
parent 136240e5e1
commit 14511b6230
3 changed files with 36 additions and 14 deletions
@@ -1358,20 +1358,7 @@
</div>
</div>
<script>
/**
* openRewardModal - 全局入口:打开奖励金币独立弹窗
* @param {string} username 被奖励用户名
*/
function openRewardModal(username) {
const el = document.getElementById('reward-modal-container');
if (!window.Alpine || !el) return;
const data = window.Alpine.$data(el);
if (data) {
data.open(username);
}
}
</script>
{{-- openRewardModal 已迁移到 resources/js/chat-room/reward-modal.js --}}
{{-- ═══════════ 好友系统通知监听 ═══════════ --}}
{{-- 监听好友 WebSocket 事件,与好友操作逻辑集中在同一文件维护 --}}