<!DOCTYPE html>
|
<html lang="zh-cn" xmlns:th=http://www.thymeleaf.org>
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta name="viewport"
|
content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta name="renderer" content="webkit">
|
<title>智慧粮库管理系统-登录</title>
|
<meta name="keywords" content="智慧粮库管理系统,智慧粮库管理平台">
|
<meta name="description"
|
content="专注于动力环境监控,智慧粮库,能源管理,环保数据采集,物联网网关等产品的研发和生产,提供国产化物联网解决方案">
|
<link rel="shortcut icon" th:href="@{/static/favicon.ico}"/>
|
|
<link rel="stylesheet" th:href="@{/static/plugins/layui/css/layui.css}"/>
|
<link rel="stylesheet" th:href="@{/static/admin/login/login2.css}"/>
|
|
<style type="text/css">
|
.login-yzm-btn {
|
width: 80px;
|
height: 38px;
|
margin-top: -20px;
|
}
|
|
.dis-none {
|
display: none;
|
}
|
|
.css-hand {
|
cursor: pointer
|
}
|
|
.compatible {
|
height: 25px;
|
border-radius: 3px;
|
padding: 0 5px;
|
}
|
|
/** 弹出框CSS**/
|
.mask {
|
background-color: rgba(0, 0, 0, 0.2);
|
width: 100%;
|
height: 100%;
|
position: fixed;
|
top: 0;
|
left: 0;
|
z-index: 999;
|
}
|
|
.prompt_box {
|
width: 400px;
|
height: 200px;
|
background: #ffffff;
|
border-radius: 6px;
|
position: fixed;
|
top: 25%;
|
left: 50%;
|
margin-left: -200px;
|
overflow: hidden;
|
}
|
|
.prompt_box .prompt_title {
|
height: 40px;
|
line-height: 40px;
|
padding-left: 20px;
|
border-bottom: 2px solid #53adce;
|
background: #e6e6e6;
|
position: relative;
|
}
|
|
.prompt_box .prompt_title h3 {
|
font-size: 16px;
|
color: #333333;
|
margin-top: 0;
|
}
|
|
.prompt_box .prompt_cont {
|
position: relative;
|
height: 158px;
|
}
|
|
.prompt_box .prompt_cont .prompt_text {
|
line-height: 140px;
|
padding-left: 100px;
|
font-size: 16px;
|
}
|
|
.prompt_box .prompt_cont .prompt_sure {
|
position: absolute;
|
right: 20px;
|
bottom: 34px;
|
width: 80px;
|
height: 36px;
|
background: #53adce;
|
border-radius: 5px;
|
color: #ffffff;
|
font-size: 14px;
|
line-height: 36px;
|
text-align: center;
|
cursor: pointer;
|
}
|
|
.hide {
|
display: none;
|
}
|
|
.show {
|
display: block;
|
}
|
</style>
|
</head>
|
|
<body class="login-body login2-body">
|
<div class="i-container">
|
<!--企业lOGO-->
|
<div class="login-logo">
|
<img th:src="${logoTitle}"/>
|
</div>
|
|
<!--手机APP-->
|
<div class="login2-ewm css-hand" onClick="showCode()">
|
<h3>
|
<i class="i-icon"><img
|
th:src="@{/static/images/login-app-code.png}"/></i>下载APP
|
</h3>
|
</div>
|
|
<div class="login2-ewm-img dis-none" id="ewm">
|
<img th:src="@{/static/images/login-app-code.png}"/>
|
</div>
|
|
<h1 class="login-tit">
|
<img th:src="@{/static/images/login-titimg2.png}"/>
|
</h1>
|
|
<div class="layui-row login-con">
|
<div class="layui-col-md7 login-left">
|
<div class="login-leftbox">
|
<img th:src="@{/static/images/login2-left.gif}"
|
class="login-leftimg"/>
|
<img
|
th:src="@{/static/images/login2-left-bg.png}" class="login-leftbg"/>
|
</div>
|
</div>
|
<div class="layui-col-md5 login-right">
|
<div class="login-box">
|
|
<div class="layui-tab">
|
|
<h3 class="login2-box-tit">
|
<img th:src="@{/static/images/login2-box-tit.png}"/>
|
</h3>
|
|
<div class="layui-tab-content">
|
|
<div class="layui-tab-item layui-show">
|
<div class="login-tab-2">
|
|
<form class="layui-form" method="post" th:attr="action=@{/login-check}">
|
|
<div class="layui-form-item">
|
<label class="layui-form-label"> <i class="i-icon"><img
|
th:src="@{/static/images/icon-user.png}"/></i>
|
</label>
|
<div class="layui-input-block">
|
<input type="text" name="username_" id="username_" required
|
lay-verify="required" placeholder="请在此输入用户名"
|
autocomplete="off" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-form-item">
|
<label class="layui-form-label"> <i class="i-icon"><img
|
th:src="@{/static/images/icon-pw.png}"/></i>
|
</label>
|
<div class="layui-input-block">
|
<input type="password" name="password_" required
|
lay-verify="required" placeholder="请在此输入密码"
|
autocomplete="off" class="layui-input">
|
</div>
|
</div>
|
<div class="layui-form-item">
|
<label class="layui-form-label"> <i class="i-icon"><img
|
th:src="@{/static/images/icon-yzm.png}"/></i>
|
</label>
|
<div class="layui-input-block">
|
<input type="text" name="captcha_" value="" required
|
lay-verify="required"
|
placeholder="请在此输入验证码"
|
autocomplete="off" class="layui-input"> <a href="#"
|
class="login-yzm-btn"><img
|
class="login-yzm-btn"
|
th:src="@{generate.captcha.action}"
|
onclick="javascript:this.src='generate.captcha.action?t='+Math.random()"/></a>
|
</div>
|
</div>
|
|
<div class="layui-input-block login-btnbox">
|
<button class="layui-btn login-btn" lay-submit
|
lay-filter="formDemo">登录
|
</button>
|
</div>
|
|
</form>
|
|
</div>
|
<!--login-tab-2 end-->
|
</div>
|
</div>
|
</div>
|
|
</div>
|
<!--login-box end-->
|
</div>
|
</div>
|
|
<div class="login-copy">
|
<p>Copyright © 2019-2023 智慧粮库管理系统 | 智慧粮库信息化建设整体解决方案</p>
|
</div>
|
|
<!-- 弹出框 -->
|
<div class="mask hide">
|
<div class="prompt_box">
|
<div class="prompt_title">
|
<h3>系统提示</h3>
|
<!-- <span class="prompt_cancel"></span> -->
|
</div>
|
<div class="prompt_cont">
|
<p class="prompt_text">输入有误,请重新输入!</p>
|
<span class="prompt_sure">确定</span>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
<!--i-container end-->
|
|
<script th:src="@{/static/js/jquery.min.js}"></script>
|
|
<script th:inline="javascript">
|
//异常信息
|
var tag = [[${TAG}]];
|
var username = [[${USERNAME}]];
|
|
window.onload = function () {
|
var boxH = $(".login-left").height();
|
$(".login-right").height(boxH);
|
$(window).resize(function () {
|
var boxH = $(".login-left").height();
|
$(".login-right").height(boxH);
|
})
|
if (tag) {
|
showMsg(tag);
|
$("#username_").val(username);
|
}
|
};
|
|
function showCode() {
|
$("#ewm").css("display", "block");
|
}
|
|
//弹出框操作
|
$('.prompt_sure,.prompt_cancel').click(function () {
|
$('.mask').addClass('hide');
|
});
|
|
function showMsg(msg) {
|
$('.prompt_text').text(msg);
|
$('.mask').removeClass('hide');
|
};
|
</script>
|
</body>
|
|
</html>
|