管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-09-28 d7e431e4cf4742b009a639ff6da87c47c5cbadb1
1
已删除3个文件
已修改1个文件
201 ■■■■■ 文件已修改
src/main/resources/static/js/analytics.js 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/static/js/api.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/static/js/head.min.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/templates/login.html 145 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/static/js/analytics.js
ÎļþÒÑɾ³ý
src/main/resources/static/js/api.js
ÎļþÒÑɾ³ý
src/main/resources/static/js/head.min.js
ÎļþÒÑɾ³ý
src/main/resources/templates/login.html
@@ -1,22 +1,21 @@
<!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">
<!DOCTYPE>
<html>
<head>
    <title>单点登录系统-登录</title>
  <title>管道基础大数据平台服务-登录</title>
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <link rel="stylesheet" type="text/css" href="../css/reset.css" />
    <link rel="stylesheet" type="text/css" href="../css/JCXM_style.css" />
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <link rel="stylesheet" href="../js/font-awesome.min.css"/>
    <link rel="stylesheet" href="../css/cas.css"/>
    <link rel="icon" href="../favicon.ico" type="image/x-icon"/>
    <script type="text/javascript" src="../js/zxcvbn.js"></script>
    <script type="text/javascript" src="../js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="../js/jquery.cookie.min.js"></script>
    <script type="text/javascript" src="../js/bootstrap.min.js"></script>
    <style type="text/css">
  <link href="../favicon.ico" rel="icon" type="image/x-icon" />
  <link href="../css/reset.css" rel="stylesheet" />
  <link href="../css/JCXM_style.css" rel="stylesheet" />
  <link href="../js/font-awesome.min.css" rel="stylesheet" />
  <link href="../css/cas.css" rel="stylesheet" />
  <script src="../js/jquery.min.js"></script>
  <script src="../js/zxcvbn.js"></script>
  <script src="../js/jquery-ui.min.js"></script>
  <script src="../js/jquery.cookie.min.js"></script>
  <script src="../js/bootstrap.min.js"></script>
  <style>
        .errorMessage_show {
            width: 200px;
            text-align: left;
@@ -26,9 +25,7 @@
            color: #d56969;
            font-size: 12px;
        }
    </style>
    <style type="text/css">
        .code {
            /* background:url(code_bg.jpg); */
            font-family:Arial;
@@ -50,14 +47,16 @@
            border-bottom-right-radius:5px;
            background-color:white;
        }
        a {
            text-decoration:underline;
        }
        a:hover {
            text-decoration:underline;
        }
    </style>
    <script language="javascript" type="text/javascript">
  <script>
        var code;
        function createCode() {
            code = "";
@@ -67,34 +66,29 @@
            'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',
            'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'); */
            var codeChars = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9 );
            for (var i = 0; i < codeLength; i++)
            {
      for (var i = 0; i < codeLength; i++) {
                var charNum = Math.floor(Math.random() * 10);
                code += codeChars[charNum];
            }
            if (checkCode)
            {
      if (checkCode) {
                checkCode.className = "code";
                checkCode.innerHTML = code;
            }
        }
        //2019-03-28 åŽ»æŽ‰ by XiaoQi
        //function validateCode() {
        //var inputCode = document.getElementById("inputCode").value;
        //if (inputCode.length <= 0)
        //{
        //alert("请输入验证码!");
        //}
        //else if (inputCode.toUpperCase() != code.toUpperCase())
        //{
        //alert("验证码输入有误!");
        //createCode();
        //}
        //else
        //{
        //alert("验证码正确!");
        //}
        //}
    function validateCode() {
      var inputCode = document.getElementById("inputCode").value;
      if (inputCode.length <= 0) {
        alert("请输入验证码!");
      }
      else if (inputCode.toUpperCase() != code.toUpperCase()) {
        alert("验证码输入有误!");
        createCode();
      }
      else {
        alert("验证码正确!");
      }
    }
    </script>
</head>
<body style="background-color:#0059cf;overflow-y:hidden !important;">
@@ -111,12 +105,15 @@
            <div id="loginBox_Title" style="height: 60px;line-height: 60px;">
                <span style="color: #fff;font-size: 50px;font-family: initial;font-weight: 700;">用户登录</span>
            </div>
            <!-- ç”¨æˆ·å --><div class="loginid" style='width:400px;margin-right:50px;margin-top:45px;border-bottom:1px solid #fff;' >
        <!-- ç”¨æˆ·å -->
        <div class="loginid" style='width: 400px; margin-right: 50px; margin-top: 45px; border-bottom: 1px solid #fff;'>
            <label for="username"></label>
            <input class="required" id="username" placeholder="请输入用户名" size="25" tabindex="1"
                   type="text" accesskey="n"
                   autocomplete="off" name="username" value="" /></div>
            <!-- å¯†ç  --><section >
            autocomplete="off" name="username" value="" />
        </div>
        <!-- å¯†ç  -->
        <section>
            <div class="loginpwd" style='width:400px;margin-right:20px;margin-top:30px;border-bottom:1px solid #fff;' >
                <label for="password"></label>
                <input class="required" placeholder="请输入密码" type="password" id="password" size="25"
@@ -132,31 +129,14 @@
        </section>
            <section class="row check">
            </section>
            <!-- éªŒè¯ç  --><!-- <div class="loginvalifield" style="margin-top:20px;">
        <!-- éªŒè¯ç  -->
         <div class="loginvalifield" style="margin-top:20px;">
                    <div class="loginvalicode">
                        <label for="vcode"></label>
                        <input id="vcode" name="vcode" class="required" tabindex="3" accesskey="v" type="text" value="" size="35" autocomplete="off">
                <label for="inputCode"></label>
                <input id="inputCode" name="inputCode" class="required" tabindex="3" accesskey="v" type="text" value="" size="35" autocomplete="off">
                    </div>
                    <span><img src="servlet/gevcode" class="validatelbl" onclick="this.src='servlet/gevcode?d='+new Date().getTime()"></span>
                </div> --><section style="display:none;">  <!-- change By XiaoQi --><div id="vCodeID" class="loginvalifield" style='width: 400px;margin-top:30px;border-bottom:1px solid #fff;'>
            <div class="loginvalicode">
                <label for="vcode"></label>
                <input id="inputCode" name="vcode" placeholder="请输入验证码" class="required" type="text" tabindex="4" /></div>
            <span class="code" id="checkCode" onclick="createCode()" ></span>
        </div>
        </section>
            <section id="carLink">
                <div style="background: url(../images/NewGJXJlogin/1920/add.png) no-repeat;width: 400px;height: 40px;line-height: 40px;background-position: 3% 50%;margin-top: 30px;">
                    <a style='color: #fff;font-size: 18px;margin-left: 52px;' href="downloads/证书安装与添加信任站点.zip" download="证书安装与添加信任站点.zip">证书安装与添加信任站点</a>
                </div>
                <div style="background: url(../images/NewGJXJlogin/1920/add.png) no-repeat;width: 400px;height: 40px;line-height: 40px;background-position: 3% 50%;margin-top: 0px;">
                    <a style='color: #fff;font-size: 18px;margin-left: 52px;' href="downloads/谷歌浏览器下载.zip" download="谷歌浏览器下载.zip">建议使用谷歌浏览器</a>
                </div>
                <div style="background: url(../images/NewGJXJlogin/1920/add.png) no-repeat;width: 400px;height: 40px;line-height: 40px;background-position: 3% 50%;margin-top: 0px;">
                    <a style='color: #fff;font-size: 18px;margin-left: 52px;' href="downloads/使用帮助文档.zip" download="使用帮助文档.zip">使用帮助文档</a>
                </div>
            </section>
            <!-- ç™»å½•按钮 -->
            <section >
            <input class="loginbtn" style="margin-top:25px;" name="submit" accesskey="l" value="" tabindex="5" type="submit">
@@ -170,7 +150,7 @@
        <span>技术支持:国家海洋信息中心</span>
    </div>
</form>
<script type="text/javascript">
  <script>
    var leftoffset = 474;
    //禁止在iframe打开
    function noIframe() {
@@ -386,36 +366,39 @@
        }
    }
