<template>
  <view class="event-photos-page">
    <!-- 页面内容由 attachment-view 处理 -->
    <!-- 此页面作为备用，实际跳转到 attachment-view -->
    <view class="redirect-notice">
      <text>正在跳转...</text>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      eventId: ''
    }
  },
  onLoad(options) {
    // 重定向到通用附件页面
    if (options.eventId || options.competitionId) {
      const id = options.eventId || options.competitionId
      uni.redirectTo({
        url: `/pages/attachment-view/attachment-view?type=photos&competitionId=${id}`
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.event-photos-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.redirect-notice {
  color: #999;
  font-size: 28rpx;
}
</style>
