-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
50 lines (50 loc) · 1.95 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>极速培训</title>
</head>
<body>
<div style="height: 100%;background-color: #fff;z-index: 20;position: absolute;" id="qidongyediv">
<div style="height: 85%;"><img src="http://www.jisupeixun.com/Content/img2_0/index/index_new1.png" style="height: 99%;width: 100%;" id="qydongyeimg" /></div>
<div><center id="qydongyeorg">北京新启科技</center></div>
</div>
</body>
<script src="res/js/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type='text/javascript' src="res/jisupeixun.js"></script>
<script type="text/javascript">
$(function () {
var orgid = GetlocalStorage("UserEnterpriseOrgID");
alert(orgid);
if(orgid != undefined){
getAjax(javaserver + "/advertisement/findAppAdvert",{orgid: orgid, number:5}, function (data) {
data = strToJson(data);
var huanyingad = ""; //欢迎页img url
if(data.errorcode == "0"){
$.each(data.datas, function (i, item) {
if(item.advertisementPosition == "1"){ //欢迎页
huanyingad = item.advertisementPath;
}
});
if(huanyingad != ""){
$("#qidongyediv").show();
$("#qydongyeimg").attr("src", huanyingad);
$("#huanyingad").text(getUserInfo().organization_Name);
setTimeout(function(){
$("#qidongyediv").hide();
window.location.href = "html/home.html";
}, 3000);
}
}
}, function (err) {
$.hideIndicator();
$.toast('请求错误!');
}, "json", "post", false);
}else {
window.location.href = "login.html";
}
});
</script>
</html>