function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"316369","map_x":"117.082761","map_y":"36.648486","pointname":"济南考研集训历下基地","pointaddress":"济南市历下区荆山路学府蓝山大厦","areaname":"历下区","areacode":"100024001002"},{"id":"316370","map_x":"117.082761","map_y":"36.648486","pointname":"济南寄宿考研历下基地","pointaddress":"济南市历下区荆山路学府蓝山大厦","areaname":"历下区","areacode":"100024001002"},{"id":"316373","map_x":"117.551892","map_y":"36.642257","pointname":"济南考研集训章丘基地","pointaddress":"济南市章丘区海龙生态产业园","areaname":"章丘区","areacode":"100024001008"},{"id":"316371","map_x":"117.504159","map_y":"36.658427","pointname":"章丘大学城教学中心","pointaddress":"济南市章丘区文博路2号齐鲁师范园","areaname":"章丘区","areacode":"100024001008"},{"id":"316372","map_x":"116.823735","map_y":"36.563297","pointname":"长清大学城教学中心","pointaddress":"济南市长清区大学城商业街","areaname":"长清区","areacode":"100024001006"},{"id":"98668","map_x":"117.082761","map_y":"36.648486","pointname":"山财燕山校区教学中心","pointaddress":"济南市历下区荆山路学府蓝山大厦","areaname":"历下区","areacode":"100024001002"},{"id":"316368","map_x":"117.381038","map_y":"36.676532","pointname":"山财圣井校区教学中心","pointaddress":"山东财经大学圣井校区商业街","areaname":"章丘区","areacode":"100024001008"},{"id":"316358","map_x":"117.029089","map_y":"36.631289","pointname":"山财舜耕校区教学中心","pointaddress":"山东财经大学舜耕校区商业街","areaname":"市中区","areacode":"100024001001"},{"id":"316359","map_x":"117.192366","map_y":"36.686465","pointname":"山建山体教学中心","pointaddress":"山东建筑大学纳博士超市","areaname":"历城区","areacode":"100024001005"},{"id":"316360","map_x":"117.185998","map_y":"36.684703","pointname":"山建山青教学中心","pointaddress":"建大西门","areaname":"历城区","areacode":"100024001005"},{"id":"316374","map_x":"116.972175","map_y":"36.685305","pointname":"山东交通学院咨询点","pointaddress":"济南市天桥区无影山中路118号山东交通学院","areaname":"天桥区","areacode":"100024001004"},{"id":"316375","map_x":"117.069294","map_y":"36.688833","pointname":"印象城咨询点","pointaddress":"济南市历城区花园路136-7号","areaname":"历城区","areacode":"100024001005"},{"id":"316376","map_x":"117.02994","map_y":"36.67004","pointname":"恒隆咨询点","pointaddress":"济南市历下区泉城路188号","areaname":"历下区","areacode":"100024001002"},{"id":"316377","map_x":"117.137416","map_y":"36.692815","pointname":"高新万达咨询点","pointaddress":"济南市历下区工业南路57号","areaname":"历下区","areacode":"100024001002"},]; //补充其他行政区分组 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(); } }