$(document).ready(function() { $(".onlogin .headnavbtn li").eq(0).addClass("navcurrent"); var id = $.cookie('orgId'); if(id == "" || id == null || id == "null"){ location.href = "cmp-settled-log.html"; } /*获取企业未认证的用户*/ function UnauthorizedUser() { $.ajax({ url: "/ajax/professor/qaOrgAuth", type: "GET", timeout: 10000, dataType: "json", data: { "orgId": id, "orgAuth": 0 }, success: function(data, textState) { if(data.success) { console.log(data); var $data = data.data; UnauthorizedUserHtml($data, "#UnauthorizedUserList", 1); } }, error: function(XMLHttpRequest, textStats, errorThrown) { $.MsgBox.Alert('提示', '服务器请求失败') } }) } UnauthorizedUser(); /*企业未认证用户html*/ function UnauthorizedUserHtml() { var arr = new Array(); for(var i = 0; i < arguments[0].length; i++) { var img, tiof, deor, otex; if(arguments[0][i].hasHeadImage) { img = "/images/head/" + arguments[0][i].id + "_l.jpg"; } else { img = "../images/default-photo.jpg" } if(arguments[0][i].title) { if(arguments[0][i].office) { tiof = arguments[0][i].title + " ," + arguments[0][i].office; } else { tiof = arguments[0][i].title; } } else { if(arguments[0][i].office) { tiof = arguments[0][i].office; } else { tiof = ""; } } if(arguments[0][i].department) { if(arguments[0][i].orgName) { deor = arguments[0][i].department + " ," + arguments[0][i].orgName; } else { deor = arguments[0][i].department; } } else { if(arguments[0][i].orgName) { deor = arguments[0][i].orgName; } else { deor = ""; } } if(arguments[2] == 1) { otex = "待认证"; } else { otex = "移除"; } var oString = "
" + arguments[0][i].name + "
" oString += "" + tiof + "
" oString += "" + deor + "
" oString += "