已废弃
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

126 lines
4.3 KiB

<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>后台管理</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="/static/lib/layui-v2.8.6/css/layui.css" media="all">
<link rel="stylesheet" href="/static/lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
<link rel="stylesheet" href="/static/css/public.css">
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<style>
.download{
text-align: center;
color: #888;
margin-top: 30px;
}
</style>
<div class="layui-container">
<div class="admin-login-background">
<div class="layui-form login-form">
<form class="layui-form layui-form-pane" action="">
<div style="text-align: center" onclick="showInfo()">
<img th:attr="src=${userInfo.getIcon()}" alt="头像" class="userInfo_icon">
</div>
<div style="text-align: center;margin-top: 20px">
<span id="number" th:text="${userInfo.getNumber()}" style="font-size: x-large"></span>
</div>
<div style="text-align: center;margin-top: 20px">
<span id="maindeparmentname" th:text="${userInfo.getMaindeparmentname()}"
style="font-size: x-large"></span>
</div>
<div style="text-align: center;margin-top: 20px">
<span id="name" th:text="${userInfo.getName()}" style="font-size: x-large"></span>
</div>
<div class="layui-form-item" style="margin-top: 20%">
<button class="layui-btn layui-btn layui-btn-normal layui-btn-fluid" onclick="loginOut()">退出
</button>
</div>
<div class="download" onclick="downLoadHelpDocument()" >帮助文档</div>
</form>
</div>
</div>
</div>
<script src="/static/lib/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
<script src="/static/lib/layui-v2.8.6/layui.js" charset="utf-8"></script>
<script>
function loginOut() {
}
function showInfo() {
}
function downLoadHelpDocument(){
}
layui.use(['layer', 'form'], function () {
var form = layui.form,
$ = layui.jquery,
layer = layui.layer;
loginOut = function () {
$.ajax({
url: "/loginOut",
type: 'get',
dataType: 'json',
contentType: "application/json;charset=utf-8",
beforeSend: function () {
this.layerIndex = layer.load(0, {shade: [0.5, '#393D49']});
},
success: function (data) {
layer.close(this.layerIndex);
layer.msg(data.statusInfo.message, function () {
window.location = '/login';
});
}
});
};
showInfo = function () {
layer.open({
type: 2,
title: '个人信息',
skin: 'layui-layer-rim',
maxmin: true,
shadeClose: true, //点击遮罩关闭层
area: ['100%', '100%'],
content: '/account_look',
move: '.layui-layer-title',
fixed: false,
success: function (layero, index) {
var children = layero.children();
var content = $(children[1]);
var iframeChildren = $(content.children());
content.css('height', '100%');
iframeChildren.css('height', '100%');
}
})
}
downLoadHelpDocument = function () {
window.open("/download/helpDocumentDownload", "_self");
}
});
</script>
</body>
</html>