From ce89434a39feb6f8186752683f3c7a84bc2a86ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E9=94=8B?= <2535831261@qq.com> Date: Fri, 7 Aug 2026 17:11:35 +0800 Subject: [PATCH] update --- lib/features/events/pages/page_event_info.dart | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/features/events/pages/page_event_info.dart b/lib/features/events/pages/page_event_info.dart index d1ee9a0..d7e7371 100644 --- a/lib/features/events/pages/page_event_info.dart +++ b/lib/features/events/pages/page_event_info.dart @@ -35,7 +35,11 @@ class _EventInfoPageState extends ConsumerState { // allowByeMatch = 0 (直接晋级) // allowByeMatch = 1 (和败方对战) // allowByeMatch = -1 (个人赛不适用此配置,所以 = -1) - if (item.allowByeMatch == 0) { + // 如果比赛已结束 点击反应 + if (item.completed) return; + final opponent = item.opponentName.trim(); + if (opponent.isEmpty && + (item.allowByeMatch == 0 || item.allowByeMatch == 1)) { return; } detail = await ref @@ -530,7 +534,12 @@ String _formatMemberLine(EventRegistrationItem item) { String _formatOpponentLine(EventRegistrationItem item) { final opponent = item.opponentName.trim(); - if (opponent.isEmpty) return ''; + if (opponent.isEmpty && item.allowByeMatch == 0) { + return item.completed ? '对手:轮空' : ''; + } + if (opponent.isEmpty && item.allowByeMatch == 1) { + return '对手:待分配'; + } return '对手:$opponent'; }