var isLeader = false, level, docCode = '', docInfo; var request = getRequest(), target_url = request.target_url $(function(){ var height = window.innerHeight; $("#content-main").css("height", height-51+"px"); //获取医生基本信息 getDoctorInfo(); }); function getDoctorInfo(){ APIService.getDoctorInfo().then(function(res){ if(res.status == 200){ docInfo = res.data; docCode = docInfo.code; isLeader = docInfo.isLeader == '1' ? true : false; level = docInfo.level; window.localStorage.setItem('docInfo', JSON.stringify(docInfo)); if(isLeader){ $("#consultMenu").removeClass("hidden"); } //先获取团队信息显示 getTeamInfo(); }else{ showWarningMsg(res.msg) } }) } function getTeamInfo(){ APIService.getTeamInfo(docCode).then(function(res){ if(res.status == 200){ var manageTeams = '', orderTeams = ''; var isLeader2 = false; if(level == 3){ //健管师,则续方订单中需要加上额外的两个菜单 orderTeams = '