//鑾峰彇椤佃剼鑿滃崟 function getFooterMenu(){ $.ajax({ type : 'post', url : rootPath + '/index/getFooterMenu', beforeSend: function () { showLoad(); }, success : function(data) { initFooterMenu(data); }, error : function(XMLHttpRequest, textStatus, errorThrown) { if(errorThrown == "Forbidden" || XMLHttpRequest.status == "403" || XMLHttpRequest.status == "404"){ layer.alert(ForbiddenMsg,{icon: 7},function(){ window.location.href = rootPath; }); }else{ layer.alert(errorThrown,{icon: 7},function(){ window.location.href = rootPath; }); } }, complete: function(XMLHttpRequest, textStatus) { closeLoad(); } }); } function initFooterMenu(data){ var menuTree = getTree(data, "-1"); var inner = ""; var targetBlank = ""; for(var i=0;i"; inner += "
"; if(menuTree[i]["child"].length > 0){ for(var j=0;j"+menuTree[i]["child"][j]["F_NAME"]+""; } } inner += "
"; inner += ""; } document.getElementById("footerUl").innerHTML = inner; } //鑾峰彇椤佃剼淇℃伅 function getFooterInfo(){ $.ajax({ type : 'post', url : rootPath + '/index/getFooterInfo', success : function(data) { initFooterInfo(data); }, error : function(XMLHttpRequest, textStatus, errorThrown) { if(errorThrown == "Forbidden" || XMLHttpRequest.status == "403" || XMLHttpRequest.status == "404"){ layer.alert(ForbiddenMsg,{icon: 7},function(){ window.location.href = rootPath; }); }else{ layer.alert(errorThrown,{icon: 7},function(){ window.location.href = rootPath; }); } } }); } function initFooterInfo(data){ $("#companyaddr").html(data.addr); $("#companytel").html(data.tel); }