地图导航:
latitude和longitude是数值类型,不能是字符串类型。
handleNav:function(index){
let _this = this;
let item =_this.orderList[index];
//使用微信内置地图查看位置
wx.openLocation({
latitude:parseFloat(item.lat),//地址的纬度
longitude: parseFloat(item.lon),//地址的经度-
address: item.deliveryAddress//详细地址
})
}
拨打电话:
handleCallPhone:function(index){
let _this = this;
wx.makePhoneCall({
phoneNumber: _this.orderList[index].deliveryPhone
})
}