鼠笼管理系统
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.
 
 
 
 

107 lines
4.1 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>登入</title>
<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">
<link rel="stylesheet" href="/public/layui/css/layui.css" media="all">
<link rel="stylesheet" href="/public/style/admin.css" media="all">
<link rel="stylesheet" href="/public/style/login.css" media="all">
</head>
<style>
body{
width: 100%;
height: 100%;
background: url('../../public/style/loginbg.png');
background-size: 100% 100%;
background-repeat: no-repeat;
position: relative;
}
.layui-form{
border: 1px solid #fff;
border-radius: 10px;
background: #fff;
}
</style>
<body>
<div class="layadmin-user-login layadmin-user-display-show" style="display: none;">
<div class="layadmin-user-login-main">
<div class="layadmin-user-login-box layadmin-user-login-header">
<img src="/public/style/logo.png" width="200px" >
<p> </p>
</div>
<div class="layadmin-user-login-box layadmin-user-login-body layui-form">
<form class="layui-form" onsubmit="return login()">
<div class="layui-form-item">
<label class="layadmin-user-login-icon layui-icon layui-icon-username" for="LAY-user-login-username"></label>
<input type="text" name="name" id="LAY-user-login-username" lay-verify="required" placeholder="用户名" class="layui-input">
</div>
<div class="layui-form-item">
<label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
<input type="password" name="passwd" id="LAY-user-login-password" lay-verify="required" placeholder="密码" class="layui-input">
</div>
<div class="layui-form-item" style="margin-bottom: 20px;">
<input type="checkbox" name="remember" lay-skin="primary" title="记住密码">
<!-- <a href="forget.html" class="layadmin-user-jump-change layadmin-link" style="margin-top: 7px;">忘记密码?</a>-->
</div>
<div class="layui-form-item">
<button class="layui-btn layui-btn-fluid" lay-submit="" lay-filter="subdata">登 入</button>
</div>
</form>
</div>
</div>
<div class="layui-trans layadmin-user-login-footer">
<p>© All Rights Reserved</p>
</div>
<!--<div class="ladmin-user-login-theme">
<script type="text/html" template>
<ul>
<li data-theme=""><img src="{{ layui.setter.base }}style/res/bg-none.jpg"></li>
<li data-theme="#03152A" style="background-color: #03152A;"></li>
<li data-theme="#2E241B" style="background-color: #2E241B;"></li>
<li data-theme="#50314F" style="background-color: #50314F;"></li>
<li data-theme="#344058" style="background-color: #344058;"></li>
<li data-theme="#20222A" style="background-color: #20222A;"></li>
</ul>
</script>
</div>-->
</div>
<script src="/public/layui/layui.js" charset="utf-8"></script>
<script>
layui.use(['layedit','table','upload','element','form','layer'], function(){
var form = layui.form
,layer = layui.layer
,$ = layui.jquery;
//监听提交
form.on('submit(subdata)', function(data){
$.post('/admin_login/login',data.field,function(obj){
if(obj.status != 1){
return layer.msg(obj.msg);
}else{
//示范一个公告层
layer.msg('登入成功', {
offset: '15px'
,icon: 1
,time: 1000
}, function(){
location.href = '/admin_index/'; //后台主页
});
}
});
return false;
});
});
</script>
</body>
</html>