只见他人眼中刺,不识自身梁木遮

选择位置
选择位置使用的是微信的wx.chooseLocation,相关界面写点击按钮
<button type="primary" form-type="submit">提交</button>
执行点击函数,随后数据储存起来(如控制台打印)

导航位置
微信内点击地图实现导航使用wx.openLocation函数,在界面操作点击某按钮后执行
// 点击打开地图 ruiMap(){ wx.openLocation({ latitude:this.data.infoData.map.latitude, longitude:this.data.infoData.map.longitude, name:this.data.infoData.map.name, address:this.data.infoData.map.address, }) }
即可在内置地图,点击导航可选择手机对应的app打开
