function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"377805","map_x":"117.046452","map_y":"39.434776","pointname":"天津天狮学院教学中心","pointaddress":"翠亨路天狮学院","areaname":"武清区","areacode":"100012001014"},{"id":"377804","map_x":"117.179858","map_y":"39.105822","pointname":"南开区超级特训基地","pointaddress":"咸阳路海文考研南开特训基地","areaname":"南开区","areacode":"100012001004"},{"id":"377803","map_x":"117.100666","map_y":"39.101971","pointname":"西青区超级特训基地","pointaddress":"海文考研西青特训基地","areaname":"西青区","areacode":"100012001011"},{"id":"377802","map_x":"117.285553","map_y":"39.069156","pointname":"河西特训基地","pointaddress":"海文考研","areaname":"河西区","areacode":"100012001003"},{"id":"377801","map_x":"117.283866","map_y":"39.066895","pointname":"天津财经大学教学中心","pointaddress":"珠江道天津财经大学","areaname":"河西区","areacode":"100012001003"},{"id":"377800","map_x":"117.30315","map_y":"39.064662","pointname":"天津职业技术师范大学","pointaddress":"大沽南路天津职业技术师范大学","areaname":"津南区","areacode":"100012001012"},{"id":"377799","map_x":"117.279176","map_y":"39.074812","pointname":"天津科技大学教学中心","pointaddress":"大沽南路天津科技大学","areaname":"河西区","areacode":"100012001003"},{"id":"377798","map_x":"117.711692","map_y":"39.093832","pointname":"滨海校区","pointaddress":"第十三大街与黄海路交叉口天津科技大学","areaname":"滨海新区","areacode":"100012001017"},{"id":"377797","map_x":"117.359351","map_y":"39.113163","pointname":"中国民航大学教学中心","pointaddress":"津北公路中国民航大学","areaname":"东丽区","areacode":"100012001010"},{"id":"377796","map_x":"117.101964","map_y":"39.101174","pointname":"天津城建大学教学中心","pointaddress":"津静路天津城建大学","areaname":"西青区","areacode":"100012001011"},{"id":"377795","map_x":"117.131105","map_y":"39.187137","pointname":"天津商业大学教学中心","pointaddress":"光荣道天津商业大学海文考研","areaname":"北辰区","areacode":"100012001013"},{"id":"377794","map_x":"117.145701","map_y":"39.068169","pointname":"天津理工大学教学中心","pointaddress":"天津理工大学校内海文考研VIP教学中心","areaname":"西青区","areacode":"100012001011"},{"id":"377793","map_x":"117.122823","map_y":"39.070694","pointname":"天津工业大学教学中心","pointaddress":"天津工业大学艺缘活动中心","areaname":"西青区","areacode":"100012001011"},{"id":"377792","map_x":"117.212825","map_y":"39.125372","pointname":"海文考研和平校区","pointaddress":"新华路166号海珠大厦","areaname":"和平区","areacode":"100012001001"},{"id":"377791","map_x":"117.402505","map_y":"39.551544","pointname":"宝坻大学城教学中心","pointaddress":"北京科技大学天津学院小南门商业街海文考研","areaname":"宝坻区","areacode":"100012001015"},]; //补充其他行政区分组 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(); } }