审计记录

WebContent/index.jsp 2.5 KB
zxt@theyeasy.com committed
1 2 3
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="loginblock">
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>华南城小程序后台</title>
		<link rel="stylesheet" href="/zzhnc/res/plugins/layui/css/layui.css">
		<link rel="stylesheet" href="/zzhnc/res/css/basic.css">
	</head>

	<body onkeydown="keydown();">
		<div class="main">
			<div class="loginlogo">
				<img src="/zzhnc/res/images/logo.png" alt="">
			</div>
			<div class="loginBox">
				<div class="formBox">
					<div class="box">
						<h3>华南城小程序管理后台</h3>
						<div class="loginbos">
							<div class="layui-form-item">
								<img src="/zzhnc/res/images/Group2.png" class="loginicon">
								<div class="layui-input-inline" style="width:auto;">
									<input type="text" placeholder="账号" name="account">
								</div>
zxt@theyeasy.com committed
29
							</div>
30 31 32 33 34
							<div class="layui-form-item">
								<img src="/zzhnc/res/images/Group1.png" class="loginicon">
								<div class="layui-input-inline" style="width:auto;">
									<input type="password" placeholder="密码" name="pwd">
								</div>
zxt@theyeasy.com committed
35
							</div>
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
							<div class="submitBox">
								<button>登录</button>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<script src='/zzhnc/res/js/jquery.min.js'></script>
		<script src="/zzhnc/res/plugins/layui/layui.js" charset="utf-8"></script>
		<script>
			layui.use(['layer'], function() {
				var layer = layui.layer;
				$(".submitBox").on("click", function() {
					var account = $("input[name=account]").val();
					var pwd = $("input[name=pwd]").val();
					if(account == "") {
						top.layer.msg("请填写账号");
						return false;
					}
					if(pwd == "") {
						top.layer.msg("请填写密码");
						return false;
					}
					$.post("/zzhnc/loginIn", {
						account: account,
						pwd: pwd
					}, function(data) {
						console.log(data)
						if(data.code == 0) {
							top.layer.msg("登陆成功");
							window.location.href = "/zzhnc/home/index";
						} else {
							top.layer.msg(data.data);
						}
					});
				});
			});

			function keydown(e) {
				var currKey = 0,
					e = e || event;
				if(e.keyCode == 13) {
					$(".submitBox").click()
				};
			}
			document.onkeydown = keydown;
		</script>
	</body>

zxt@theyeasy.com committed
86
</html>