feat: 增强封盘状态处理与用户界面反馈
- 在 draw-status-meta.ts 中新增 isHallSealedCountdownUi 函数以判断封盘状态 - 在 hall-bet-preview-dialog.tsx 中添加 allowSubmit 属性,控制提交按钮状态 - 更新 hall-betting-grid.tsx 以显示封盘提示与禁用下注功能 - 在 hall-draw-panel.tsx 中优化封盘状态的视觉反馈 - 修改 hall-screen.tsx 的注释以反映封盘相关的界面变化
This commit is contained in:
@@ -6,6 +6,14 @@ export type DrawStatusHud = {
|
||||
countdownKind: "close" | "draw" | "cooldown" | "none";
|
||||
};
|
||||
|
||||
/**
|
||||
* 界面文档 §4.2「封盘」展示:`closing`(封盘中)与 `closed`(待开奖)——
|
||||
* 倒计时区域使用错误色 #ff4d4f,并提示「请选择下一期」。
|
||||
*/
|
||||
export function isHallSealedCountdownUi(status: string): boolean {
|
||||
return status === "closing" || status === "closed";
|
||||
}
|
||||
|
||||
/** 对齐界面文档 §4.2 状态文案与 PRD 期号状态 */
|
||||
export function drawStatusHud(status: string): DrawStatusHud {
|
||||
switch (status) {
|
||||
|
||||
Reference in New Issue
Block a user