<?php /*a:1:{s:64:"/www/wwwroot/666.u7u.top/application/ohbbs/view/login/index.html";i:1618495710;}*/ ?>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>后台登录</title>
	  <link rel="stylesheet" href="/public/static/layui/css/layui.css" media="all">
	  <link rel="stylesheet" href="/public/static/css/login.css" media="all">
	</head>

	<body>
		<div class="m-login-bg">
			<div class="m-login">
				<h3>后台系统登录</h3>
				<div class="m-login-warp">
					<form class="layui-form">
						<div class="layui-form-item">
							<input type="text" name="tel" required lay-verify="phone" placeholder="手机号" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-form-item">
							<input type="password" name="password" required lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-form-item">
							<div class="layui-inline">
								<input type="text" name="verity" required lay-verify="required" placeholder="验证码" autocomplete="off" class="layui-input">
							</div>
							<div class="layui-inline">
								<img class="verifyImg" onclick="this.src=this.src+'?c='+Math.random();" src="<?php echo url('ohbbs/login/verify'); ?>" />
							</div>
						</div>
						<div class="layui-form-item m-login-btn">
							<button class="layui-btn layui-btn-normal layui-btn-fluid" lay-submit lay-filter="checklogin" id="checklogin">登录</button>
						</div>
					</form>
				</div>
				<p class="copyright">Copyright 2016-2021 求码网www.qiuma.cc</p>
			</div>
		</div>
		<script src="/public/static/layui/layui.js"></script>
		<script>  
		layui.use('form',function(){
		  var form = layui.form;
		  var $ = layui.jquery;
		  form.on('submit(checklogin)', function(data){
		    $.post("<?php echo url(''); ?>",data.field,function(data){
		      if(data.code == 1){
		        layer.msg(data.msg, {time: 2000}, function(){
		          location.href = data.url;
		        });
		      }else{
		        layer.msg(data.msg, {time: 2000});
		      }
		    });
		    return false;
		  });
		$(document).keydown(function (e) {
		    if (e.keyCode === 13) {
		      $("#checklogin").trigger("click");
		    }
		});
		})
		</script>
	</body>

</html>