login.php 4.3 KB
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="apple-mobile-web-app-title" content="联通销售系统"/>
    <meta name="robots" content="all" />
    <link href="/assets/web/css/bootstrap.min.css" rel="stylesheet" />
    <link href="/assets/web/css/login.min.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="/assets/common/css/themes/icon.css" />
    <link rel="bookmark" href="/favicon.ico"/>
    <script type="text/javascript" src="/assets/common/js/jquery.min.1.9.4.js"></script>
    <script type="text/javascript" src="/assets/common/js/jquery.easyui.min.1.9.4.js"></script>
    <script type="text/javascript" src="/assets/web/js/src/easyui.base.js"></script>
    <script type="text/javascript" src="/assets/web/js/src/operation.login.js"></script>

    <script type="text/javascript">
        if (window.top !== window.self) {
            window.top.location = window.location
        };
    </script>
    <style type="text/css">
        .browser-happy {position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;z-index:999;background:#24a6fa}
        .browser-happy .content {text-align:center;color:#fff;font-size:24px;padding-top:100px}
        .browser-happy .content a {display:inline-block;padding:10px 20px;border:2px solid #fff;text-decoration:none;color:#fff}
        body {font-family:Microsoft YaHei;}
    </style>
</head>
<body class="signin">
<div class="signinpanel">
    <div class="row">
        <div class="col-sm-7">
            <div class="signin-info">
                <div class="logopanel m-b">
                    <h1>
                        永保抽奖管理系统
                        <span style="font-size:.3em;"></span>
                    </h1>
                </div>
                <div class="m-b"></div>
                <h5>旗舰版V202005</h5>
                <ul class="m-b">
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>专注于用户体验创新</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>打造智能互联网式体验设计</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>专注于用户体验策略与研究</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>为用户提供全面系统的服务</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i>开启互联网营销新时代</li>
                </ul>
            </div>
        </div>
        <div class="col-sm-5">

            <form id="fm" name="frm" method="post" style="margin-top: 20px; margin-left: 20px;">
                <table style="padding: 10px 20px;" cellspacing="10">
                    <h4 class="no-margins">用户登录</h4>
                    <p class="m-t-md"></p>
                    <input type="text" class="form-control uname" name="name" maxlength="20" placeholder="用户名" />
                    <input type="password" class="form-control pword m-b" name="pwd" maxlength="12" placeholder="密码" />

                    <button type="button" class="btn btn-success btn-block" onclick="submitForm()">登录</button>
                </table>
            </form>


        </div>
    </div>
    <div class="signup-footer"><div class="pull-left">&copy; 2020 JITNRY.COM All Rights Reserved. ******** 科技有限公司 客服热线: ***********</div></div>
</div>
</body>
<script>

    function submitForm(){
        $('#fm').form('submit', {
            url:'/web/prize/tologin',
            onSubmit: function(){
                console.log($(this))

            },
            success:function(data){

                var arr = JSON.parse(data);
                if(arr.code == 100){
                    $.messager.alert("提示", arr.msg);
                }else{
                    $.messager.alert("提示", arr.msg);
                    window.location.href="/";
                }

                console.log(arr);
            }
        });
    }

</script>
</html>