hookehuyr

fix: 移除地图自动定位和偏移代码

<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-18 09:52:28
* @LastEditTime: 2025-09-18 10:10:09
* @FilePath: /map-demo/src/views/checkin/map.vue
* @Description: 公众地图主体页面
-->
......@@ -590,7 +590,7 @@ export default {
$('.van-floating-panel').css('boxShadow', '0 0 15px black');
// 定位到当前位置中心
this.map.setZoomAndCenter(this.zoom, this.itemInfo.position);
// this.map.setZoomAndCenter(this.zoom, this.itemInfo.position);
// 获取地图容器的高度
const mapHeight = this.map.getSize().height;
......@@ -598,7 +598,7 @@ export default {
const offsetY = -mapHeight / 3.5;
// 使用 panBy 方法进行视图偏移
this.map.panBy(0, offsetY);
// this.map.panBy(0, offsetY);
// 等待组件渲染完成后调用打卡状态检查
await this.$nextTick();
......