feat: enhance draw status and scheduling display

- Updated DrawStatusHud to include a new countdown kind "start" for better status representation.
- Refactored HallDrawPanel to improve time display logic, differentiating between scheduled start and close times.
- Added new translations for scheduled start and close times in multiple languages.
- Enhanced time formatting functions to support new scheduling features and improve user experience.
This commit is contained in:
2026-05-25 18:01:26 +08:00
parent 3b83c6627c
commit 3c2664e02c
10 changed files with 205 additions and 31 deletions

View File

@@ -20,6 +20,10 @@ export type DrawCurrentRiskPoolAlert = {
};
export type DrawCurrentPayload = {
/** 期号计划时区PRD 固定为 UTCGMT */
schedule_timezone?: string;
/** 服务端当前时刻UTC 下的 YYYY-MM-DD HH:mm:ss */
schedule_now?: string;
draw_no: string;
business_date: string;
sequence_no: number;
@@ -28,6 +32,8 @@ export type DrawCurrentPayload = {
close_time: string | null;
draw_time: string | null;
seconds_to_close: number;
/** 距开始下注pending 且 start_time 在未来) */
seconds_to_start?: number;
seconds_to_draw: number;
cooling_end_time: string | null;
seconds_remaining_in_cooldown: number | null;