function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"79378","map_x":"114.064808","map_y":"22.63713","pointname":"坂田校区","pointaddress":"坂田街道长发路坂田集团商务中心","areaname":"龙岗区","areacode":"100044003007"},{"id":"74220","map_x":"113.854432","map_y":"22.606576","pointname":"固戍校区","pointaddress":"深圳市宝安区西乡街道固戍二路新中泰商务大厦","areaname":"宝安区","areacode":"100044003006"},{"id":"74219","map_x":"113.961955","map_y":"22.585591","pointname":"西丽校区","pointaddress":"深圳市南山区西丽街道众冠西郡园女人世界","areaname":"南山区","areacode":"100044003005"},{"id":"74217","map_x":"114.000661","map_y":"22.68283","pointname":"大浪校区","pointaddress":"深圳市龙华新区大浪商业中心","areaname":"龙华新区","areacode":"100044003001"},{"id":"74216","map_x":"114.210567","map_y":"22.648283","pointname":"龙岗校区","pointaddress":"深圳龙岗横岗街道力嘉路108号","areaname":"龙岗区","areacode":"100044003007"},{"id":"74215","map_x":"113.835269","map_y":"22.732572","pointname":"宝安校区","pointaddress":"深圳宝安沙井街道新沙路267号","areaname":"宝安区","areacode":"100044003006"},{"id":"74214","map_x":"114.123057","map_y":"22.546511","pointname":"罗湖校区","pointaddress":"南湖街道建设路2016号南方证券大厦","areaname":"罗湖区","areacode":"100044003003"},{"id":"74213","map_x":"114.048863","map_y":"22.671992","pointname":"龙华校区","pointaddress":"龙华大道2229号","areaname":"龙华新区","areacode":"100044003001"},{"id":"74212","map_x":"113.975566","map_y":"22.546142","pointname":"南山校区","pointaddress":"深圳市南山区白石洲深业沙河金三角大厦","areaname":"南山区","areacode":"100044003005"},]; //补充其他行政区分组 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(`