-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (104 loc) · 2.91 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="zh_CN" >
<head>
<meta charset="UTF-8">
<title>飞飞网盘系统菜单</title>
<link rel="shortcut icon" href="img/Logo.png" type="image/x-icon">
<link rel="stylesheet" href="./css/Menuestyle.css">
</head>
<body>
<div class='selector'>
<ul>
<li>
<input id='1' type="button">
<label for='1' id="directLocation">个人网盘</label>
</li>
<li>
<input id='3' type="button">
<label for='3' id="SystemCheck">服务器检测</label>
</li>
<li>
<input id='4' type="button">
<label for='4'>邮件系统</label>
</li>
<li>
<input id='5' type="button">
<label for='5' id="blog">个人博客</label>
</li>
<li>
<input id='6' type="button">
<label for='6'>退出登录</label>
</li>
</ul>
<button>点击</button>
</div>
<script src="./vendor/jquery/jquery.min.js"></script>
<script src="./js/Menuindex.js"></script>
<script type="text/javascript" src="js/layer.js"></script>
<script src="js/cookie_util.js"></script>
<script>
SUCCESS = 200;
ERROR = 400;
$(function(){
$("#directLocation").click(cloudiskInfo);
$("#blog").click(showBlog);
$("#websocket").click(showChat);
$("#SystemCheck").click(SystemCheck);
showUserInfo();
})
function SystemCheck(){
location.href = "/SystemInfoIndex.html";
}
function showChat(){
window.open ("http://192.168.0.105:9000");
}
function showBlog(){
window.open ("https://www.qtatelier.com");
}
function cloudiskInfo(){
location.href = "/Diskindex.html";
}
function showUserInfo() {
var id = cookie("id");
var data = {userId:id};
$.ajax({
url : "http://192.168.0.105:8080/api-system/role/detail",
headers: {
'token':cookie('token')
},
data : data,
type : "GET",
dataType : "json",
beforeSend:function(XMLHttpRequest){
loadingFlag = layer.msg('正在加载中,请稍候……', { icon: 16, shade: 0.01,shadeClose:false,time:60000 });
},
success : function(result) {
layer.close(loadingFlag);
if (result.code == SUCCESS) {
var info = result.data;
// $("#name").html(info.nickName);
//$("#image").attr("src", "head_image/" + info.imageName);
} else {
if (result.code == ERROR) {
layer.msg(result.msg)
}
}
},
error : function(e) {
if(cookie('token') == ""){
layer.msg("登陆已过期!",{icon:2});
setInterval(function(){
location.href = "login.html";
},2000);
}else{
layer.msg("当前服务器异常,请稍后重试",{icon:2});
setInterval(function(){
location.href = "login.html";
},2000);
}
}
})
}
</script>
</body>
</html>