onload、onshow 调用获取定位的方法
uni.getLocation({
geocode: true,
type: 'gcj02',
success: function(res) {
console.log('getCurLocation',res)
that.latitude = res.latitude
that.longitude = res.longitude
that.address = res.address.street + res.address.streetNum
}
});