<!DOCTYPE html>
<!-- saved from url=(0041)http://demo.vip-admin.com/demo/login.html -->
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <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">
    <title>登录</title>
    <meta name="csrf-token" content="{{ csrf_token() }}"> 
    <link rel="stylesheet" href="{{ asset('frame/layui/css/layui.css') }}">
    <link rel="stylesheet" href="{{ asset('/frame/static/css/style.css') }}">
    <!-- <link rel="icon" href="{{ asset('/favicon.icon') }}"> -->
	<link id="layuicss-layer" rel="stylesheet" href="{{ asset('frame/layui/css/modules/layer/default/layer.css?v=3.0.3') }} " media="all">
    <script type="text/javascript" src="/js/jquery.min.js"></script>
</head>
<body>
	<script>
		$.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
    }
});

	</script>
<div class="login-main">
    <header class="layui-elip">后台登录</header>
    <form class="layui-form" action="/admin/login/index" id="submitForm"  name="submitForm" method="post" eventType=eventAjaxForm >
    {!! csrf_field() !!}
        <div class="layui-input-inline">
            <input type="text" name="account"  required="" lay-verify="required" placeholder="用户名" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-input-inline">
            <input type="password" name="password" required="" lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input">
        </div>
        <input type="hidden" name="_token" value="{{ csrf_token() }}" />
        <div class="layui-input-inline login-btn">
            <button type="submit" class="layui-btn">登录</button>
        </div>
        <hr>
        <!--<div class="layui-input-inline">
            <button type="button" class="layui-btn layui-btn-primary">QQ登录</button>
        </div>
        <div class="layui-input-inline">
            <button type="button" class="layui-btn layui-btn-normal">微信登录</button>
        </div>-->
        <!-- <p><a href="javascript:;" class="fl">立即注册</a><a href="javascript:;" class="fr">忘记密码？</a></p> -->
    </form>
</div>


<script src="/frame/layui/layui.js"></script>
<script>

</script>
<script type="text/javascript" src="/js/common.js"></script>

<script type="text/javascript">

    layui.use(['form'], function () {

        // 操作对象
        var form = layui.form
                , $ = layui.jquery;

        // you code ...

    });
    function cbFormSuccess(obj) {
        window.location.href="/";
    }
    //获取参数
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg); //获取url中"?"符后的字符串并正则匹配
        var context = "";
        if (r != null)
            context = r[2];
        reg = null;
        r = null;
        return context == null || context == "" || context == "undefined" ? "" : context;
    }
    $(function () {
        if(GetQueryString('login')){
            alert('账号在其他地方登陆');
        }
    })

</script>



</body>
</html>