Showing
2 changed files
with
12 additions
and
13 deletions
| 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-03-06 14:47:14 | 4 | + * @LastEditTime: 2025-03-06 15:04:53 |
| 5 | * @FilePath: /map-demo/src/views/by/info.vue | 5 | * @FilePath: /map-demo/src/views/by/info.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -412,14 +412,16 @@ const onChange = (newIndex) => { | ... | @@ -412,14 +412,16 @@ const onChange = (newIndex) => { |
| 412 | }; | 412 | }; |
| 413 | 413 | ||
| 414 | const onClickImg = (idx) => { | 414 | const onClickImg = (idx) => { |
| 415 | - showImagePreview({ | 415 | + if ($('.info-page').height() >= $(window).height()) { |
| 416 | - images: page_details.value.banner, | 416 | + showImagePreview({ |
| 417 | - startPosition: idx, | 417 | + images: page_details.value.banner, |
| 418 | - showIndex: true, | 418 | + startPosition: idx, |
| 419 | - onClose: () => { | 419 | + showIndex: true, |
| 420 | - // console.log('close'); | 420 | + onClose: () => { |
| 421 | - } | 421 | + // console.log('close'); |
| 422 | - }) | 422 | + } |
| 423 | + }) | ||
| 424 | + } | ||
| 423 | }; | 425 | }; |
| 424 | 426 | ||
| 425 | const show_shrink = computed(() => { | 427 | const show_shrink = computed(() => { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2023-05-19 14:54:27 | 2 | * @Date: 2023-05-19 14:54:27 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2025-03-06 12:47:35 | 4 | + * @LastEditTime: 2025-03-06 14:59:22 |
| 5 | * @FilePath: /map-demo/src/views/by/map.vue | 5 | * @FilePath: /map-demo/src/views/by/map.vue |
| 6 | * @Description: 公众地图主体页面 | 6 | * @Description: 公众地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -1064,9 +1064,6 @@ export default { | ... | @@ -1064,9 +1064,6 @@ export default { |
| 1064 | // 显示提示 | 1064 | // 显示提示 |
| 1065 | this.show_toast = true; | 1065 | this.show_toast = true; |
| 1066 | this.toast_text = '已关闭步行导航'; | 1066 | this.toast_text = '已关闭步行导航'; |
| 1067 | - | ||
| 1068 | - // 可选:重新定位到当前位置 | ||
| 1069 | - this.getLocation(); | ||
| 1070 | } | 1067 | } |
| 1071 | }, | 1068 | }, |
| 1072 | } | 1069 | } | ... | ... |
-
Please register or login to post a comment