2020-04-17 14:32:22 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
|
|
<title>NAS</title>
|
|
|
|
<link rel="stylesheet" href="/layui/css/layui.css">
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="layui-layout layui-layout-admin">
|
|
|
|
<div id="header"></div>
|
|
|
|
<div class="layui-body" style="left: 200px;">
|
|
|
|
<div id="side"></div>
|
2020-05-04 03:26:52 +08:00
|
|
|
<blockquote class="layui-elem-quote"><span id="ip">当前IP:</span></blockquote>
|
2020-04-17 14:32:22 +08:00
|
|
|
<div id="footer"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="/layui/layui.js"></script>
|
|
|
|
<script src="/js/jquery-3.2.1.js"></script>
|
|
|
|
<script>
|
2020-05-04 03:26:52 +08:00
|
|
|
$.get("/login/check.do", function (data) {
|
|
|
|
let json = JSON.parse(data);
|
|
|
|
if (json.code != 0) {
|
|
|
|
window.location.href = "/"
|
|
|
|
}
|
|
|
|
})
|
2020-04-17 14:32:22 +08:00
|
|
|
layui.use(['layer', 'form', 'element'], function () {
|
|
|
|
var layer = layui.layer
|
|
|
|
, form = layui.form;
|
|
|
|
|
|
|
|
});
|
|
|
|
$.ajax({ cache: false })
|
|
|
|
$('#header').load("/html/header.html");
|
|
|
|
$('#footer').load("/html/footer.html");
|
|
|
|
$('#side').load("/html/body/nas/side.html");
|
2020-05-04 03:26:52 +08:00
|
|
|
$.post("/nas/getIp.do", function (data) {
|
|
|
|
try {
|
|
|
|
var json = JSON.parse(data);
|
|
|
|
} catch (error) {
|
|
|
|
window.location.href = "/"
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if (json.code != 0) {
|
2020-04-17 14:32:22 +08:00
|
|
|
$('#ip').html(json.msg);
|
2020-05-04 03:26:52 +08:00
|
|
|
} else {
|
|
|
|
$('#ip').html("当前服务器IP:" + json.data);
|
2020-04-17 14:32:22 +08:00
|
|
|
}
|
|
|
|
})
|
2020-05-04 03:26:52 +08:00
|
|
|
|
2020-04-17 14:32:22 +08:00
|
|
|
</script>
|
|
|
|
<style>
|
2020-05-04 03:26:52 +08:00
|
|
|
#icon {
|
2020-04-17 14:32:22 +08:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
.body {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|