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>
<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>
<body id="login">
<div class="login">
<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 class="layui-form-item">
<input type="password" name="pwd" placeholder="密码" class="layui-input">
<i class="layui-icon input-icon">&#xe673;</i>
<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 class="layui-form-item">
<button style="width: 100%" class="layui-btn" lay-submit lay-filter="login">立即登录</button>
layui.use('form', function () {
var form = layui.form,
layer = layui.layer,
$ = layui.jquery;'无需输入,请点击登录进入后台<br/>这个tips可随时去除!', '.layui-btn', {
tips: [3, '#333'],
time: 0
form.on('submit(login)', function (data) {
sessionStorage.isLgoin = 1; //模拟登录状态,实际使用时请删除掉
shade: 0.5,
time: 0,
setTimeout(function () {
window.location.href = 'index.html';
return false;

Comment ( 0 )

Sign in for post a comment


Help Search