Helius
2020-12-23 c554c7ad5405bafa149dbb6429e8245f78b33ffc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!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">登&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp入
                    </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>