| <!doctype html> | 
| <html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml"> | 
| <html class="no-js"> | 
| <head> | 
|     <meta charset="utf-8"> | 
|     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 
|   | 
|     <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/> | 
|     <title>HIVE</title> | 
|   | 
|     <!-- Set render engine for 360 browser --> | 
|     <meta name="renderer" content="webkit"> | 
|   | 
|     <!-- No Baidu Siteapp--> | 
|     <meta http-equiv="Cache-Control" content="no-siteapp"/> | 
|     <script type="text/javascript" | 
|             th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script> | 
|     <script type="text/javascript" | 
|             th:src="@{/js/systools/DDMBase.js}"></script> | 
|     <link rel="stylesheet" | 
|           th:href="@{/plugin/amazingUI/css/amazeui.min.css}"> | 
|     <link rel="stylesheet" | 
|           th:href="@{/plugin/amazingUI/css/app.css}"> | 
|   | 
|     <link rel="stylesheet" type="text/css" | 
|           th:href="@{/css/dingLogin.css}"> | 
|   | 
| </head> | 
| <body onkeypress="dologin(event)"> | 
| <!-- 登陆页面--> | 
| <div class="wrap"> | 
|     <img th:src="@{/images/dingIcon.png}" class="login-img"></img> | 
|     <div class="am-g"> | 
|         <div class="main am-u-sm-9 am-u-sm-centered"> | 
|             <form class="am-form am-form-horizontal dataForm "> | 
|                 <div class=" am-g"> | 
|                     <input autocomplete="off"   id="account" name="account" | 
|                            type="text" class="back-hui am-form-field id-in" placeholder="账号"> | 
|                 </div> | 
|   | 
|                 <div class=" am-g"> | 
|                     <input autocomplete="off"   id="password" name="password" | 
|                            type="password" class="back-hui am-form-field psw-in" | 
|                            placeholder="密码"> | 
|                 </div> | 
|   | 
|                 <div class=" am-g"> | 
|                     <input autocomplete="off"   id="reId" type="checkbox" checked="" name=""> | 
|                     记住密码 | 
|                 </div> | 
|   | 
|   | 
|                 <!--登陆按钮--> | 
|                 <div class="am-form-group am-g"> | 
|   | 
|                     <button type="button" onclick="login()" | 
|                             class="am-btn am-btn-default am-u-sm-12 back-hui">登      入 | 
|                     </button> | 
|   | 
|                 </div> | 
|                 <input autocomplete="off"   type="hidden" name="isDing" value="1"/> | 
|             </form> | 
|         </div> | 
|     </div> | 
| </div> | 
| <script | 
|         th:src="@{/plugin/amazingUI/js/amazeui.widgets.helper.js}"></script> | 
| <script th:src="@{/plugin/amazingUI/js/amazeui.min.js}"></script> | 
|   | 
| <script th:src="@{/js/function/MCookies.js}"></script> | 
| <script th:src="@{/plugin/amazingUI/js/handlebars.min.js}"></script> | 
| <script type="text/javascript" th:src="@{/js/plugin/jsencrypt.min.js}"></script> | 
|   | 
|   | 
| <!-- index js --> | 
| <script type="text/javascript" th:inline="javascript"> | 
|   | 
|     var crypt = new JSEncrypt(); | 
|   | 
|     /*<![CDATA[*/ | 
|   | 
|     var publicKey =/*[[${session.publicKey}]]*/ | 
|   | 
|         /*]]>*/ | 
|   | 
|         crypt.setKey(publicKey); | 
|   | 
|   | 
|     //登陆 | 
|   | 
|     function login() { | 
|         if ($("#account").val() == "") { | 
|             layer | 
|                 .open({ | 
|                     content: '请输入账号!', | 
|                     className: 'showBox', | 
|                     time: 2 | 
|                 }); | 
|             return false; | 
|         } else if ($("#password").val() == "") { | 
|             layer | 
|                 .open({ | 
|                     content: '请输入密码!', | 
|                     className: 'showBox', | 
|                     time: 2 | 
|                 }); | 
|             return false; | 
|         } | 
|   | 
|   | 
|         var encAcc = crypt.encrypt($("#account").val()); | 
|         var encPwd = crypt.encrypt($("#password").val()); | 
|         $.AjaxProxy({ | 
|             p: { | 
|                 suAccount: encAcc, | 
|                 suPassword: encPwd | 
|             } | 
|         }).invoke("/common/doHiveMobilelogin", function (loj) { | 
|             if ($('#reId').is(':checked'))  { | 
|                 // do something | 
|                 MCookies.add("account",$("#account").val()); | 
|                 MCookies.add("password",$("#password").val()); | 
|             }else{ | 
|                 MCookies.del("account"); | 
|                 MCookies.del("password"); | 
|             } | 
|             MTools.redirect("/" + loj.getValue("page")); | 
|         }); | 
|   | 
|     } | 
|   | 
|   | 
|     $(function () { | 
|         if (MCookies.isExist("account")) { | 
|             $("#reId").attr("checked", 'true'); | 
|             $("#account").val(MCookies.get("account")); | 
|             $("#password").val(MCookies.get("password")); | 
|         } | 
|     }) | 
| </script> | 
| </body> | 
| </html> |