新增logo
This commit is contained in:
parent
539b1c030b
commit
aa16ce1234
|
|
@ -274,7 +274,7 @@ create table sys_user_online (
|
|||
) engine=innodb default charset=utf8;
|
||||
|
||||
insert into sys_user_online(sessionId, login_name, dept_name, ipaddr, browser, os, status)
|
||||
values('c3b252c3-2229-4be4-a5f7-7aba4b0c314c', 'admin', '开发部门', '127.0.0.1', 'Chrome 45', 'Windows 7', 'on_line');
|
||||
values('c3b252c3-2229-4be4-a5f7-7aba4b0c314c', 'admin', '研发部门', '127.0.0.1', 'Chrome 45', 'Windows 7', 'on_line');
|
||||
|
||||
-- 用户部门表
|
||||
SELECT * FROM sys_dept;
|
||||
|
|
|
|||
|
|
@ -192,6 +192,8 @@ public class ShiroConfig
|
|||
// Shiro连接约束配置,即过滤链的定义
|
||||
LinkedHashMap<String, String> filterChainDefinitionMap = new LinkedHashMap<>();
|
||||
// 对静态资源设置匿名访问
|
||||
filterChainDefinitionMap.put("/favicon.ico**", "anon");
|
||||
filterChainDefinitionMap.put("/ruoyi.png**", "anon");
|
||||
filterChainDefinitionMap.put("/css/**", "anon");
|
||||
filterChainDefinitionMap.put("/docs/**", "anon");
|
||||
filterChainDefinitionMap.put("/fonts/**", "anon");
|
||||
|
|
|
|||
|
|
@ -42,6 +42,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="pageInfoQueryUserOnline" parameterType="PageUtilEntity" resultMap="UserOnlineResult">
|
||||
select * from sys_user_online
|
||||
<where>
|
||||
<if test="searchValue != null">
|
||||
AND login_name = #{searchValue}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByOnlineExpired" parameterType="String" resultMap="UserOnlineResult">
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
html{height:100%}body.signin{height:auto;background:url(../img/login-background.jpg) no-repeat center fixed;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;color:rgba(255,255,255,.95)}.signinpanel{width:750px;margin:10% auto 0}.signinpanel .logopanel{float:none;width:auto;padding:0;background:0 0}.signinpanel .signin-info ul{list-style:none;padding:0;margin:20px 0}.signinpanel .form-control{display:block;margin-top:15px}.signinpanel .uname{background:#fff url(../img/user.png) no-repeat 95% center;color:#333}.signinpanel .pword{background:#fff url(../img/locked.png) no-repeat 95% center;color:#333}.signinpanel .btn{margin-top:15px}.signinpanel form{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);-moz-box-shadow:0 3px 0 rgba(12,12,12,.03);-webkit-box-shadow:0 3px 0 rgba(12,12,12,.03);box-shadow:0 3px 0 rgba(12,12,12,.03);-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;padding:30px}.signup-footer{border-top:solid 1px rgba(255,255,255,.3);margin:20px 0;padding-top:15px}@media screen and (max-width:768px){.signinpanel,.signuppanel{margin:0 auto;width:420px!important;padding:20px}.signinpanel form{margin-top:20px}.signup-footer,.signuppanel .form-control{margin-bottom:10px}.signup-footer .pull-left,.signup-footer .pull-right{float:none!important;text-align:center}.signinpanel .signin-info ul{display:none}}@media screen and (max-width:320px){.signinpanel,.signuppanel{margin:0 20px;width:auto}}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
|
|
@ -1,87 +1,62 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<meta name="ctx" th:content="${#httpServletRequest.getContextPath()}"/>
|
||||
<title>若依管理系统</title>
|
||||
|
||||
<title>若依管理系统 - 登录</title>
|
||||
<meta name="keywords" content="若依管理系统">
|
||||
<meta name="description" content="若依管理系统">
|
||||
<meta name="description" content="RuoYi">
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="/css/font-awesome.css" rel="stylesheet">
|
||||
<link href="/css/animate.css" rel="stylesheet">
|
||||
<link href="/css/style.css" rel="stylesheet">
|
||||
<link href="/css/login.css" rel="stylesheet">
|
||||
<link href="/css/style.min.css" rel="stylesheet">
|
||||
<link href="/css/login.min.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<meta http-equiv="refresh" content="0;ie.html"/>
|
||||
<meta http-equiv="refresh" content="0;ie.html" />
|
||||
<![endif]-->
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script>
|
||||
if (window.top !== window.self) {
|
||||
window.top.location = window.location;
|
||||
}
|
||||
if(window.top!==window.self){window.top.location=window.location};
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="signin">
|
||||
<div class="signinpanel">
|
||||
<div class="row">
|
||||
<div class="col-sm-7">
|
||||
<div class="signin-info">
|
||||
<div class="logopanel m-b">
|
||||
<h1>若依</h1>
|
||||
<div class="signinpanel">
|
||||
<div class="row">
|
||||
<div class="col-sm-7">
|
||||
<div class="signin-info">
|
||||
<div class="logopanel m-b">
|
||||
<h1><img alt="[ 若依 ]" src="/ruoyi.png"></h1>
|
||||
</div>
|
||||
<div class="m-b"></div>
|
||||
<h4>欢迎使用 <strong>若依 后台管理系统</strong></h4>
|
||||
<ul class="m-b">
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> SpringBoot</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Mybatis</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Shiro</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Thymeleaf</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> Bootstrap</li>
|
||||
</ul>
|
||||
<strong>还没有账号? <a href="#">立即注册»</a></strong>
|
||||
</div>
|
||||
<div class="m-b"></div>
|
||||
<h3>
|
||||
欢迎使用 <strong>若依管理系统</strong>
|
||||
</h3>
|
||||
<ul class="m-b">
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>springBoot</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>mybatis</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>shiro</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>thymeleaf</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>bootstrap</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<form id="signupForm">
|
||||
<h4 class="no-margins">登录:</h4>
|
||||
<p class="m-t-md">若依出品必属精品</p>
|
||||
<input type="text" name="username" class="form-control uname" placeholder="用户名" value="admin" />
|
||||
<input type="password" name="password" class="form-control pword m-b" placeholder="密码" value="admin123" />
|
||||
<a href="#">忘记密码了?</a>
|
||||
<button class="btn btn-success btn-block">登录</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<form id="signupForm">
|
||||
<h3 class="text-center">用户登录</h3>
|
||||
<p class="m-t-md text-center">欢迎登录若依后台管理系统</p>
|
||||
<input type="text" name="username" class="form-control uname" value="admin"/>
|
||||
<input type="password" name="password" class="form-control pword m-b" value="admin123"/>
|
||||
<button class="btn btn-login btn-block">登录</button>
|
||||
<!--按钮模块-->
|
||||
<div class="outside-login">
|
||||
<div class="outside-login-tit">
|
||||
<span>代码链接</span>
|
||||
</div>
|
||||
<div class="outside-login-cot">
|
||||
<a class="outside-login-btn wxoa actived oschina J-btnSwitchLoginType" target="_Blank"
|
||||
href="https://www.oschina.net/p/bootdo">
|
||||
<em><i class="fa fa-home"></i></em>
|
||||
<span>oschina主页</span>
|
||||
</a>
|
||||
<a class="outside-login-btn wxoa actived my J-btnSwitchLoginType" target="_Blank"
|
||||
href="https://gitee.com/y_project/RuoYi">
|
||||
<em><i class="fa fa-git-square"></i></em>
|
||||
<span>码云仓库</span>
|
||||
</a>
|
||||
<a class="outside-login-btn wxoa actived git J-btnSwitchLoginType" target="_Blank"
|
||||
href="https://gitee.com/y_project/RuoYi">
|
||||
<em><i class="fa fa-github"></i></em>
|
||||
<span>GitHub仓库</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="signup-footer">
|
||||
<div class="pull-left">
|
||||
© 2018 All Rights Reserved. RuoYi
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="signup-footer">
|
||||
<div class="pull-left">© 2018 All Rights Reserved. 若依
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
|
||||
<!-- 全局js -->
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,144 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
<meta name="ctx" th:content="${#httpServletRequest.getContextPath()}"/>
|
||||
<title>若依管理系统</title>
|
||||
<meta name="keywords" content="若依管理系统">
|
||||
<meta name="description" content="若依管理系统">
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="/css/font-awesome.css" rel="stylesheet">
|
||||
<link href="/css/animate.css" rel="stylesheet">
|
||||
<link href="/css/style.css" rel="stylesheet">
|
||||
<link href="/css/login.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<meta http-equiv="refresh" content="0;ie.html"/>
|
||||
<![endif]-->
|
||||
<link rel="shortcut icon" href="favicon.ico">
|
||||
<script>
|
||||
if (window.top !== window.self) {
|
||||
window.top.location = window.location;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="signin">
|
||||
<div class="signinpanel">
|
||||
<div class="row">
|
||||
<div class="col-sm-7">
|
||||
<div class="signin-info">
|
||||
<div class="logopanel m-b">
|
||||
<h1>若依</h1>
|
||||
</div>
|
||||
<div class="m-b"></div>
|
||||
<h3>
|
||||
欢迎使用 <strong>若依管理系统</strong>
|
||||
</h3>
|
||||
<ul class="m-b">
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>springBoot</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>mybatis</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>shiro</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>thymeleaf</li>
|
||||
<li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>bootstrap</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<form id="signupForm">
|
||||
<h3 class="text-center">用户登录</h3>
|
||||
<p class="m-t-md text-center">欢迎登录若依后台管理系统</p>
|
||||
<input type="text" name="username" class="form-control uname" value="admin"/>
|
||||
<input type="password" name="password" class="form-control pword m-b" value="admin123"/>
|
||||
<button class="btn btn-login btn-block">登录</button>
|
||||
<!--按钮模块-->
|
||||
<div class="outside-login">
|
||||
<div class="outside-login-tit">
|
||||
<span>代码链接</span>
|
||||
</div>
|
||||
<div class="outside-login-cot">
|
||||
<a class="outside-login-btn wxoa actived oschina J-btnSwitchLoginType" target="_Blank"
|
||||
href="https://www.oschina.net/p/bootdo">
|
||||
<em><i class="fa fa-home"></i></em>
|
||||
<span>oschina主页</span>
|
||||
</a>
|
||||
<a class="outside-login-btn wxoa actived my J-btnSwitchLoginType" target="_Blank"
|
||||
href="https://gitee.com/y_project/RuoYi">
|
||||
<em><i class="fa fa-git-square"></i></em>
|
||||
<span>码云仓库</span>
|
||||
</a>
|
||||
<a class="outside-login-btn wxoa actived git J-btnSwitchLoginType" target="_Blank"
|
||||
href="https://gitee.com/y_project/RuoYi">
|
||||
<em><i class="fa fa-github"></i></em>
|
||||
<span>GitHub仓库</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="signup-footer">
|
||||
<div class="pull-left">© 2018 All Rights Reserved. 若依
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script th:inline="javascript"> var ctx = [[@{/}]]; </script>
|
||||
<!-- 全局js -->
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/bootstrap.min.js"></script>
|
||||
<!-- 验证插件 -->
|
||||
<script src="/ajax/libs/validate/jquery.validate.min.js"></script>
|
||||
<script src="/ajax/libs/validate/messages_zh.min.js"></script>
|
||||
<script src="/ajax/libs/layer/layer.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
console.log(ctx);
|
||||
validateRule();
|
||||
});
|
||||
|
||||
$.validator.setDefaults({
|
||||
submitHandler: function() {
|
||||
login();
|
||||
}
|
||||
});
|
||||
|
||||
function login() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: ctx + "login",
|
||||
data: $('#signupForm').serialize(),
|
||||
success: function(r) {
|
||||
if (r.code == 0) {
|
||||
parent.location.href = '/index';
|
||||
} else {
|
||||
layer.msg(r.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function validateRule() {
|
||||
var icon = "<i class='fa fa-times-circle'></i> ";
|
||||
$("#signupForm").validate({
|
||||
rules: {
|
||||
username: {
|
||||
required: true
|
||||
},
|
||||
password: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
messages: {
|
||||
username: {
|
||||
required: icon + "请输入您的用户名",
|
||||
},
|
||||
password: {
|
||||
required: icon + "请输入您的密码",
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue