uni.getLocation({
type: 'gcj02',
geocode: true,
altitude:true,
isHighAccuracy:true,
success: function(res) {
console.log(res,111111111111111)
that.longitudeData = res.longitude;
that.latitudeData = res.latitude;
that.locationObj.city = res.address?res.address.city:"";
that.locationObj.district = res.address?res.address.district:"";
that.locationObj.street = res.address?res.address.street:"";
that.locationObj.streetNum = res.address?res.address.streetNum:"";
that.locationObj.poiName = res.address?res.address.poiName:"";
},
complete:function(res) {
console.log(res)
}
});
mmonke
附件替换文件是说在本地调试用的吗 我替换了好像也不行
2023-11-28 14:06
DCloud_UNI_WZF
回复 mmonke: 最新 HBuilderX 已修复该问题
2024-02-19 15:36