Showing
1 changed file
with
3 additions
and
3 deletions
| 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-09-18 09:52:28 | 4 | + * @LastEditTime: 2025-09-18 10:10:09 |
| 5 | * @FilePath: /map-demo/src/views/checkin/map.vue | 5 | * @FilePath: /map-demo/src/views/checkin/map.vue |
| 6 | * @Description: 公众地图主体页面 | 6 | * @Description: 公众地图主体页面 |
| 7 | --> | 7 | --> |
| ... | @@ -590,7 +590,7 @@ export default { | ... | @@ -590,7 +590,7 @@ export default { |
| 590 | $('.van-floating-panel').css('boxShadow', '0 0 15px black'); | 590 | $('.van-floating-panel').css('boxShadow', '0 0 15px black'); |
| 591 | 591 | ||
| 592 | // 定位到当前位置中心 | 592 | // 定位到当前位置中心 |
| 593 | - this.map.setZoomAndCenter(this.zoom, this.itemInfo.position); | 593 | + // this.map.setZoomAndCenter(this.zoom, this.itemInfo.position); |
| 594 | // 获取地图容器的高度 | 594 | // 获取地图容器的高度 |
| 595 | const mapHeight = this.map.getSize().height; | 595 | const mapHeight = this.map.getSize().height; |
| 596 | 596 | ||
| ... | @@ -598,7 +598,7 @@ export default { | ... | @@ -598,7 +598,7 @@ export default { |
| 598 | const offsetY = -mapHeight / 3.5; | 598 | const offsetY = -mapHeight / 3.5; |
| 599 | 599 | ||
| 600 | // 使用 panBy 方法进行视图偏移 | 600 | // 使用 panBy 方法进行视图偏移 |
| 601 | - this.map.panBy(0, offsetY); | 601 | + // this.map.panBy(0, offsetY); |
| 602 | 602 | ||
| 603 | // 等待组件渲染完成后调用打卡状态检查 | 603 | // 等待组件渲染完成后调用打卡状态检查 |
| 604 | await this.$nextTick(); | 604 | await this.$nextTick(); | ... | ... |
-
Please register or login to post a comment