- 发布:2020-05-30 11:40
- 更新:2020-06-13 17:13
- 阅读:1169
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.14.6
HBuilderX类型: 正式
HBuilderX版本号: 2.7.5
手机系统: 全部
手机厂商: 华为
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
测试过的手机:
示例代码:
uni.openLocation({
longitude: parseFloat(_this.shopinfo.longitude),
latitude: parseFloat(_this.shopinfo.latitude),
name: _this.shopinfo.name,
address: _this.shopinfo.detailed_address
})
uni.openLocation({
longitude: parseFloat(_this.shopinfo.longitude),
latitude: parseFloat(_this.shopinfo.latitude),
name: _this.shopinfo.name,
address: _this.shopinfo.detailed_address
})
操作步骤:
uni.openLocation({
longitude: parseFloat(_this.shopinfo.longitude),
latitude: parseFloat(_this.shopinfo.latitude),
name: _this.shopinfo.name,
address: _this.shopinfo.detailed_address
})
uni.openLocation({
longitude: parseFloat(_this.shopinfo.longitude),
latitude: parseFloat(_this.shopinfo.latitude),
name: _this.shopinfo.name,
address: _this.shopinfo.detailed_address
})
预期结果:
uni.openLocation({
longitude: parseFloat(_this.shopinfo.longitude),
latitude: parseFloat(_this.shopinfo.latitude),
name: _this.shopinfo.name,
address: _this.shopinfo.detailed_address
})
uni.openLocation({
longitude: parseFloat(_this.shopinfo.longitude),
latitude: parseFloat(_this.shopinfo.latitude),
name: _this.shopinfo.name,
address: _this.shopinfo.detailed_address
})
实际结果:
uni.openLocation({
longitude: parseFloat(_this.shopinfo.longitude),
latitude: parseFloat(_this.shopinfo.latitude),
name: _this.shopinfo.name,
address: _this.shopinfo.detailed_address
})
uni.openLocation({
longitude: parseFloat(_this.shopinfo.longitude),
latitude: parseFloat(_this.shopinfo.latitude),
name: _this.shopinfo.name,
address: _this.shopinfo.detailed_address
})
bug描述:
uni.openLocation 正式打包后空白,真机测试没有问题,可以正常显示