You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
14 KiB
2 lines
14 KiB
3 months ago
|
/**/_jsload2&&_jsload2('othersearch', 'z.extend(pe.prototype,{Qd:function(){for(var a=0,b=this.Ra.length;a<b;a++){var c=this.Ra[a];this[c.method].apply(this,c.arguments)}delete this.Ra},$l:function(a,b,c){c=c||"\\u5317\\u4eac\\u5e02";/^[ \\s]*$/.test(a)||Md.nb(function(a){if(a&&a.result&&35==a.result.type){var c=a.result,a=a.content,g=s,i=s;if(c&&0==c.error&&a)var c=a.cn,i=a.sc,k=a.wd,m=a.prc,n=a.fuzzy_score,o=a.catalog,g=new J(a.coord.x,a.coord.y),g=S.cc(g),i={city:c,citycode:i,address:k,precise:m,confidence:n,level:o};b&&b(g,i)}},{qt:"gc", wd:a,cn:c})},Yl:function(a,b,c){if(!(a instanceof J)&&b)b(s);else{var a=S.Gb(a),e=a.lng,a=a.lat,c=c||{};Md.nb(function(a){var c=s;if(a&&a.result&&44==a.result.type){var e=a.content,k={},m=[];if(0==a.result.error&&e){c=e.address_detail;a=c.city;c&&(k.streetNumber=c.street_number,k.street=c.street,k.district=c.district,k.city=a,k.province=c.province);var c=e.point,c=new J(c.x,c.y),c=S.cc(c),n=e.surround_poi;if(n&&n.length)for(var o=0,q=n.length;o<q;o++){var v={},w=n[o];v.title=w.name;v.uid=w.uid;var y= new J(w.point.x,w.point.y),y=S.cc(y);v.point=y;v.city=a;v.Ii=w.poiType;v.type=0;v.address=w.addr;v.postcode=w.zip||s;v.phoneNumber=w.tel||s;w=v.Ii;0!==w.length&&(v.ME=w.split(","));m.push(v)}c={point:c,address:e.address,addressComponents:k,surroundingPois:m,business:e.business}}}b&&b(c)},{qt:"rgc",x:e,y:a,dis_poi:c.poiRadius||100,poi_num:c.numPois||10,latest_admin:"1"})}}});U(qe,{getPoint:qe.$l,getLocation:qe.Yl});function ei(a){var b=document.createElement("script");b.onload=function(){b.parentNode.removeChild(b)};b.src=a;document.getElementsByTagName("head")[0].appendChild(b)} z.extend(Geolocation.prototype,{getCurrentPosition:function(a,b){function c(b){k||(m&&(clearTimeout(m),m=s),i.iK=b,a.apply(i,arguments),k=p)}function e(b){if(!k&&(m&&(clearTimeout(m),m=s),i.iK=b,D!==s))a.apply(i,arguments),k=p,Ta(8E3,{longitude:b.longitude,latitude:b.latitude,accuracy:b.accuracy})}function f(a){navigator.geolocation&&(new fi({timeout:i.U.timeout,maximumAge:i.U.maximumAge,enableHighAccuracy:i.U.enableHighAccuracy})).getCurrentPosition(function(a){e(a)},function(b){switch(b.errorCode){case b.oy:i.sp= Od;c(s);break;case b.Yt:i.sp=Nd;a();break;case b.zF:i.sp=Pd,a()}})}function g(a){(new gi).getCurrentPosition(function(a){e(a)},function(){a()})}var i=this,k=t,b=b||{};i.U={timeout:b.timeout||i.U.timeout,maximumAge:b.maximumAge||i.U.maximumAge,enableHighAccuracy:b.enableHighAccuracy||i.U.enableHighAccuracy,si:b.SDKLocation||i.U.si};var m=setTimeout(function(){k||(i.sp=Pd,c(s))},i.U.timeout);(function(a){(new hi({si:i.U.si})).getCurrentPosition(function(a){e(a)},function(){a()})})(function(){f(function(){g(function(){i.sp= Nd;c(s)})})})},am:function(){this.iK&&(this.sp=0);return this.sp}});Geolocation.prototype.getCurrentPosition=Geolocation.prototype.getCurrentPosition;Geolocation.prototype.getStatus=Geolocation.prototype.am;function fi(a){this.U={timeout:a.timeout||5E3,maximumAge:a.maximumAge||6E5,enableHighAccuracy:a.enableHighAccuracy||t}} z.extend(fi.prototype,{getCurrentPosition:function(a,b){function c(a){var c=new ii;a.code===a.PERMISSION_DENIED&&-1===a.message.indexOf("secure")&&(c.errorCode=c.oy,c.gk="\\u7528\\u6237\\u51b3\\u7edd\\u5b9a\\u4f4d\\u8bf7\\u6c42");a.code===a.POSITION_UNAVAILABLE&&(c.errorCode=c.Yt,c.gk="\\u5b9a\\u4f4d\\u4e0d\\u53ef\\u7528");-1<a.message.indexOf("secure")&&(confirm(location.hostname+"\\u60f3\\u8981\\u83b7\\u53d6\\u60a8\\u5f53\\u524d\\u7684\\u4f4d\\u7f6e\\u3002\\u5141\\u8bb8\\u8bf7\\u70b9\\u51fb\\u786e\\u5b9a\\uff0c\\u7981\\u6b62\\u8bf7\\u70b9\\u51fb\\u53d6\\u6d88")? (c.errorCode=c.Yt,c.gk="\\u5b9a\\u4f4d\\u4e0d\\u53ef\\u7528"):(c.errorCode=c.oy,c.gk="\\u7528\\u6237\\u51b3\\u7edd\\u5b9a\\u4f4d\\u8bf7\\u6c42"));a.code===a.TIMEOUT&&(c.errorCode=c.zF,c.gk="\\u5b9a\\u4f4d\\u8d85\\u65f6");b(c)}function e(b){if(/BIDUBrowser/i.test(navigator.userAgent))(new pe).Yl(new J(b.coords.longitude,b.coords.latitude),function(c){var e=new ji;e.accuracy=1999<b.coords.accuracy?1999:b.coords.accuracy;e.longitude=b.coords.longitude;e.latitude=b.coords.latitude;e.point=new J(e.longitude,e
|