优化跑马页面

This commit is contained in:
2026-04-11 16:58:28 +08:00
parent abc05de86e
commit f91772b019
4 changed files with 197 additions and 35 deletions
+19
View File
@@ -127,6 +127,25 @@ export function initChat(roomId) {
window.dispatchEvent(
new CustomEvent("chat:baccarat.settled", { detail: e }),
);
})
// ─── 赛马:开场 / 进度 / 结算 ────────────────────────────────
.listen(".horse.opened", (e) => {
console.log("赛马开场:", e);
window.dispatchEvent(
new CustomEvent("chat:horse.opened", { detail: e }),
);
})
.listen(".horse.progress", (e) => {
console.log("赛马进度:", e);
window.dispatchEvent(
new CustomEvent("chat:horse.progress", { detail: e }),
);
})
.listen(".horse.settled", (e) => {
console.log("赛马结算:", e);
window.dispatchEvent(
new CustomEvent("chat:horse.settled", { detail: e }),
);
});
}