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'; }