Watch 2 Star 3 Fork 1

读心印 / qadmin

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
基于layui的后台模板 spread retract

Clone or download
login.html 2.20 KB
Copy Edit Web IDE Raw Blame History
读心印 authored 2019-06-28 12:00 . 自动提交_12:00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>管理员登陆 - QAdmin后台模板</title>
<link rel="stylesheet" href="./static/common/layui/css/layui.css">
<link rel="stylesheet" href="./static/admin/css/login.css">
<script src="./static/common/layui/layui.js"></script>
</head>
<body id="login">
<div class="login">
<h2>QAdmin后台模板</h2>
<form class="layui-form" method="post" target="_blank" action="">
<div class="layui-form-item">
<input type="username" name="user" placeholder="用户名" class="layui-input">
<i class="layui-icon input-icon">&#xe66f;</i>
</div>
<div class="layui-form-item">
<input type="password" name="pwd" placeholder="密码" class="layui-input">
<i class="layui-icon input-icon">&#xe673;</i>
</div>
<div class="layui-form-item">
<input type="checkbox" name="box" lay-skin="primary" title="记住密码" checked=""> <a class="back" href="javascript:;" style="margin-top: 10px">忘记密码</a>
</div>
<div class="layui-form-item">
<button style="width: 100%" class="layui-btn" lay-submit lay-filter="login">立即登录</button>
</div>
</form>
<script>
layui.use('form', function () {
var form = layui.form,
layer = layui.layer,
$ = layui.jquery;
layer.tips('无需输入,请点击登录进入后台<br/>这个tips可随时去除!', '.layui-btn', {
tips: [3, '#333'],
time: 0
});
form.on('submit(login)', function (data) {
sessionStorage.isLgoin = 1; //模拟登录状态,实际使用时请删除掉
layer.load({
shade: 0.5,
time: 0,
});
setTimeout(function () {
window.location.href = 'index.html';
},1000)
return false;
});
});
</script>
</div>
</body>
</html>

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/flash127/qadmin.git
git@gitee.com:flash127/qadmin.git
flash127
qadmin
qadmin
master

Help Search