function loadother(){ if(typeof(campusid) != "undefined" && !isNaN(campusid)) { var data_info = [{"id":"112483","map_x":"102.691839","map_y":"25.006479","pointname":"滇池路校区","pointaddress":"昆明市西山区福海街道十里长街凯旋花园","areaname":"西山区","areacode":"100053001012"},{"id":"112478","map_x":"102.741905","map_y":"25.088508","pointname":"北辰财富校区","pointaddress":"昆明市盘龙区北辰财富中心D1栋英π成长中心","areaname":"盘龙区","areacode":"100053001003"},{"id":"112481","map_x":"102.713768","map_y":"25.041651","pointname":"顺城校区","pointaddress":"昆明市五华区顺城购物中心","areaname":"五华区","areacode":"100053001002"},{"id":"112487","map_x":"102.755478","map_y":"24.960003","pointname":"世纪城校区","pointaddress":"昆明市官渡区银海·清溪渡","areaname":"官渡区","areacode":"100053001011"},{"id":"112479","map_x":"102.757503","map_y":"25.091537","pointname":"云南映象校区","pointaddress":"昆明市盘龙区霖雨路云南映象城市公园广场","areaname":"盘龙区","areacode":"100053001003"},{"id":"112486","map_x":"102.682892","map_y":"24.991269","pointname":"1903校区","pointaddress":"昆明市西山区公园1903金格·奥特莱斯","areaname":"西山区","areacode":"100053001012"},{"id":"112485","map_x":"102.713089","map_y":"25.002785","pointname":"润城校区","pointaddress":"昆明市西山区日新中路润城第二大道","areaname":"西山区","areacode":"100053001012"},{"id":"112488","map_x":"102.833188","map_y":"24.894323","pointname":"呈贡校区","pointaddress":"昆明市呈贡区呈贡吾悦广场1号中庭","areaname":"呈贡县","areacode":"100053001021"},{"id":"112489","map_x":"102.738608","map_y":"25.107669","pointname":"和谐校区","pointaddress":"昆明市五华区小康大道和谐广场","areaname":"五华区","areacode":"100053001002"},{"id":"112490","map_x":"102.708486","map_y":"25.014515","pointname":"金地校区","pointaddress":"昆明市西山区坤盛路与金瑞路交汇处金地中心","areaname":"西山区","areacode":"100053001012"},]; //补充其他行政区分组 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(`