hookehuyr

feat(checkin): 支持根据 activityId 跳转到不同的海报打卡页面

- 有 activityId 时跳转到新页面 /pages/PosterCheckinDetail/index
- 无 activityId 时跳转到旧页面 /pages/PosterCheckin/index
- 新页面会传递 activityId 参数以保持上下文

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
......@@ -7,9 +7,12 @@
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #5329 | 11:25 AM | ✅ | CLAUDE.md memory log updated with recent observations | ~221 |
| #5327 | 11:24 AM | 🔴 | Map marker navigation parameter fix committed to git | ~254 |
| #5325 | 11:20 AM | 🔄 | Removed duplicate discountTitle variable declaration in onMounted hook | ~218 |
| #5324 | 11:19 AM | 🔴 | Map marker navigation parameter handling completed for activityId and discount_title | ~322 |
| #5323 | " | 🔴 | Map marker navigation now properly passes activityId and discount_title parameters | ~305 |
| #5322 | " | 🔴 | Added activityId and discount_title to page_details in onMounted hook | ~235 |
| #5319 | 11:17 AM | 🔴 | Map marker navigation updated with activityId and discount_title parameters | ~313 |
| #5318 | " | 🔴 | Map marker popup navigation updated with new query parameters | ~255 |
</claude-mem-context>
\ No newline at end of file
......
......@@ -669,7 +669,16 @@ const checkIn = async () => { // 打卡
// 打卡成功后,马上隐藏打卡按钮改成已打卡按钮
check_in_status.value = true;
// 跳转到海报打卡页面
wx.miniProgram.navigateTo({ url: '/pages/PosterCheckin/index?from=checkin&id=' + detail_id });
// 根据 URL 是否有 activityId 参数决定跳转到哪个页面
let posterUrl;
if (activityId) {
// 有 activityId,跳转到新页面
posterUrl = `/pages/PosterCheckinDetail/index?from=checkin&id=${detail_id}&activityId=${activityId}`;
} else {
// 没有 activityId,跳转到旧页面
posterUrl = `/pages/PosterCheckin/index?from=checkin&id=${detail_id}`;
}
wx.miniProgram.navigateTo({ url: posterUrl });
});
return;
......