uniapp 开发小程序调用第三方导航
html代码
<!-- 点击导航图标,触发导航API -->
<view @tap="openMapLocation(item.shopLatitude, item.shopLongitude, item.shopAddress)"></view>
在methods里调用该方法,如下
// 这里传入的三个参数分别是 要去的 经度 纬度 以及 地址信息
openMapLocation: function(latitude, longitude, address) {
// 将经纬度转换成Number
let latituded = Number(latitude)<