function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"434779","map_x":"120.536714","map_y":"31.375178","pointname":"永旺校区","pointaddress":"城际路19号永旺梦乐城","areaname":"高新区","areacode":"100032005001"},{"id":"434778","map_x":"120.613289","map_y":"31.407164","pointname":"大悦校区","pointaddress":"大悦春风里","areaname":"相城区","areacode":"100032005007"},{"id":"434777","map_x":"120.642492","map_y":"31.185556","pointname":"新湖校区","pointaddress":"江凌街道新湖明珠城大公馆","areaname":"吴江市","areacode":"100032005084"},{"id":"434776","map_x":"120.288735","map_y":"31.51854","pointname":"无锡校区","pointaddress":"万象城","areaname":"高新区","areacode":"100032005001"},{"id":"434775","map_x":"120.62288","map_y":"31.226819","pointname":"苏悦汇校区","pointaddress":"苏悦汇商场","areaname":"吴中区","areacode":"100032005006"},{"id":"434774","map_x":"120.604519","map_y":"31.270665","pointname":"世茂校区","pointaddress":"宝带西路世茂生活广场","areaname":"吴中区","areacode":"100032005006"},{"id":"434773","map_x":"120.622656","map_y":"31.143603","pointname":"吾悦校区","pointaddress":"吾悦广场","areaname":"吴江市","areacode":"100032005084"},{"id":"434772","map_x":"120.734426","map_y":"31.31952","pointname":"湖东校区","pointaddress":"湖东邻里中心肯德基","areaname":"工业园区","areacode":"100032005008"},{"id":"434771","map_x":"120.603662","map_y":"31.296091","pointname":"龙湖校区","pointaddress":"劳动路777号胥江龙湖南馆","areaname":"姑苏区","areacode":"100032005002"},{"id":"434770","map_x":"120.731224","map_y":"31.33353","pointname":"景城校区","pointaddress":"九华路65号景城邻里中心","areaname":"工业园区","areacode":"100032005008"},{"id":"434769","map_x":"120.678601","map_y":"31.288715","pointname":"双湖校区","pointaddress":"娄葑街道企鸿路18号双湖广场","areaname":"吴中区","areacode":"100032005006"},{"id":"434767","map_x":"120.613298","map_y":"31.367494","pointname":"繁花校区","pointaddress":"元和街道繁花中心","areaname":"相城区","areacode":"100032005007"},{"id":"434766","map_x":"120.556779","map_y":"31.306067","pointname":"绿宝校区","pointaddress":"绿宝广场6","areaname":"高新区","areacode":"100032005001"},{"id":"434765","map_x":"120.93379","map_y":"31.387479","pointname":"昆山校区","pointaddress":"万象汇万象路金街","areaname":"昆山市","areacode":"100032005083"},{"id":"434764","map_x":"120.63823","map_y":"30.90386","pointname":"盛泽校区","pointaddress":"盛泽镇国贸中心","areaname":"吴江市","areacode":"100032005084"},{"id":"434763","map_x":"120.620678","map_y":"31.347641","pointname":"万达校区","pointaddress":"人民路3188号平江万达商场","areaname":"姑苏区","areacode":"100032005002"},{"id":"434762","map_x":"120.761914","map_y":"31.321827","pointname":"兆佳巷校区","pointaddress":"兆佳巷邻里中心","areaname":"工业园区","areacode":"100032005008"},{"id":"434761","map_x":"120.62255","map_y":"31.226914","pointname":"大运城校区","pointaddress":"大运城购物中心","areaname":"吴中区","areacode":"100032005006"},{"id":"434760","map_x":"120.637577","map_y":"31.420271","pointname":"高铁校区","pointaddress":"北河泾街道相城大道3188号高铁吾悦广场","areaname":"相城区","areacode":"100032005007"},{"id":"434759","map_x":"120.659512","map_y":"31.310392","pointname":"万科校区","pointaddress":"中新大道西229号万科美好广场","areaname":"工业园区","areacode":"100032005008"},{"id":"434758","map_x":"120.651803","map_y":"31.136243","pointname":"万宝校区","pointaddress":"松陵街道中山南路1088号万宝财富商业广场10号金街","areaname":"吴江市","areacode":"100032005084"},]; //补充其他行政区分组 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(); } }