function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"115030","map_x":"103.964974","map_y":"30.79192","pointname":"新文道考研 集训营地","pointaddress":"成都市郫都区成都银杏酒店","areaname":"郫都区","areacode":"100051001024"},{"id":"115029","map_x":"104.083304","map_y":"30.635977","pointname":"新文道考研 线上校区","pointaddress":"成都市武侯区科华北路65号世外桃源广场","areaname":"武侯区","areacode":"100051001007"},{"id":"115028","map_x":"103.931414","map_y":"30.749496","pointname":"新文道考研 川大锦城","pointaddress":"四川省成都市郫都区西源大道","areaname":"郫都区","areacode":"100051001024"},{"id":"115027","map_x":"103.870961","map_y":"30.710899","pointname":"新文道考研 川农校区","pointaddress":"温江区万花街","areaname":"温江区","areacode":"100051001015"},{"id":"115026","map_x":"103.990577","map_y":"30.765296","pointname":"新文道考研 西交校区","pointaddress":"新文道考研","areaname":"郫都区","areacode":"100051001024"},{"id":"115025","map_x":"103.991254","map_y":"30.584759","pointname":"新文道考研 雅安川农","pointaddress":"新文道考研","areaname":"双流县","areacode":"100051001022"},{"id":"115024","map_x":"104.093441","map_y":"30.694122","pointname":"新文道考研 新都校区","pointaddress":"新都区大学路正因街","areaname":"金牛区","areacode":"100051001006"},{"id":"115023","map_x":"103.957727","map_y":"30.775849","pointname":"新文道考研 西华校区","pointaddress":"西华大学南门旁宇众曼城","areaname":"金牛区","areacode":"100051001006"},{"id":"115022","map_x":"103.835553","map_y":"30.686514","pointname":"新文道考研 西财校区","pointaddress":"西财校区温江商会大厦","areaname":"温江区","areacode":"100051001015"},{"id":"115021","map_x":"103.982025","map_y":"30.571235","pointname":"新文道考研 民大校区","pointaddress":"双流区东航中心云锦天地","areaname":"双流县","areacode":"100051001022"},{"id":"115020","map_x":"104.466835","map_y":"30.853948","pointname":"新文道考研(金堂校区","pointaddress":"成都市金堂县星岛","areaname":"金堂县","areacode":"100051001021"},{"id":"115019","map_x":"104.055471","map_y":"30.683603","pointname":"新文道考研 工业校区","pointaddress":"成都工业学院科技园","areaname":"金牛区","areacode":"100051001006"},{"id":"115018","map_x":"103.630912","map_y":"31.004689","pointname":"新文道考研 都江堰校","pointaddress":"都江堰市外北街","areaname":"都江堰市","areacode":"100051001081"},{"id":"115017","map_x":"103.599749","map_y":"30.892855","pointname":"新文道考研东软校区","pointaddress":"东软学院继续教育中心","areaname":"都江堰市","areacode":"100051001081"},{"id":"115016","map_x":"104.204922","map_y":"30.577902","pointname":"新文道考研川师校区","pointaddress":"成都市龙泉驿区龙城大道","areaname":"龙泉驿区","areacode":"100051001012"},{"id":"115015","map_x":"104.08314","map_y":"30.63575","pointname":"新文道考研川大校区","pointaddress":"成都市武侯区科华北路","areaname":"武侯区","areacode":"100051001007"},{"id":"115014","map_x":"103.991316","map_y":"30.584995","pointname":"新文道考研成信校区","pointaddress":"成都市双流区锦华路","areaname":"双流县","areacode":"100051001022"},{"id":"115013","map_x":"104.159472","map_y":"30.688568","pointname":"新文道考研成理校区","pointaddress":"理工东苑","areaname":"成华区","areacode":"100051001008"},{"id":"115012","map_x":"104.201409","map_y":"30.655986","pointname":"新文道考研成大校区","pointaddress":"都大学机械工程学院","areaname":"龙泉驿区","areacode":"100051001012"},]; //补充其他行政区分组 if(data_info.length>10){ var areaGroupArr=new Array(); var defaultCode=''; for(var i=0;i< data_info.length;i++){ if(data_info[i].id==campusid){ defaultCode=data_info[i].areacode; } var _item=areaGroupArr.find(it=>it.areacode==data_info[i].areacode); if(_item){ _item.count++; }else{ areaGroupArr.push({areacode:data_info[i].areacode,areaname:data_info[i].areaname,count:1,fid:data_info[i].id}); } } $('#areaul li:gt(0)').remove(); for(var i=0;i< areaGroupArr.length;i++){ $('#areaul').append(`
  • ${areaGroupArr[i].areaname}(${areaGroupArr[i].count})
  • `); } } //2023-6-7 简化之前逻辑,对网点列表重新构建数据 var _uls=$('.school-list-container ul'); for(var i=0;i< _uls.length;i++){ var _ul=$(_uls[i]); var _id=_ul.attr('id'); var _code=''; if(/\d+/.test(_id)){ _code=/\d+/.exec(_id)[0]; } _ul.empty(); var _index=0; var visible=_ul.is(':visible'); for(var j=0;j< data_info.length;j++){ if(_code&&data_info[j].areacode!=_code){ continue; } _index++; var _li=`
  • ${_index}${data_info[j].id==campusid?'':''}
    ${data_info[j].pointname} ${data_info[j].pointaddress}
  • `; _ul.append(_li); if(visible){ if(locationPoint && data_info[j].id==campusid){ var overlay = new ComplexCustomOverlay(new BMap.Point(locationPoint.lng, locationPoint.lat), _index, data_info[j].pointname, data_info[j].pointaddress, data_info[j].id); map.addOverlay(overlay); map.centerAndZoom(new BMap.Point(locationPoint.lng, locationPoint.lat), 15); }else{ var overlay = new ComplexCustomOverlay(new BMap.Point(data_info[j].map_x, data_info[j].map_y), _index, data_info[j].pointname, data_info[j].pointaddress, data_info[j].id); map.addOverlay(overlay); } } } if(visible){ var _activeTop=_ul.find('li.active').offset().top; var _parentTop=_ul.offset().top; _ul.scrollTop(_activeTop-_parentTop-_ul.find('li.active').outerHeight()); } } resetJybTabLine(); } }