feat(checkin): 支持根据 activityId 跳转到不同的海报打卡页面
- 有 activityId 时跳转到新页面 /pages/PosterCheckinDetail/index - 无 activityId 时跳转到旧页面 /pages/PosterCheckin/index - 新页面会传递 activityId 参数以保持上下文 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Showing
2 changed files
with
13 additions
and
1 deletions
| ... | @@ -7,9 +7,12 @@ | ... | @@ -7,9 +7,12 @@ |
| 7 | 7 | ||
| 8 | | ID | Time | T | Title | Read | | 8 | | ID | Time | T | Title | Read | |
| 9 | |----|------|---|-------|------| | 9 | |----|------|---|-------|------| |
| 10 | +| #5329 | 11:25 AM | ✅ | CLAUDE.md memory log updated with recent observations | ~221 | | ||
| 11 | +| #5327 | 11:24 AM | 🔴 | Map marker navigation parameter fix committed to git | ~254 | | ||
| 10 | | #5325 | 11:20 AM | 🔄 | Removed duplicate discountTitle variable declaration in onMounted hook | ~218 | | 12 | | #5325 | 11:20 AM | 🔄 | Removed duplicate discountTitle variable declaration in onMounted hook | ~218 | |
| 11 | | #5324 | 11:19 AM | 🔴 | Map marker navigation parameter handling completed for activityId and discount_title | ~322 | | 13 | | #5324 | 11:19 AM | 🔴 | Map marker navigation parameter handling completed for activityId and discount_title | ~322 | |
| 12 | | #5323 | " | 🔴 | Map marker navigation now properly passes activityId and discount_title parameters | ~305 | | 14 | | #5323 | " | 🔴 | Map marker navigation now properly passes activityId and discount_title parameters | ~305 | |
| 15 | +| #5322 | " | 🔴 | Added activityId and discount_title to page_details in onMounted hook | ~235 | | ||
| 13 | | #5319 | 11:17 AM | 🔴 | Map marker navigation updated with activityId and discount_title parameters | ~313 | | 16 | | #5319 | 11:17 AM | 🔴 | Map marker navigation updated with activityId and discount_title parameters | ~313 | |
| 14 | | #5318 | " | 🔴 | Map marker popup navigation updated with new query parameters | ~255 | | 17 | | #5318 | " | 🔴 | Map marker popup navigation updated with new query parameters | ~255 | |
| 15 | </claude-mem-context> | 18 | </claude-mem-context> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -669,7 +669,16 @@ const checkIn = async () => { // 打卡 | ... | @@ -669,7 +669,16 @@ const checkIn = async () => { // 打卡 |
| 669 | // 打卡成功后,马上隐藏打卡按钮改成已打卡按钮 | 669 | // 打卡成功后,马上隐藏打卡按钮改成已打卡按钮 |
| 670 | check_in_status.value = true; | 670 | check_in_status.value = true; |
| 671 | // 跳转到海报打卡页面 | 671 | // 跳转到海报打卡页面 |
| 672 | - wx.miniProgram.navigateTo({ url: '/pages/PosterCheckin/index?from=checkin&id=' + detail_id }); | 672 | + // 根据 URL 是否有 activityId 参数决定跳转到哪个页面 |
| 673 | + let posterUrl; | ||
| 674 | + if (activityId) { | ||
| 675 | + // 有 activityId,跳转到新页面 | ||
| 676 | + posterUrl = `/pages/PosterCheckinDetail/index?from=checkin&id=${detail_id}&activityId=${activityId}`; | ||
| 677 | + } else { | ||
| 678 | + // 没有 activityId,跳转到旧页面 | ||
| 679 | + posterUrl = `/pages/PosterCheckin/index?from=checkin&id=${detail_id}`; | ||
| 680 | + } | ||
| 681 | + wx.miniProgram.navigateTo({ url: posterUrl }); | ||
| 673 | }); | 682 | }); |
| 674 | 683 | ||
| 675 | return; | 684 | return; | ... | ... |
-
Please register or login to post a comment