199 lines
6.9 KiB
HTML
199 lines
6.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="renderer" content="webkit" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
<title>{:get_system_config('web','admin_title')}</title>
|
|
<link rel="stylesheet" href="{__METE__}/layui/css/layui.css?v={:get_system_config('web','version')}" media="all" />
|
|
<link rel="stylesheet" href="/static/assets/gougu/css/gougu.css">
|
|
<style type="text/css">
|
|
html,
|
|
body {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #eaf3ff;
|
|
}
|
|
|
|
#container {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 999;
|
|
color: #ffffff;
|
|
background: url({__IMG__}/bg2.png);
|
|
/* background: url({__IMG__}/bg.jpg); */
|
|
background-size: cover;
|
|
}
|
|
|
|
.login {
|
|
height: 100vh;
|
|
/* background-color: aqua; */
|
|
}
|
|
|
|
.m20 {
|
|
margin: 20px;
|
|
}
|
|
|
|
.mb40 {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.fl {
|
|
float: left;
|
|
}
|
|
|
|
.clear {
|
|
clear: both;
|
|
}
|
|
|
|
.login_l,
|
|
.login_r {
|
|
width: 50%;
|
|
height: 100%;
|
|
}
|
|
|
|
.login_l {
|
|
.logo {
|
|
height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
.login_r {
|
|
background-color: #fff;
|
|
opacity: .85;
|
|
display: grid;
|
|
justify-content: center;
|
|
align-items: center;
|
|
box-shadow: 0 0 20px 20px rgba(17, 17, 17, 0.3); /* 外发光效果 */
|
|
|
|
.login_content {
|
|
height: 500px;
|
|
|
|
.login_logo {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #000;
|
|
}
|
|
|
|
.login_main {
|
|
display: flex;
|
|
justify-content: center;
|
|
|
|
.captcha_img img {
|
|
width: 142px;
|
|
height: 38px;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.login_footer {
|
|
color: #252525;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<!-- 主体部分 -->
|
|
<div>
|
|
<div id="container">
|
|
<div class="login">
|
|
<div class="login_l fl">
|
|
<div class="logo">
|
|
<img src="{__IMG__}/logo-w.png" alt="" width="400">
|
|
</div>
|
|
</div>
|
|
<div class="login_r fl">
|
|
<div class="login_content">
|
|
<div class="login_logo mb40">
|
|
<h1>项目管理系统</h1>
|
|
</div>
|
|
<div class="login_main m20">
|
|
<!-- <p>请输入您的登陆信息</p> -->
|
|
<form class="layui-form" id="gougu-login">
|
|
<div class="layui-form-item">
|
|
<input type="text" name="username" lay-verify="required" value=""
|
|
placeholder="请输入账户" lay-reqText="请输入账户" autocomplete="off"
|
|
class="layui-input" />
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<input type="password" name="password" lay-verify="required" value=""
|
|
placeholder="请输入密码" lay-reqText="请输入密码" autocomplete="off"
|
|
class="layui-input" />
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<div class="layui-input-inline" style="width: 158px">
|
|
<input type="text" name="captcha" lay-verify="required" placeholder="验证码"
|
|
lay-reqText="请输入验证码" autocomplete="off" class="layui-input" />
|
|
</div>
|
|
<div class="layui-input-inline captcha_img"
|
|
style="width: 142px; height: 44px; margin-right: 0">
|
|
{:captcha_img()}
|
|
<input type="hidden" value="{:make_token()}" />
|
|
</div>
|
|
</div>
|
|
|
|
<button id="login-submit" class="layui-btn layui-btn-fluid layui-bg-cyan" lay-submit
|
|
lay-filter="login-submit">
|
|
登入系统
|
|
</button>
|
|
</form>
|
|
</div>
|
|
<div class="login_footer m20">
|
|
Copyright © 2022-2024 <a href="http://www.meteteme.com/" target='_blank'>江苏美天科技</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 脚本部分 -->
|
|
<script src="{__METE__}/layui/layui.js?v={:get_system_config('web','version')}"></script>
|
|
<script type="text/javascript">
|
|
layui.use(["form"], function () {
|
|
var form = layui.form,
|
|
$ = layui.$;
|
|
layer = layui.layer;
|
|
// 登录过期的时候,跳出ifram框架
|
|
if (top.location != self.location) top.location = self.location;
|
|
form.on("submit(login-submit)", function (data) {
|
|
$.ajax({
|
|
url: "/home/login/login_submit",
|
|
data: $("#gougu-login").serialize(),
|
|
type: "post",
|
|
async: false,
|
|
success: function (res) {
|
|
layer.msg(res.msg, { icon: 1, time: 1500, offset: "100px" });
|
|
if (res.code === 0) {
|
|
setTimeout(function () {
|
|
// parent.document.location.reload();
|
|
parent.document.location.href = "/";
|
|
}, 1500);
|
|
} else {
|
|
$('[alt="captcha"]').click();
|
|
}
|
|
},
|
|
});
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |