1
13693261870
2022-09-20 1aa6a37e779e2f3f41c6690ebdd7ecf40b49cebd
src/resources/templates/casLoginView.html
@@ -52,11 +52,13 @@
         border-bottom-right-radius:5px;
         background-color:white;
      }
      a {
         text-decoration:underline;
         /*font-size:12px;
         color:#288bc4;*/
      }
      a:hover {
         text-decoration:underline;
      }
@@ -122,11 +124,12 @@
            </div>
            <div th:if="${openIdLocalId}">
               <strong> <span th:utext="${openIdLocalId}" />
               </strong> <input type="hidden" id="username" name="username" th:value="${openIdLocalId}" />
          </strong>
          <input type="hidden" id="username" name="username" th:value="${openIdLocalId}" />
            </div>
            <div th:unless="${openIdLocalId}" 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"
          <input class="required" id="Text1" placeholder="请输入用户名" size="25" tabindex="1"
                  type="text" th:field="*{username}"
                  th:accesskey="#{screen.welcome.label.netid.accesskey}"
                  autocomplete="off" />
@@ -166,7 +169,7 @@
                    </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 -->
        <section style="display: block;">  <!-- 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>
@@ -175,7 +178,7 @@
               <span class="code" id="checkCode" onclick="createCode()" ></span>
                </div>
                </section>
            <section id="carLink">
        <section id="carLink" style="display:none;">
               <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>
@@ -195,47 +198,6 @@
               <input class="loginbtn" style="margin-top:25px;" name="submit" accesskey="l" value="" tabindex="5" type="submit">
               <!--<div style="text-align:center; font-size:14px; font-weight:bold;margin-top:20px;">
                  <span style="color:blue;font-family:宋体;">国家节点</span>
               </div> -->
               <!--<div style="color:white;font-size:14px;margin-top:5px;">
                  <table width="100%" align="center" style='border-collapse:separate;border-spacing:8px;'>
                     <tr>
                        <td style="width:40px;">
                           <a href="#" style="color:blue;">辽宁</a>
                        </td>
                        <td style="width:40px;">
                           <a href="#" style="color:blue;">河北</a>
                        </td>
                        <td style="width:40px;">
                           <a href="#" style="color:blue;">天津</a>
                        </td>
                        <td style="width:40px;">
                           <a href="#" style="color:blue;">山东</a>
                        </td>
                        <td style="width:40px;">
                           <a href="#" style="color:blue;">江苏</a>
                        </td>
                        <td>
                           <a href="#" style="color:blue;">上海</a>
                        </td>
                     </tr>
                     <tr>
                        <td >
                           <a href="#" style="color:blue;">浙江</a>
                        </td>
                        <td>
                           <a href="#" style="color:blue;">福建</a>
                        </td>
                        <td>
                           <a href="#" style="color:blue;">广东</a>
                        </td>
                        <td>
                           <a href="#" style="color:blue;">广西</a>
                        </td>
                        <td>
                           <a href="#" style="color:blue;">海南</a>
                        </td>
                     </tr>
                  </table>
               </div>-->
            </section>
            <section id="otherCarLink" style='font-size:14px;display:none;'>
@@ -317,13 +279,13 @@
         var bgHeight = 1080;
         winWidht += 150;
         if(winWidht >= 1920) {
            $("#div_middle").css("background", "url(images/NewGJXJlogin/1920/bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "800px");
        $("#div_middle").css("background", "url(images/NewGJXJlogin/1920/2bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "800px");
             $("#div_middle").css("height", "980px");
            $(".logintable").css("margin-top", "170px");
            div_loginBox.style.left = ((fullWidth - 410) / 2 + 474) + "px";
            bgHeight = 980; //1080
         } else if(winWidht >= 1600) {
            $("#div_middle").css("background", "url(images/NewGJXJlogin/1600/bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "800px");
        $("#div_middle").css("background", "url(images/NewGJXJlogin/1600/2bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "800px");
            $("#loginBox_Title span").css("font-size", "40px");
            $(".loginid").css("margin-top", "35px").css("height", "45px").css("width", "350px").css("background", "url(images/NewGJXJlogin/1600/user.png) no-repeat").css("background-position", "3% 40%");
            $(".loginid input").css("width", "306px").css("margin-left", "45px").css("font-size", "18px");
@@ -342,7 +304,7 @@
            bgHeight = 800; //900
            div_loginBox.style.left = ((fullWidth - 360) / 2 + leftoffset) + "px";
         } else if(winWidht >= 1440) {
            $("#div_middle").css("background", "url(images/NewGJXJlogin/1440/bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "810px");
        $("#div_middle").css("background", "url(images/NewGJXJlogin/1440/2bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "810px");
            $("#loginBox_Title").css("height", "50px").css("line-height", "50px");
            $("#loginBox_Title span").css("font-size", "36px");
            $(".loginid").css("margin-top", "20px").css("height", "45px").css("width", "320px").css("background", "url(images/NewGJXJlogin/1440/user.png) no-repeat").css("background-position", "3% 40%");
@@ -360,7 +322,7 @@
            bgHeight = 810;
            div_loginBox.style.left = ((fullWidth - 320) / 2 + leftoffset) + "px";
         }  else if(winWidht >= 1366) {
            $("#div_middle").css("background", "url(images/NewGJXJlogin/1366/bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "668px");
        $("#div_middle").css("background", "url(images/NewGJXJlogin/1366/2bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "668px");
            $("#loginBox_Title").css("height", "50px").css("line-height", "50px");
            $("#loginBox_Title span").css("font-size", "32px");
            $(".loginid").css("margin-top", "35px").css("height", "40px").css("width", "300px").css("background", "url(images/NewGJXJlogin/1366/user.png) no-repeat").css("background-position", "3% 50%");
@@ -380,7 +342,7 @@
            div_loginBox.style.left = ((fullWidth - 300) / 2 + leftoffset) + "px";
         } else {
            //fullWidth = 1280;
            $("#div_middle").css("background", "url(images/NewGJXJlogin/1280/bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "620px");
        $("#div_middle").css("background", "url(images/NewGJXJlogin/1280/2bg.jpg) no-repeat").css("background-position", "center bottom").css("height", "620px");
            $("#loginBox_Title").css("height", "50px").css("line-height", "50px");
            $("#loginBox_Title span").css("font-size", "32px");
            $(".loginid").css("margin-top", "27px").css("height", "40px").css("width", "280px").css("background", "url(images/NewGJXJlogin/1280/user.png) no-repeat").css("background-position", "3% 50%");
@@ -490,18 +452,18 @@
               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;
      }
           
            $(":submit").attr("disabled", true);
            $(":submit").attr("value", i);