feat(ScanCheckinDetail): 修改扫码打卡成功后的弹窗与跳转逻辑
更新打卡成功弹窗的文案和确认按钮文本,将跳转页面改为海报详情页,方便用户查看并分享打卡结果
Showing
1 changed file
with
4 additions
and
8 deletions
| ... | @@ -336,18 +336,14 @@ const submitCheckin = async ({ activityId, detailId, scannedCode = '' }) => { | ... | @@ -336,18 +336,14 @@ const submitCheckin = async ({ activityId, detailId, scannedCode = '' }) => { |
| 336 | 336 | ||
| 337 | const modalResult = await Taro.showModal({ | 337 | const modalResult = await Taro.showModal({ |
| 338 | title: '打卡成功', | 338 | title: '打卡成功', |
| 339 | - content: '您已完成当前扫码打卡,可前往列表查看状态。', | 339 | + content: '您已完成当前扫码打卡,可前往海报页查看并继续分享。', |
| 340 | showCancel: false, | 340 | showCancel: false, |
| 341 | - confirmText: '查看列表', | 341 | + confirmText: '查看海报', |
| 342 | }) | 342 | }) |
| 343 | 343 | ||
| 344 | if (modalResult.confirm) { | 344 | if (modalResult.confirm) { |
| 345 | - const params = new URLSearchParams({ | 345 | + Taro.navigateTo({ |
| 346 | - activityId: activityId || detail.activityId, | 346 | + url: `/pages/PosterCheckinDetail/index?activityId=${activityId || detail.activityId}`, |
| 347 | - }) | ||
| 348 | - | ||
| 349 | - Taro.redirectTo({ | ||
| 350 | - url: `/pages/ScanCheckinList/index?${params.toString()}`, | ||
| 351 | }) | 347 | }) |
| 352 | } | 348 | } |
| 353 | return | 349 | return | ... | ... |
-
Please register or login to post a comment