
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <%@include file="../../taglib.jsp" %>
    <jsp:include page="../../common.jsp"></jsp:include>

    <meta http-equiv="X-UA-Compatible" content="IE=8"/>
    <c:set var="res" value="${resourcePath}/auth" scope="request"/>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>登录</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="stylesheet" type="text/css" href="${res}/css/animate.css">
    <link rel="stylesheet" type="text/css" href="${res}/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="${res}/css/animate.css">
    <link rel="stylesheet" type="text/css" href="${res}/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="${res}/css/reset.css">
    <link rel="stylesheet" type="text/css" href="${res}/css/login.css">

    <script type="text/javascript">
        require("js/login/login.js");
    </script>
    <script>
        if (window !== top) {
            top.location.href = location.href;
        }
    </script>

    <style>
        .whole-window {
            background: url(${res}/images/1.png) no-repeat center / cover;
            position: fixed;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            zoom: 1;
        }
    </style>
</head>
<body class="login bg scroll-animations-activated" id="loginBody">
<div class="whole-window">
&lt;%&ndash;    <img src="${res}/images/1.png" alt="" width="100%" />&ndash;%&gt;
</div>
<!-- BEGIN LOGO -->
<div class="logo">
    <div>快银平台</div>
</div>
<!-- END LOGO -->
<!-- BEGIN LOGIN -->
<div class="content  animated bounceIn" data-animation="bounceIn">
    <!-- BEGIN LOGIN FORM -->
    <form class="login-form" method="post">
        <h3 class="form-title">登录账户</h3>
        <div class="form-group">
            <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
            <label class="control-label visible-ie8 visible-ie9">用户名</label>
            <div class="input-icon">
                <i class="fa fa-user"></i>
                <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="用户名"
                       id="username" name="username" tabindex="1" style="height:32px;"></div>
        </div>
        <div class="form-group">
            <label class="control-label visible-ie8 visible-ie9">密码</label>
            <div class="input-icon">
                <i class="fa fa-lock"></i>
                <input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="密码"
                       id="password" name="password" tabindex="2" style="height:32px;"></div>
        </div>
        <div class="form-actions">
            <div class="pull-left dn">
                <label class="rememberme mt-checkbox mt-checkbox-outline">
                    <input type="checkbox" id="rememberMe" name="rememberme" checked="checked">下次自动登录
                    <span></span>
                </label>
            </div>
            <div class="pull-right register hidden">
                <a href="javascript:void(0);" id="register">注册账号</a>
                <a href="javascript:void(0);" id="forget">忘记密码</a>
            </div>
        </div>
        <a class="btn btn-primary btn-block btn-lg green m-b " id="login" href="javascript:void(0);"
           style="padding: 5px;">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>
    </form>
</div>

<!-- END LOGIN FORM -->

<!-- END LOGIN -->
<div class="copyright"> 2019-2020 ©
    <a href="javascript:void(0);" target="_blank" class="dlblock"> 陕西超掌柜科技有限公司</a> - All Rights Reserved.
</div>

<script>

    if (window !== top) {
        top.location.href = location.href;
    }

    $(function() {
        $.ajax({
            url: ctx + "/login/auth"
            , success: function(d) {
                if (d.code == 200) {
                    top.location.href = ctx + "/platform/console";
                }
            }
        })
    })

</script>
</body>
</html>
