实习前端来学习
实习前端来学习
  • 发布:2025-09-13 13:58
  • 更新:2025-09-13 13:58
  • 阅读:16

【报Bug】web 谷歌地图拖拽位置 底部内容没有变化

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 内置浏览器

HBuilderX类型: 正式

HBuilderX版本号: 4.76

浏览器平台: Chrome

浏览器版本: 142.0.7405.3

项目创建方式: HBuilderX

示例代码:

// #ifdef H5
uni.chooseLocation({
success: function(res) {
console.log(1)
console.log('位置名称:' + res.name);
console.log('详细地址:' + res.address);
console.log('纬度:' + res.latitude);
console.log('经度:' + res.longitude);

                    that.lat = res.latitude;  
                    that.lng = res.longitude;  
                    that.districts = res.address;  
                    that.address = res.name  
                    let reg = /.+?(省|市|自治区|自治州|镇|县|区)/g;  
                    let arr = that.districts.match(reg);  
                    if(arr) {  
                        that.province = arr[0];  
                        that.city = arr[1];  
                        that.district = arr[2];  
                    }  
                    console.log(that.districts)  
                },  
            });  
            // #endif

操作步骤:

上面视频

预期结果:

移动的时候底部内容是实时对应的

实际结果:

移动还是显示一样的内容

bug描述:

web 谷歌地图拖拽位置 底部内容没有变化

2025-09-13 13:58 负责人:无 分享
已邀请:

要回复问题请先登录注册