This commit is contained in:
2025-12-26 10:20:46 +08:00
parent 012f641daa
commit 47fc5544ca
20 changed files with 2559 additions and 78 deletions

View File

@@ -125,7 +125,7 @@ export default {
res.registerTime || res.registrationPeriod || '待定',
matchTime: this.formatTimeRange(startTime, endTime) ||
res.matchTime || res.competitionTime || '待定',
registerCount: res.registrationCount || res.registerCount || res.signUpCount || '0',
registerCount: res.registrationCount || res.registerCount || res.signUpCount || res.totalParticipants || '0',
status: this.getStatus(res.status)
}
@@ -169,16 +169,23 @@ export default {
},
handleFunction(type) {
// 需要跳转到附件展示页面的类型
const attachmentTypes = ['info', 'rules', 'schedule', 'score', 'awards', 'photos']
if (attachmentTypes.includes(type)) {
// 跳转到通用附件展示页面
const name = encodeURIComponent(this.eventInfo.title)
uni.navigateTo({
url: `/pages/attachment-view/attachment-view?type=${type}&competitionId=${this.eventId}&name=${name}`
})
return
}
// 其他功能页面的路由映射
const routeMap = {
'info': '/pages/event-info/event-info',
'rules': '/pages/event-rules/event-rules',
'schedule': '/pages/event-schedule/event-schedule',
'players': '/pages/event-players/event-players',
'match': '/pages/event-live/event-live',
'lineup': '/pages/event-lineup/event-lineup',
'score': '/pages/event-score/event-score',
'awards': '/pages/event-medals/event-medals',
'photos': '' // 图片直播暂未实现
'lineup': '/pages/event-lineup/event-lineup'
};
const url = routeMap[type];