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.
1 line
16 KiB
1 line
16 KiB
10 months ago
|
/**/_jsload2 && _jsload2('othersearch', 'x.extend(Ee.prototype,{Td:function(){for(var a=0,b=this.Pa.length;a<b;a++){var c=this.Pa[a];this[c.method].apply(this,c.arguments)}delete this.Pa},Mm:function(a,b,c){c=c||"\\u5317\\u4eac\\u5e02";/^[ \\s]*$/.test(a)||de.eb(function(a){if(a&&a.result&&35==a.result.type){var c=a.result,a=a.content,f=p,g=p;if(c&&0==c.error&&a)var c=a.cn,g=a.sc,i=a.wd,j=a.prc,l=a.fuzzy_score,m=a.catalog,f=new O(a.coord.x,a.coord.y),f=T.ub(f),g={city:c,citycode:g,address:i,precise:j,confidence:l,level:m};b&&b(f,g)}},{qt:"gc", wd:a,cn:c})},Im:function(a,b,c){if(!(a instanceof O||a instanceof K)&&b)b(p);else{var a=T.tb(a),d=a.lng,a=a.lat,c=c||{};de.eb(function(a){var c=p;if(a&&a.result&&44==a.result.type){var d=a.content,i={},j=[];if(0==a.result.error&&d){c=d.address_detail;a=c.city;c&&(i.streetNumber=c.street_number,i.street=c.street,i.district=c.district,i.city=a,i.province=c.province);var c=d.point,c=new O(c.x,c.y),c=T.ub(c),l=d.surround_poi;if(l&&l.length)for(var m=0,n=l.length;m<n;m++){var s={},u=l[m];s.title=u.name; s.uid=u.uid;var w=new O(u.point.x,u.point.y),w=T.ub(w);s.point=new O(w.lng,w.lat);s.city=a;s.Yi=u.poiType;s.type=0;s.address=u.addr;s.postcode=u.zip||p;s.phoneNumber=u.tel||p;u=s.Yi;0!==u.length&&(s.tags=u.split(","));j.push(s)}c={point:new O(c.lng,c.lat),address:d.address,addressComponents:i,surroundingPois:j,business:d.business}}}b&&b(c)},{qt:"rgc",x:d,y:a,dis_poi:c.poiRadius||100,poi_num:c.numPois||10,latest_admin:"1"})}}});U(Fe,{getPoint:Fe.Mm,getLocation:Fe.Im});function Fi(a){var b=document.createElement("script");b.onload=function(){b.parentNode.removeChild(b)};b.src=a;document.getElementsByTagName("head")[0].appendChild(b)} x.extend(Geolocation.prototype,{getCurrentPosition:function(a,b){function c(){if(!i&&!j&&(l&&(clearTimeout(l),l=p),b&&"function"===typeof b))b.apply(g,arguments),j=o}function d(b){if(!i&&!j&&(l&&(clearTimeout(l),l=p),g.IX=b,B!==p))a.apply(g,arguments),i=o,Ta(8E3,{})}function e(a){navigator.geolocation?(new Gi({timeout:5E3,maximumAge:g.B.maximumAge})).getCurrentPosition(function(a){d(a)},function(){a()}):a()}function f(a){(new Hi({timeout:g.B.timeout,maximumAge:g.B.maximumAge,wk:g.B.wk})).getCurrentPosition(function(a){d(a)}, function(){a()})}B.alog("cus.fire","count","z_geolocation");var g=this,i=q,j=q,l=setTimeout(function(){if(!i&&!j){var a=new Ii;a.errorCode=a.Hz;a.nf="\\u6574\\u4f53\\u5b9a\\u4f4d\\u8d85\\u65f6";c(a)}},g.B.timeout);(function(a){(new Ji({ol:g.B.ol})).getCurrentPosition(function(a){d(a)},function(){a()})})(function(){e(function(){f(function(){var a=new Ii;a.nf="\\u6240\\u6709\\u7684\\u5b9a\\u4f4d\\u90fd\\u4e0d\\u53ef\\u7528\\u6216\\u5931\\u8d25";a.errorCode=a.Lj;c(a)})})})},Om:function(){return this.IX?0:2}}); Geolocation.prototype.getCurrentPosition=Geolocation.prototype.getCurrentPosition;Geolocation.prototype.getStatus=Geolocation.prototype.Om; x.extend(function(a){a=a||{};this.B={domain:a.domain||".baidu.com",path:a.path||"/",WC:a.WC||"H_LOC_MI",hh:a.hh||18E5}}.prototype,{K_:function(a){var b=this.B.WC,a=a.iP(),a=encodeURIComponent(a),c={path:this.path,domain:this.domain,hh:this.hh};if(RegExp(\'^[^\\\\x00-\\\\x20\\\\x7f\\\\(\\\\)<>@,;:\\\\\\\\\\\\"\\\\[\\\\]\\\\?=\\\\{\\\\}\\\\/\\\\u0080-\\\\uffff]+$\').test(b)){var c=c||{},d=c.hh;"number"==typeof c.hh&&(d=new Date,d.setTime(d.getTime()+c.hh));document.cookie=b+"="+a+(c.path?"; path="+c.path:"")+(d?"; expires="+d.toGMTString(): "")+(c.domain?"; domain="+c.domain:"")+(c.x_?"; secure":"")}},WX:function(a,b){var c;var d=this.B.WC;RegExp(\'^[^\\\\x00-\\\\x20\\\\x7f\\\\(\\\\)<>@,;:\\\\\\\\\\\\"\\\\[\\\\]\\\\?=\\\\{\\\\}\\\\/\\\\u0080-\\\\uffff]+$\').test(d)&&(d=RegExp("(^| )"+d+"=([^;]*)(;|$)").exec(document.cookie))&&(c=d[2]||p);c=c||p;c="string"==typeof c?decodeURIComponent(c):p;c===p?(c=new Ii,c.nf="Cookie\\u4e2d\\u4e0d\\u5b58\\u5728\\u5730\\u7406\\u4f4d\\u7f6e\\u4fe1\\u606f",c.errorCode=c.Lj,b(c)):(d=new Ki,d.bO(c),a(d))}}); x.extend(function(){this.B={kN:"H_LOC_MI"}}.prototype,{WX:function(a,b){var c=localStorage.getItem(this.B.kN);if(c===p)c=new Ii,c.errorCode=c.Lj,c.nf="localStorage\\u
|