Small micro-channel navigation map program, call

map navigation:

type latitude and longitude values ​​are not of type String.

 handleNav:function(index){
       let _this = this;
       let item =_this.orderList[index];
       
	  //​使用微信内置地图查看位置
       wx.openLocation({
       	   latitude:parseFloat(item.lat),//地址的纬度
           longitude: parseFloat(item.lon),//地址的经度-
           address: item.deliveryAddress//详细地址
       })
}

dial number:

handleCallPhone:function(index){
       let _this = this;
       wx.makePhoneCall({
            phoneNumber: _this.orderList[index].deliveryPhone
       })
}
Published 258 original articles · won praise 21 · views 50000 +

Guess you like

Origin blog.csdn.net/wsln_123456/article/details/104569709