2***@qq.com
2***@qq.com
  • 发布:2019-05-30 14:37
  • 更新:2019-05-30 14:37
  • 阅读:727

IOS plus.maps.drivingSearch不能进入onRouteSearchComplete

分类:uni-app

安卓端没问题,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]), "" );
2019-05-30 14:37 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复