function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"340176","map_x":"113.95561","map_y":"22.523802","pointname":"南山深圳湾校区","pointaddress":"滨海大道3001号华润深圳湾体育中心春茧体育馆","areaname":"南山区","areacode":"100044003005"},{"id":"340175","map_x":"114.118561","map_y":"22.545864","pointname":"罗湖万象城校区","pointaddress":"宝安南路1036鼎丰大厦","areaname":"罗湖区","areacode":"100044003003"},{"id":"340174","map_x":"114.033761","map_y":"22.655784","pointname":"龙华壹方天地校区","pointaddress":"人民路壹方天地","areaname":"龙华新区","areacode":"100044003001"},{"id":"340173","map_x":"114.033749","map_y":"22.631557","pointname":"龙华红山校区","pointaddress":"龙华民塘路与旺民街交叉口安居尚龙苑","areaname":"龙华新区","areacode":"100044003001"},{"id":"340172","map_x":"114.083908","map_y":"22.744351","pointname":"观澜湖新城校区","pointaddress":"高尔夫大道1号观澜湖新城","areaname":"龙华新区","areacode":"100044003001"},{"id":"340171","map_x":"114.018206","map_y":"22.553917","pointname":"福田深国投校区","pointaddress":"农林路与侨香路交汇处","areaname":"福田区","areacode":"100044003004"},{"id":"340170","map_x":"114.042823","map_y":"22.559021","pointname":"福田景田校区","pointaddress":"香梅路2006号天健蜜堂","areaname":"福田区","areacode":"100044003004"},{"id":"340169","map_x":"114.137219","map_y":"22.597564","pointname":"布吉礼信汇校区","pointaddress":"布吉万象汇对面礼信汇","areaname":"龙岗区","areacode":"100044003007"},{"id":"340168","map_x":"114.239057","map_y":"22.727668","pointname":"龙岗中心城校区","pointaddress":"龙城街道禾田路","areaname":"龙岗区","areacode":"100044003007"},]; //补充其他行政区分组 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(`