diff --git a/frontend/pages.json b/frontend/pages.json index 9fde9a8..834e191 100644 --- a/frontend/pages.json +++ b/frontend/pages.json @@ -258,6 +258,15 @@ } } }, + { + "path": "pages/support-activity/center", + "style": { + "navigationStyle": "custom", + "app-plus": { + "bounce": "none" + } + } + }, { "path": "pages/asset-detail/asset-detail", "style": { diff --git a/frontend/pages/components/Header.vue b/frontend/pages/components/Header.vue index f20bab9..badc877 100644 --- a/frontend/pages/components/Header.vue +++ b/frontend/pages/components/Header.vue @@ -80,11 +80,10 @@ --> - + @@ -92,7 +91,7 @@ - {{ - activity.theme || "星援活动" - }} + 星援活动 @@ -318,7 +315,7 @@ const starActivities = computed(() => { // 组件挂载时加载用户信息和星援活动数据 onMounted(async () => { - await loadUserInfo(); + loadUserInfo(); await loadBannerActivities(); // await loadEarningsSummary(); uni.$on("avatarUpdated", handleAvatarUpdate); @@ -378,13 +375,15 @@ const handleTaskClick = () => { showTaskModal.value = true; }; -// 处理星援活动图标点击 +// 处理星援活动图标点击 → 跳到星援活动中心 const handleActivityClick = (activity) => { - if (activity) { - uni.navigateTo({ - url: `/pages/support-activity/index?id=${activity.id}`, - }); - } + // 始终先进入活动中心列表(不论是否传了单个 activity 对象) + uni.navigateTo({ + url: "/pages/support-activity/center", + fail: (err) => { + console.error("[Header] 跳转活动中心失败:", err); + }, + }); }; // 点击新手引导 diff --git a/frontend/pages/square/components/BannerCarousel.vue b/frontend/pages/square/components/BannerCarousel.vue index c58eee5..420f6f2 100644 --- a/frontend/pages/square/components/BannerCarousel.vue +++ b/frontend/pages/square/components/BannerCarousel.vue @@ -6,9 +6,9 @@ align-items: center;"> --> - + + + + + + + + + + + + + + + + 已参与活动 + {{ stats.participated }} + + + + 水晶贡献数 + {{ formattedContributions }} + + + + 历史最高排名 + {{ formattedBestRank }} + + + + + + + {{ tab.label }} + + + + + + + + + + + {{ + item.title || "活动" + }} + + 活动已结束 + + + + + + + + {{ getYear(item) }} + {{ getShortName(item) }} + + + + + + + + {{ + formatStatValue(item.my_contribution) + }} + 水晶贡献数 + + + + {{ + formatRank(item.my_rank) + }} + 排名 + + + + + + + + 暂无活动 + + + + 已经到底啦~ + + + + + + + + 加载中… + + + 加载失败 + {{ errorMessage }} + + 重试 + + + + + + + + + diff --git a/frontend/static/rank/centerbj.png b/frontend/static/rank/centerbj.png new file mode 100644 index 0000000..e012b9e Binary files /dev/null and b/frontend/static/rank/centerbj.png differ diff --git a/frontend/static/rank/centerhbj.png b/frontend/static/rank/centerhbj.png new file mode 100644 index 0000000..c02f0b9 Binary files /dev/null and b/frontend/static/rank/centerhbj.png differ diff --git a/frontend/static/rank/hd.png b/frontend/static/rank/hd.png new file mode 100644 index 0000000..e5beb9e Binary files /dev/null and b/frontend/static/rank/hd.png differ diff --git a/frontend/static/rank/infobj.png b/frontend/static/rank/infobj.png new file mode 100644 index 0000000..9e54edc Binary files /dev/null and b/frontend/static/rank/infobj.png differ diff --git a/frontend/static/rank/lsph.png b/frontend/static/rank/lsph.png new file mode 100644 index 0000000..b565940 Binary files /dev/null and b/frontend/static/rank/lsph.png differ diff --git a/frontend/static/rank/ph.png b/frontend/static/rank/ph.png new file mode 100644 index 0000000..8c4d262 Binary files /dev/null and b/frontend/static/rank/ph.png differ diff --git a/frontend/static/rank/textbj.png b/frontend/static/rank/textbj.png new file mode 100644 index 0000000..7c04a1f Binary files /dev/null and b/frontend/static/rank/textbj.png differ