-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex2.html
More file actions
66 lines (55 loc) · 1.66 KB
/
index2.html
File metadata and controls
66 lines (55 loc) · 1.66 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>神农集团</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--图标-->
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<!--布局框架-->
<link rel="stylesheet" type="text/css" href="css/util.css">
<!--主要样式-->
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<div>
欢迎来到神农集团首页
</div>
<script src="js/jquery.min.js"></script>
<script src="js/startup.js"></script>
<script src="js/axios.js"></script>
<script src="js/request.js"></script>
<script>
var param = {
};
var method = {
init: function () {
method.eventBind();
method.getUserInfo();
},
eventBind: function () {
},
getUserInfo: function () {
axios({
method: "GET",
url: urlConfig.identityUrl + "/me",
headers: {
'Content-Type': 'application/json'
}
}).then(function (response) {
var res = response.data;
if(!res.isError){
location.href = "https://ynsnjt.com/Home/Intro";
}
else{
}
}).catch(function (err) {
});
}
};
$(document).ready(function () {
method.init();
});
</script>
</body>
</html>