安卓端没问题,IOS端几十次能对个一两次
var searchObj = new plus.maps.Search();
searchObj.onRouteSearchComplete = function ( state, result ) {
console.log(JSON.stringify(result))
if ( state == 0 ) {
} else {
uni.showToast({
title:"检索失败",
icon:"none"
})
uni.hideLoading();
}
}
searchObj.drivingSearch(new plus.maps.Point(_this.longitude,_this.latitude), "", new plus.maps.Point(_this.harvestAdd.split(",")[0],_this.harvestAdd.split(",")[1]), "" );
0 个回复