hookehuyr

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

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