26 lines
636 B
JavaScript
26 lines
636 B
JavaScript
|
import { getPushButtonInfo } from "./orgApi/getPushButtonInfo.js";
|
||
|
import { drawPushButtonMarker } from "./marker/pushButtonMarker.js";
|
||
|
var schoolPushButtonList=[];
|
||
|
function showPushButtonInfo(){
|
||
|
getPushButtonInfo().then(res=>{
|
||
|
var code=res["data"]["code"];
|
||
|
if(code==0){
|
||
|
var data=res["data"]["data"];
|
||
|
if(data!=null){
|
||
|
schoolPushButtonList=res["data"]["data"];
|
||
|
}
|
||
|
}
|
||
|
$(".pushbutton_number").html(schoolPushButtonList.length);
|
||
|
//画marker
|
||
|
drawPushButtonMarker();
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export {
|
||
|
showPushButtonInfo,
|
||
|
schoolPushButtonList
|
||
|
}
|
||
|
|
||
|
|
||
|
|