hookehuyr

fix 修复步行导航操作后,地图详情页图片自动显示问题,取消自动定位到当前位置

<!--
* @Date: 2024-09-15 22:08:49
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-06 14:47:14
* @LastEditTime: 2025-03-06 15:04:53
* @FilePath: /map-demo/src/views/by/info.vue
* @Description: 文件描述
-->
......@@ -412,14 +412,16 @@ const onChange = (newIndex) => {
};
const onClickImg = (idx) => {
showImagePreview({
images: page_details.value.banner,
startPosition: idx,
showIndex: true,
onClose: () => {
// console.log('close');
}
})
if ($('.info-page').height() >= $(window).height()) {
showImagePreview({
images: page_details.value.banner,
startPosition: idx,
showIndex: true,
onClose: () => {
// console.log('close');
}
})
}
};
const show_shrink = computed(() => {
......
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-03-06 12:47:35
* @LastEditTime: 2025-03-06 14:59:22
* @FilePath: /map-demo/src/views/by/map.vue
* @Description: 公众地图主体页面
-->
......@@ -1064,9 +1064,6 @@ export default {
// 显示提示
this.show_toast = true;
this.toast_text = '已关闭步行导航';
// 可选:重新定位到当前位置
this.getLocation();
}
},
}
......