手机品牌: 一加3T
android系统:8.0.0
wx.openLocation({ latitude: +latitude, longitude: +longitude, name, address, }); |
微信版本:7.0.3
bug描述:
在小程序里面调用wx.openLocation
期望:正常打开微信的地图页面
结果:先打开了微信的启动页(有个人站在月球遥看地球的页面),然后再打开地图页面
我们这边怀疑是因为我们小程序里面的图片太多,导致内存不够

会不会是taro自己的问题?
不是,我们把api写成了wx.openLocation 是调用微信的api taro处理不了这个把
嗯,taro有自己的语法的
麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题
大美女,麻烦有时间的时候帮忙看个问题https://developers.weixin.qq.com/community/develop/doc/0008c2bef745288ccf08a9edd51000
我反馈下,有结果原帖回复
多谢美女
onMap = () => {const { detail = {} } =this.props;const { latitude, longitude, name, address } = detail;Taro.openLocation({latitude: +latitude,longitude: +longitude,name,address,});console.log('跳转地图');}<View className='wrap'><Once onClick={this.onMap}><View className='map'><View className='map-address'>{address}</View><View className='map-img'><View className='map-gradient'/></View></View></Once></View>期待尽快回复