</script>
<script type="text/javascript">
    var i = "\u767B\u5F55\u4E2D..."
  <script>
    var i = "登录中..."
    //表单提交
    $("#fm1").submit(function() {
        //验证用户名与密码
        var theUsername = document.getElementById("username").value;
        if (theUsername.length <= 0)
        {
      if (theUsername.length <= 0) {
            alert("请输入用户名!");
            return false;
        }
        var thePassword = document.getElementById("password").value;
        if (thePassword.length <= 0)
        {
      if (thePassword.length <= 0) {
            alert("请输入密码!");
            return false;
        }
        //验证验证码(2019-03-28去掉 by XiaoQi)
        //var inputCode = document.getElementById("inputCode").value;
        //if (inputCode.length <= 0)
        //{
        //alert("请输入验证码!");
        //return false;
        //}
        //else if (inputCode.toUpperCase() != code.toUpperCase())
        //{
        //alert("验证码输入有误!");
        //createCode();
        //return false;
        //}
      var inputCode = document.getElementById("inputCode").value;
      if (inputCode.length <= 0) {
        alert("请输入验证码!");
        return false;
      }
      else if (inputCode.toUpperCase() != code.toUpperCase()) {
        alert("验证码输入有误!");
        createCode();
        return false;
      }
      //$("#uName").val(encrypt.encrypt(theUsername));
      //$("#uPwd").val(encrypt.encrypt(thePassword));
      //$("#uName").val(Base64.encode(theUsername));
      $("#uName").val(theUsername);
      $("#uPwd").val(Base64.encode(thePassword));
        $(":submit").attr("disabled", true);
        $(":submit").attr("value", i);