12345678 |
- /* 百度地图API V2 模块
- * 此模块必须配套使用baidumap_offline_v2_20160822.js对
- * 获取模块的方法:
- * http://api0.map.bdimg.com/getmodules?v=2.0&mod=模块1,模块2
- * 模块名称就是文件名
- * www.xiaoguo123.com 整理
- */
- _jsload2&&_jsload2('local', 'bb.fM=function(a,b){return!a||"undefined"==typeof b||"s"==a&&11!=b&&7!=b&&2!=b&&26!=b&&28!=b||"nb"==a&&12!=b||"bd"==a&&21!=b||"bda"==a&&45!=b||"sa"==a&&46!=b||"nba"==a&&47!=b?q:o}; x.extend(bb.prototype,{Bz:function(){for(var a=0,b=this.Oa.length;a<b;a++){var c=this.Oa[a];this[c.method].apply(this,c.arguments)}delete this.Oa;this.qa()},qa:function(){this.Zm=new $g(this);this.Ym=new ah(this)},search:function(a,b,c){if(!a||a instanceof Array&&(1>a.length||10<a.length))this.Me(),this.rb(5),this.Ra(V.Tc);else if(b=b||{},b.customData)this.Lz(),this.ks.search({sb:a,Hp:"local",Qw:b.customData}),this.Nl=o;else{this.Nl=q;var d=c||{},e=this;this.Lg(this.zd,function(c){c=c||1;e.Gc=e.DA(a); c=e.Gc?{qt:"sa",c:c,wd:a.join("$$"),wdn:a.length,rn:e.lf()}:{qt:b.forceLocal?"con":"s",c:c,wd:a,rn:e.lf()};e.k.Ap&&x.extend(c,{from:e.k.Ap});x.extend(c,d.$c);b.log&&(c.log="center");var g={$c:c,options:b,td:d.td||a};x.extend(g,d);$c.ab(function(a,b){e.Hf(a,b)},c,g)})}},DA:function(a){return a&&a instanceof Array?o:q},bn:function(a,b,c){if(!a||!b||a instanceof Array&&(1>a.length||10<a.length))this.Me(),this.rb(5),this.Ra(V.Tc);else{var c=c||{},d=this;if(c.customData)this.Lz(),this.ks.search({sb:a, gb:b,Hp:"bound",Qw:c.customData}),this.Nl=o;else{this.Nl=q;var e=c||{};this.Lg(this.zd,function(c){var c=c||1,g=b.re(),i=b.kf(),g=R.xb(g),i=R.xb(i),g="("+g.lng+","+g.lat+";"+i.lng+","+i.lat+")";d.Gc=d.DA(a);c=d.Gc?{qt:"bda",c:c,wd:a.join("$$"),wdn:a.length,ar:g,rn:d.lf(),l:18}:{qt:"bd",c:c,wd:a,ar:g,rn:d.k.Fk,l:18};d.k.Ap&&x.extend(c,{from:d.k.Ap});x.extend(c,e.$c);$c.ab(function(a,b){d.Hf(a,b)},c,e&&e.Fa&&e.wa?{$c:c,gb:b,Fa:e.Fa,wa:e.wa,td:e.td||a}:{$c:c,gb:b,td:e.td||a})})}}},Gp:function(a,b,c, d){if(!a||!b||!(b instanceof H)&&"object"==typeof b&&!b.uid||a instanceof Array&&(1>a.length||10<a.length))this.Me(),this.rb(5),this.Ra(V.Tc);else if(d=d||{},d.customData)this.Lz(),this.ks.search({sb:a,Fa:b,wa:c,Hp:"nearby",Qw:d.customData}),this.Nl=o;else{this.Nl=q;var c=c||bb.jG,c=0>c?bb.jG:c>bb.qG?bb.qG:c,e=this,f=d||{};if(b instanceof H){var g=R.xb(b),d=new H(g.lng-c,g.lat-c),g=new H(g.lng+c,g.lat+c),d=R.Eb(d),g=R.Eb(g),d=new fb(new H(d.lng,d.lat),new H(g.lng,g.lat));f.Fa=b;f.wa=c;this.bn(a,d, f)}else this.Lg(this.zd,function(d){d=d||1;e.Gc=e.DA(a);d=e.Gc?{qt:"nba",c:d,wd:a.join("$$"),wdn:a.length,rn:e.lf(),uid:b.uid,r:c}:{qt:"nb",c:d,wd:a,rn:e.lf(),uid:b.uid,r:c};if("string"==typeof b){if(e.Gc){d.qt="sa";for(var g=[],l=0;l<a.length;l++)g.push(b+" "+a[l]);d.wd=g.join("$$");d.wdn=g.length}else d.qt="s",d.wd=b+" "+a;delete d.r;delete d.uid}e.k.Ap&&x.extend(d,{from:e.k.Ap});x.extend(d,f.$c);$c.ab(function(a,b){e.Hf(a,b)},d,{$c:d,Fa:b,wa:c,td:f.td||a})})}},Hf:function(a,b){var c=this;c.Gc= 45==a.result.type||46==a.result.type||47==a.result.type?o:q;this.Me();c.Ea=a;this.ga=b;var d=a.result,e=b.$c.qt;if(c.Gc){if(0!=d.error||!bb.fM(e,d.type)){i=a.current_city;this.Ki=[];for(var d=b.td,e=0,f=d.length;e<f;e++){var g=new bh({sb:d[e],city:i.name,province:i.up_province_name||"",Aw:i.code,wp:c.lf(),Fa:b.Fa,wa:b.wa,gb:b.Fa&&b.wa?j:b.gb,ri:""});g.iB=b.$c.qt;this.Ki.push(g)}this.rb(2);this.Ra(V.Tc,this.Ki);c.Ym.dispatchEvent("render");return}}else if(0!=d.error||!bb.fM(e,d.type)){var i=a.current_city; this.ja=new bh({sb:b.td,city:i.name,province:i.up_province_name||"",Aw:i.code,wp:c.lf(),Fa:b.Fa,wa:b.wa,gb:b.Fa&&b.wa?j:b.gb,ri:this.cv(b,i)});this.ja.iB=b.$c.qt;this.rb(2);this.Ra(V.Tc,this.ja);c.Ym.dispatchEvent("render");return}c.Cl(b);c.Zm.dispatchEvent("render");c.Ym.dispatchEvent("render");(d=this.ga.Fa)&&("string"!=typeof d&&!(d instanceof H))&&this.Zm.kw(d);d={};switch(this.Ea.result&&this.Ea.result.type){case 11:case 12:case 21:case 45:case 46:case 47:d.ia=this.oz;break;case 2:d.Fa=this.ja.xk(0).point; d.vg=this.Ea.content.level;break;case 28:d.Fa=this.ja.xk(0).point;d.vg=13;break;case 26:d.Fa=this.ja.xk(0).point,d.vg=parseInt(this.Ea.content[1])}this.Zm.gL(d);d=this.Gc?this.fA():this.ja;this.k.ka.It&&(d&&0<d.Us())&&(c=this,setTimeout(function(){c.select(0)},240))},Cl:function(a){var b=this.Ea.result,c=this.Ea.content,d=this.Ea.current_city,e=b.type,f=b.page_num||0,g=0,i=0,k=[],l=[],m=[],n=[],u=[],v=[];if(this.Ea.psrs&&this.Ea.psrs.SEResult){var w=this.Ea.psrs.SEResult;if(0<w.length)for(var y=0, C=w.length;y<C;++y)v.push(w[y])}if(w=this.Ea.suggest_query){y=0;for(C=w.length;y<C;++y)w[y]&&w[y].query&&v.push(w[y].query)}v=P.unique(v);if(7!=e&&26!=e){var A;this.Gc||(i=b.count-(0==f?b.spec_dispnum||0:0),g=760>b.total?b.total:760,A=0==f?b.spec_dispnum||0:0);if(2!=e)if(this.Gc){C=b.result_array;f=a.td.length;for(y=0;y<f;y++)if(n[y]=[],u[y]=[],m[y]=[],C[y])if(7==C[y].type){if(c&&c[y])for(A=0;A<c[y].length;A++)w=c[y][A],m[y].push({city:w.name,Iz:w.code,numResults:w.num});if(this.Ea.more_city&&this.Ea.more_city[y]){var B= this.Ea.more_city[y];A=0;for(var D=B.length;A<D;A++)for(var E=0,J=B[A].city.length;E<J;E++)w=B[A].city[E],m[y].push({city:w.name,Iz:w.code,numResults:w.num})}}else{w=C[y].count;u[y].push({count:w,ZY:C[y].page_num||0,total:760<C[y].total?760:C[y].total});for(A=0;A<w;A++)if(c&&c[y]&&c[y][A]){D=c[y][A];E=this.nH(D.addr,D.poiType);B=[];if(D.cla&&0<D.cla.length)for(J=D.cla.length;J--;)O=D.cla[J][1],O=O.replace("<b>","").replace("</b>",""),B.unshift(O);D={title:D.name,uid:D.uid,point:P.tb(D.geo,o).point, url:V.Nh(D.uid,d.code),detailUrl:"http://api.map.baidu.com/place/detail?uid="+D.uid+"&output=html&source=jsapi",address:E,city:d.name,province:d.up_province_name||"",phoneNumber:D.tel,postcode:D.zip,type:D.poiType||0,isAccurate:D.acc_flag&&1==D.acc_flag?o:q,tags:B};n[y].push(D);l.push(D.point);this.sf.push(D)}}}else for(y=A;y<b.count;y++){if(c&&c[y]){D=c[y];E=this.nH(D.addr,D.poiType);B=[];if(D.cla&&0<D.cla.length)for(J=D.cla.length;J--;){var O=D.cla[J][1],O=O.replace("<b>","").replace("</b>",""); B.unshift(O)}D={title:D.name,uid:D.uid,point:P.tb(D.geo,o).point,url:V.Nh(D.uid,d.code),detailUrl:"http://api.map.baidu.com/place/detail?uid="+D.uid+"&output=html&source=jsapi",address:E,city:d.name,province:d.up_province_name||"",phoneNumber:D.tel,postcode:D.zip,type:D.poiType||0,isAccurate:D.acc_flag&&1==D.acc_flag?o:q};0<B.length&&(D.tags=B);k.push(D);l.push(D.point);this.sf.push(D)}}else i=g=1,D={title:c.cname,uid:c.uid,point:P.tb(c.geo,o).point,address:c.cname,url:z.qp+"?s="+encodeURIComponent("s&wd="+ b.wd)},k.push(D),this.sf.push(D),l.push(D.point)}else if(26==e&&(i=g=1,D={title:b.wd,point:P.dZ(c[0]),url:z.qp+"?s="+encodeURIComponent("s&wd="+b.wd)},k.push(D),this.sf.push(D),l.push(D.point)),7==e){for(y=i=g=0;y<c.length;y++)m.push({city:c[y].name,Iz:c[y].code,numResults:c[y].num});if(this.Ea.more_city){B=this.Ea.more_city;y=0;for(D=B.length;y<D;y++){A=0;for(J=B[y].city.length;A<J;A++)c=B[y].city[A],m.push({city:c.name,Iz:c.code,numResults:c.num})}}}this.oz=l;if(this.Gc){this.Ki=[];f=a.td.length; b=o;for(y=0;y<f;y++)0<u[y].length&&0<u[y][0].total&&(b=q),k=new bh({sb:a.td[y]||"",count:0<u[y].length?u[y][0].count:0,total:0<u[y].length?u[y][0].total:0,OE:0<u[y].length?u[y][0].ZY:0,city:d.name,province:d.up_province_name||"",Aw:d.code,Gk:n[y]||[],fC:m[y]||[],wp:this.lf(),Fa:a.Fa,wa:a.wa,gb:a.Fa&&a.wa?j:a.gb,ri:"",gO:v}),k.iB=a.$c.qt,this.Ki.push(k);b?this.rb(2):this.rb(0);this.Ra(V.Tc,this.Ki)}else this.ja=new bh({sb:a.td,count:i,total:g,OE:b.page_num,city:d.name,province:d.up_province_name|| "",Aw:d.code,Gk:k,fC:m,wp:this.lf(),Fa:a.Fa,wa:a.wa,gb:a.Fa&&a.wa?j:a.gb,ri:this.cv(a,d),gO:v}),this.ja.iB=a.$c.qt,0==g&&7!=e?this.rb(2):7!=e?this.rb(0):this.rb(1),this.Ra(V.Tc,this.ja)},cv:function(a,b){var c="",c="string"==typeof a.Fa?a.Fa+" "+a.td:a.td,d=b.name,e,f,g;"object"==typeof a.Fa&&!(a.Fa instanceof H)&&(f=a.Fa.point,e=a.wa);a.gb&&!a.Fa&&(g=a.gb);a.Fa&&a.Fa instanceof H&&(f=a.Fa,e=a.wa);c=z.Hc+"place/search?res=jsapi&query="+c+"®ion="+d+"&output=html";f&&(c+="&location="+f.lat+","+f.lng+ "&radius="+e);g&&(e=g.re(),g=g.kf(),c+="&bounds="+e.lat+","+e.lng+","+g.lat+","+g.lng);return c},nH:function(a,b){b=b||0;return 1==b||3==b?P.unique(a.split(";")).join("; "):a},x0:function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].mL())return o;return q},Lj:function(){for(var a=0,b=this.va.length;a<b;a++)this.va[a].remove(),this.va[a]=p;a=this.va.length=0;for(b=this.sf.length;a<b;a++)this.sf[a]=p;this.sf.length=0;this.Az&&(this.Az.remove(),this.Az=p)},fA:function(){if(!this.Gc)return this.ja;for(var a, b=-1,c=0,d=this.Ki.length;c<d;c++){var e=this.Ki[c];e.Zo()>b&&(a=e,b=e.Zo())}return a},Me:function(){delete this.Ea;delete this.Bd;delete this.ja;this.Gc&&delete this.Ki;delete this.ga;this.jb=-1;this.rb();this.Lj();this.k.ka.Ga&&(this.k.ka.Ga.innerHTML="")},zm:function(a){if(this.Nl)this.ks.zm(a);else if(this.ga){var b;b=this.Gc?this.fA():this.ja;if("number"==typeof a&&!isNaN(a)&&0<=a&&a<=b.Zo()-1)switch(this.ga.$c.pn=a,this.ga.$c.qt){case "s":case "con":this.search(this.ga.$c.wd,this.ga.options, this.ga);break;case "bd":this.bn(this.ga.$c.wd,this.ga.gb,this.ga);break;case "nb":this.Gp(this.ga.$c.wd,this.ga.Fa,this.ga.wa,this.ga);break;case "bda":this.bn(this.ga.td,this.ga.gb,this.ga);break;case "sa":this.search(this.ga.td,this.ga.options,this.ga);break;case "nba":this.Gp(this.ga.td,this.ga.Fa,this.ga.wa,this.ga)}else this.rb(5),this.Ra(V.Tc)}},Lz:function(){this.ks||(this.ks=new ch(this))},select:function(a){this.Zm.select(a);this.Ym.select(a);this.jb=a}}); S(pd,{gotoPage:pd.zm,searchNearby:pd.Gp,searchInBounds:pd.bn,search:pd.search,clearResults:pd.Me});function bh(a){this.keyword=a.sb||"";this.mT=a.OE||0;this.XQ=a.count||0;this.WA=a.total||0;this.dT=Math.ceil(a.total/a.wp);this.center=a.Fa;this.radius=a.wa;this.bounds=a.gb;this.city=a.city;this.province=a.province;this.viewport=a.viewport;this.moreResultsUrl=a.ri;this.wr=a.Gk&&a.Gk.slice(0)||[];this.tQ=a.fC&&a.fC.slice(0);this.suggestions=a.gO||[]}x.extend(bh.prototype,{xk:function(a){if(this.wr[a])return this.wr[a]},Us:t("WA"),Zo:t("dT"),mL:t("XQ"),tL:t("mT"),gx:t("tQ"),toString:ca("LocalResult")}); var dh=bh.prototype;S(dh,{getPoi:dh.xk,getCurrentNumPois:dh.mL,getNumPois:dh.Us,getNumPages:dh.Zo,getPageIndex:dh.tL,getCityList:dh.gx});function ch(a){x.lang.Ba.call(this);this.na=a;this.na.jb=-1}x.lang.ta(ch,x.lang.Ba,"CustomSearch"); x.extend(ch.prototype,{search:function(a){this.Hp=a.Hp;this.na.Gc=q;if(this.Bz(a)){var b=this;this.na.Lg(this.na.zd,function(c){a.region=c;c=b.dS(a);b.JN(c,{$c:c,options:a})})}},Bz:function(){var a=o;pa||(this.na.rb(4),this.na.Ra(V.Tc),a=q);return a},dS:function(a){var b=this.Qw=a.Qw;b&&b.geotableId&&(this.kt=o);var c={region:a.region,page_size:this.na.lf(),ak:pa};a.YY&&(c.page_index=a.YY);a.sb&&(c.q=a.sb);if(a.gb){var d=a.gb.re(),e=a.gb.kf();c.bounds=this.kt?d.lng+","+d.lat+";"+e.lng+","+e.lat:d.lat+ ","+d.lng+";"+e.lat+","+e.lng}if(a.Fa&&(a.Fa instanceof H||a.Fa.point instanceof H))d=p,a.Fa instanceof H?d=a.Fa:a.Fa.point instanceof H&&(d=a.Fa.point),c.location=this.kt?d.lng+","+d.lat:d.lat+","+d.lng;"string"==typeof a.Fa&&(c.q=a.Fa+" "+a.sb,this.Hp="local");a.wa&&(c.radius=a.wa);this.kt?c.geotable_id=b.geotableId:b&&b.databoxId&&(c.filter="databox:"+b.databoxId);b.tags&&(c.tags=b.tags);b.filter&&(c.filter=b.filter);return c},JN:function(a,b){var c=this,d="geosearch/poi";this.kt&&(d="geosearch/v2/"+ this.Hp);$c.ab(function(a,b){c.Hf(a,b)},a,b,d)},Hf:function(a,b){this.na.Me();this.na.ga=b;if(0!=a.status)this.ja=new bh({sb:b.options.sb,wp:this.na.lf(),Fa:b.options.Fa||"",wa:b.options.wa||"",gb:b.options.gb||"",ri:""}),5==a.status?this.na.rb(4):this.na.rb(2),this.na.ja=this.ja,this.na.Ra(V.Tc,this.ja),this.na.Ym.dispatchEvent("render");else{this.Cl(a,b);this.na.Zm.dispatchEvent("render");this.na.Ym.dispatchEvent("render");var c=b.options.Fa;c&&("string"!=typeof c&&!(c instanceof H)&&0==this.na.um())&& this.na.Zm.kw(c);c={};c.ia=this.na.oz;this.na.Zm.gL(c);c=this.na.ja;if(this.na.k.ka.It&&c&&0<c.Us()){var d=this;setTimeout(function(){d.na.select(0)},240)}}},Cl:function(a,b){var c=a.content||{},d=[],e=[],f=this.kt;f&&(c=a.contents);for(var g=0,i=a.size;g<i&&c[g];g++){var k=c[g],l=f?new H(k.location[0],k.location[1]):new H(k.longitude,k.latitude);d.push({title:f?k.title:k.name,uid:k.uid,point:l,url:"",address:f?k.address:k.addr,city:k.city,province:k.province,phoneNumber:k.tel,postcode:k.zip,type:k.cla}); e.push(l)}this.na.sf=d;this.na.oz=e;this.ja=new bh({sb:b.options.sb,count:a.size,total:a.total,OE:b.$c.page_index,city:"",province:"",Aw:"",Gk:d,wp:this.na.lf(),Fa:b.options.Fa,wa:b.options.wa,gb:b.options.gb,ri:""});0==a.total?this.na.rb(2):this.na.rb(0);this.na.ja=this.ja;this.na.Ra(V.Tc,this.ja)},zm:function(a){var b=this.na.ja;"number"==typeof a&&!isNaN(a)&&0<=a&&a<=b.Zo()-1?(this.na.ga.$c.page_index=a,this.JN(this.na.ga.$c,this.na.ga)):(this.na.rb(5),this.na.Ra(V.Tc))}});function $g(a){x.lang.Ba.call(this);this.na=a;this.map=a.k.ka.map;this.va=a.va;this.qa()}x.lang.ta($g,x.lang.Ba,"RenderMap"); x.extend($g.prototype,{qa:function(){this.addEventListener("render",this.za)},za:function(){if(this.map){for(var a=this,b=this.na.sf,c=[],d=0,e=b.length;d<e;d++){var f=b[d];c.push(f.point);var g=this.QP(f.point,d,f.title);g&&(f.marker=g,function(){var b=d;g.addEventListener("click",function(){a.na.select(b)})}(),this.va.push(g))}this.na.Ra(V.Yp,b)}},kw:function(a){var b=this;if(a&&"string"!=typeof a&&!(a instanceof H)){var c=this.na.Az=U.kw(this.map,a.point,a.title);c.addEventListener("click",function(){b.na.select(-1); b.na.jb="c";var d=b.aH(a);c.Mb(d)})}},QP:function(a,b,c){return this.na.k.Fk<=bb.aq&&!this.na.Gc?U.NU(this.map,a,b,c):U.MU(this.map,a,c)},select:function(a){if(this.map&&-1<a&&this.va[a]){if(G())for(var b=p,c=0,d=this.va.length;c<d;c++)b=this.va[c],a==c?b.Tb(b.SL):b.Tb(b.eE),b.draw;else{c=0;for(d=this.va.length;c<d;c++)b=this.va[c],b.zi(q)}this.map.Xc();if(b=this.na.sf[a])b=this.aH(b),a=this.va[a],a.zi(o),a.Mb(b)}},aH:function(a){var b=U.SV({title:a.title,Wr:a.address,y_:a.phoneNumber,url:a.url,cW:a.detailUrl, uid:a.uid,UE:a.type}),c=this;b.addEventListener("close",function(){c.na.Ym.zV()});b.addEventListener("open",function(){c.na.Ra(V.Bn,a,U.Qs(c.map))});return b},gL:function(a){var b=this.na.k.ka;if(this.map)if(a.ia){var c=!b.Zg,b=!b.It&&b.Zg,a=this.map.Zs(a.ia,{margins:[30,30,30,30]});c||this.map.Bh(a,{enableAnimation:b})}else a.vg=P.bx(a.vg,this.map),b.Zg&&this.map.Cd(a.Fa,a.vg)}});function ah(a){x.lang.Ba.call(this);this.na=a;this.Ga=a.k.ka.Ga;this.qa()}x.lang.ta(ah,x.lang.Ba,"RenderList"); x.extend(ah.prototype,{qa:function(){this.addEventListener("render",this.za)},za:function(){if(this.Ga){var a=K("div",{style:"font:12px "+F.fontFamily+";border:1px solid #999;"}),b=K("div",{style:"background:#fff"}),c=K("ol",{style:"list-style:none;padding:0;margin:0"}),d=this.na.um(),e=p;if(0==d)for(var e=0,f=this.na.sf.length;e<f;e++)d=this.LQ(e),c.appendChild(d);else if(1==d){if(1==d&&!this.na.Gc){e=0;for(f=Math.min(6,this.na.ja.gx().length);e<f;e++)d=this.JQ(e),c.appendChild(d)}}else{e="";switch(d){case 2:e= "\\u62b1\\u6b49\\uff0c\\u672a\\u627e\\u5230\\u76f8\\u5173\\u5730\\u70b9\\u3002";break;case 4:e="\\u62b1\\u6b49\\uff0c\\u60a8\\u6240\\u63d0\\u4f9b\\u7684key\\u65e0\\u6548\\u3002"}d=K("li",{style:"margin:2px 0;padding:0 5px 0 3px;overflow:hidden;line-height:17px"});d.innerHTML=e;c.appendChild(d)}b.appendChild(c);a.appendChild(b);e=this.RQ();a.appendChild(e);this.Ga.appendChild(a);this.na.Ra(V.wu,a)}},LQ:function(a){var b=this.na.sf;if(b&&b[a]){var b=b[a],c=K("li",{style:"margin:2px 0;padding:0 5px 5px 0px;cursor:pointer;overflow:hidden;line-height:17px;*zoom:1;"}); -1<this.na.jb&&a==this.na.jb&&(c.style.backgroundColor="#f0f0f0");var d=0==a?"0px":"-"+25*a+"px";if(this.na.k.Fk>bb.aq||this.na.Gc)d="-275px";var d=["<span style=\'background:url("+z.Hc+"images/markers.png) -23px "+d+" no-repeat;width:19px;height:25px;cursor:pointer;float:left;*zoom:1;overflow:hidden;margin:2px 3px 0 5px;*margin-right:0px;display:inline;\'> </span>"],e,f=RegExp(this.na.Gc?this.na.ga.td.join("|"):this.na.ja.keyword,"ig");b.title&&(e=b.title.replace(f,"<b>$&</b>"));1==b.type?e+= "-\\u516c\\u4ea4\\u8f66\\u7ad9":3==b.type&&(e+="-\\u5730\\u94c1\\u7ad9");d.push("<div style=\'zoom:1;overflow:hidden;padding:0 5px;\'>");d.push("<div style=\'line-height:20px;font-size:12px;\'><span style=\'color:#00c;\'>"+e+"</span>");b.detailUrl&&d.push("<a target=\'_blank\' href=\'"+b.detailUrl+"\' style=\'margin-left:5px;font-size:12px;color:#3d6dcc;font-weight:normal;text-decoration:none;\'>\\u8be6\\u60c5»</a>");d.push("</div>");b.address&&(e=b.address.replace(f,"<b>$&</b>"),d.push("<div style=\'padding:2px 0;line-height:18px;*zoom:1;overflow:hidden;\'><b style=\'float:left;font-weight:bold;*zoom:1;overflow:hidden;padding-right:5px;*margin-right:-3px;\'>\\u5730\\u5740:</b><span style=\'color:#666;display:block;zoom:1;overflow:hidden;\'>"+ e+"</span></div>"));b.phoneNumber&&d.push("<div style=\'padding:2px 0;line-height:18px;*zoom:1;overflow:hidden;\'><b style=\'float:left;font-weight:bold;*zoom:1;overflow:hidden;padding-right:5px;*margin-right:-3px;\'>\\u7535\\u8bdd:</b><span style=\'color:#666;\'>"+b.phoneNumber+"</span></div>");d.push("</div>");c.innerHTML=d.join("");var g=this;c.onclick=function(){g.na.select(a)};return c}},RQ:function(){var a=this,b=K("div",{style:"white-space:nowrap;text-align:right;background:#e5ecf9;margin-top:5px;padding:2px;overflow:hidden;zoom:1;"}); if(!this.na.Gc&&!this.na.Nl){var c=K("a",{style:"color:#7777cc;float:right;",href:this.na.ja.moreResultsUrl,target:"_blank",title:"\\u5230\\u767e\\u5ea6\\u5730\\u56fe\\u67e5\\u770b\\u66f4\\u591a\\u7ed3\\u679c"});c.innerHTML="\\u66f4\\u591a\\u7ed3\\u679c»";b.appendChild(c)}var c=K("div",{style:"float:left;margin-right:5px"}),d=this.na.fA();0<this.na.sf.length&&new od(c,function(b){a.na.zm(b-1)},{Id:d.Zo(),page:d.tL()+1,update:q});b.appendChild(c);return b},zV:function(){this.Ga&&("number"==typeof this.na.jb&& -1!=this.na.jb&&this.Ga.getElementsByTagName("li")[this.na.jb])&&(this.Ga.getElementsByTagName("li")[this.na.jb].childNodes[1].style.backgroundColor="");this.na.jb=-1},select:function(a){if(this.Ga){var b=this.na.jb;"number"==typeof b&&(-1!=b&&this.Ga.getElementsByTagName("li")[b])&&(this.Ga.getElementsByTagName("li")[b].childNodes[1].style.backgroundColor="");"number"==typeof a&&(-1!=a&&this.Ga.getElementsByTagName("li")[a])&&(this.Ga.getElementsByTagName("li")[a].childNodes[1].style.backgroundColor= "#f0f0f0")}},JQ:function(a){var b=K("li",{style:"margin:2px 0;padding:0 5px 0 3px;cursor:pointer;overflow:hidden;line-height:17px"});b.Tj=a;var c=this.na.ja.gx();b.innerHTML="<span style=\'color:#00c;text-decoration:underline\'>"+c[a].city+"</span> <span style=\'color:#666\'>(\\u5171"+c[a].numResults+"\\u6761\\u7ed3\\u679c)</span>";var d=this.na,e=d.ja;b.onclick=function(){d.gn(e.gx()[a].city);d.search(e.keyword)};return b}}); ');
|