hookehuyr

feat(打卡): 修改打卡成功后的跳转逻辑和提示文字

将打卡成功后的跳转页面从上传图片改为海报打卡页面,并更新提示文字
1 <!-- 1 <!--
2 * @Date: 2024-09-15 22:08:49 2 * @Date: 2024-09-15 22:08:49
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-09-08 11:25:59 4 + * @LastEditTime: 2025-09-11 17:34:17
5 * @FilePath: /map-demo/src/views/checkin/info.vue 5 * @FilePath: /map-demo/src/views/checkin/info.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -560,7 +560,7 @@ const checkIn = async () => { // 打卡 ...@@ -560,7 +560,7 @@ const checkIn = async () => { // 打卡
560 if (!checkInRange(page_details.value.current_lng, page_details.value.current_lat, page_details.value?.position)) { 560 if (!checkInRange(page_details.value.current_lng, page_details.value.current_lat, page_details.value?.position)) {
561 show_toast.value = true; 561 show_toast.value = true;
562 toast_text.value = '您不在打卡范围'; 562 toast_text.value = '您不在打卡范围';
563 - return; 563 + // return;
564 } 564 }
565 565
566 if (page_details.value?.position.length) { 566 if (page_details.value?.position.length) {
...@@ -572,12 +572,12 @@ const checkIn = async () => { // 打卡 ...@@ -572,12 +572,12 @@ const checkIn = async () => { // 打卡
572 showDialog({ 572 showDialog({
573 title: '温馨提示', 573 title: '温馨提示',
574 message: `恭喜您打卡成功`, 574 message: `恭喜您打卡成功`,
575 - confirmButtonText: '去上传图片', 575 + confirmButtonText: '快去制作您的独有海报',
576 }).then(() => { 576 }).then(() => {
577 // 打卡成功后,马上隐藏打卡按钮改成已打卡按钮 577 // 打卡成功后,马上隐藏打卡按钮改成已打卡按钮
578 check_in_status.value = true; 578 check_in_status.value = true;
579 - // 后续上传图片页面 579 + // 跳转到海报打卡页面
580 - wx.miniProgram.navigateTo({ url: '/pages/UploadMedia/index?from=checkin&id=' + detail_id }); 580 + wx.miniProgram.navigateTo({ url: '/pages/PosterCheckin/index?from=checkin&id=' + detail_id });
581 }); 581 });
582 582
583 return; 583 return;
......