| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 | <!DOCTYPE html><html><head>    <meta charset="UTF-8">    <meta http-equiv="X-UA-Compatible" content="IE=Edge">    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">    <title>生产人员入口 - 产能监控系统登录</title>    <!-- Favicon-->    <link rel="icon" href="favicon.ico" type="image/x-icon">    <!-- Google Fonts -->    <link href="css/cyllic.css" rel="stylesheet" type="text/css">    <link href="css/mateial.css" rel="stylesheet" type="text/css">    <!-- Bootstrap Core Css -->    <link rel="stylesheet" href="css/third/bootstrap.min.css"          crossorigin="anonymous">    <!-- Waves Effect Css -->    <link href="plugins/node-waves/waves.css" rel="stylesheet"/>    <!-- Animation Css -->    <link href="plugins/animate-css/animate.css" rel="stylesheet"/>    <!-- Morris Chart Css-->    <link href="plugins/morrisjs/morris.css" rel="stylesheet"/>    <!-- Custom Css -->    <link href="css/style-frontend.css" rel="stylesheet">    <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->    <link href="css/themes/all-themes.css" rel="stylesheet"/>    <script src="css/third/jq.3.2.1.min.js"></script>    <script src="css/third/popper.1.12.9.js"            crossorigin="anonymous"></script>    <script src="css/third/boot.min.js"            crossorigin="anonymous"></script>    <meta name="viewport" content="width=device-width, initial-scale=1"></head><body class="login-page ls-closed " style="background-color: #303030 ">    <div class="login-box text-center" style="">        <div class="logo">            <a href="javascript:void(0);">生产看板系统</a>        </div>        <div class="alert alert-warning" id="mpAlert" style="display:none">        </div>        <div class="card">            <div class="body">                <form id="sign_in" method="POST" onsubmit="return false;">                    <div class="msg">请使用看板系统账号登录(不是管理员信息)<br> V200100 </div>                    <div class="input-group">                        <span class="input-group-addon">                            <i class="material-icons">person</i>                        </span>                        <div class="form-line">                            <input type="text" class="form-control" name="username" placeholder="系统用户登陆名" required autofocus>                        </div>                    </div>                    <div class="input-group">                        <span class="input-group-addon">                            <i class="material-icons">lock</i>                        </span>                        <div class="form-line">                            <input type="password" class="form-control" name="password" placeholder="系统用户密码" required>                        </div>                    </div>                    <div class="row">                        <div class="col-8"></div>                        <div class="col-4" style="float: right">                            <button class="btn btn-block bg-pink waves-effect" type="submit" onclick="gotoLogin()">登录</button>                        </div>                    </div>                </form>            </div>        </div>    </div>    <!-- Jquery Core Js -->    <script src="plugins/jquery/jquery.min.js"></script>    <!-- Bootstrap Core Js -->    <script src="plugins/bootstrap/js/bootstrap.js"></script>    <!-- Waves Effect Plugin Js -->    <script src="plugins/node-waves/waves.js"></script>    <!-- Validation Plugin Js -->    <script src="plugins/jquery-validation/jquery.validate.js"></script>    <!-- Custom Js -->    <script src="js/basic.js"></script>    <script src="js/pages/examples/sign-in.js"></script>    <script>    function gotoLogin(){        var password = $('input[name="password"]').val();        var username = $('input[name="username"]').val();        get_data("/ajaxlogin?u=" + username +                "&p="+ password, onlogin_finish);    }    function onlogin_finish(obj){        console.log("Login Outcome::");        console.log(obj);        obj = first_parse(this, obj);        if(obj == undefined || obj == null) {            send_alert("请重试!");        }else if (obj.msg !== undefined && obj.msg === "fail"){            send_alert("用户名密码错误");        }else{            // TODO: 判断是否存在flowMaster,是否有权限            setCookieWithTimeout("doibyUser", obj.userId);            alert("Cookie : " + getCookie("doibyUser"));            location.href = "denglu.html?userId=" + obj.userId;        }    }    </script></body></html>
 |