cy
2022-06-28 2ba5c891b24d4d0cd6ce7ef833592e4f576ee5e8
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta property="qc:admins" content="354047454356412336375636" />
<title>${Constants.company_name}</title>
<link rel="shortcut icon" href="${base}/favicon.ico" />
<link rel="stylesheet" type="text/css" href="${common_static}/static/style/jmslogin/css/reset.css" />
<link rel="stylesheet" type="text/css" href="${common_static}/static/style/jmslogin/css/login.css" />
<script type="text/javascript" src="${common_static}/static/script/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="${common_static}/static/script/jquery.util.js"></script>
<script type="text/javascript" src="${common_static}/static/style/jmslogin/js/login.js"></script>
</head>
 
<body>
<div class="login_top clearfix">
    <a class="larks_logo">
        <img src="${common_static}/static/companyLogo/larks-logo1.gif" width="247" height="48" alt="" />
        <span style="margin-left: 20px;font-size: 26px">${Constants.company_name}</span>
    </a>
    <p>
        <a href="http://www.larks.com.cn" target="_blank">网站首页</a>
        <span>|</span>
        <a href="${base}/business/appdown.html">移动端下载</a>
        <span>|</span>
        <em>客服热线:0371-63661766</em>
    </p>
</div>
<div class="login_con_wrap">
     <div class="login_con_bigbg">
         <div class="login_con">
             <div class="login_func">
                 <div class="lf_top"></div>
                 <div class="lf_con">
                     <div class="lfc_btn">
                         <a class="focus">登录</a>
                     </div>
                     <form action="${base}/business/login.html" method="post" id="myform">
                     <div class="input_div">
                         <img src="${common_static}/static/style/jmslogin/images/user-icon.gif" width="16" height="18" alt="" />
                         <div class="input_wrap"> <input type="text" id="username"  name="username" value="${username}"/><span>用户名</span> </div>
                         <div class="error_pop" id="usererr" style="display:none;"></div>
                     </div>
                     <div class="input_div">
                         <img src="${common_static}/static/style/jmslogin/images/password-icon.gif" width="16" height="18" alt="" />
                         <div class="input_wrap"> <input type="password" id="password" name="password" value="${password}"/><span>密码</span> </div>
                         <div class="error_pop" id="pwderr"  style="display:none;"></div>
                     </div>
                     <div class="input_div verification_code clearfix">
                         <div class="input_wrap"> <input type="text" name="checkCode" id="checkCode" value="${checkCode}"/><span>验证码</span> </div>
                         <a href="javascript:changeYzm();">换一张</a>
                         <span class="vc_wrap"><img src="Kaptcha.validatecode" width="90" height="35" id="validatecode" alt="" /></span>
                         <div class="error_pop" id="yzmerr" style="display:none;"></div>
                     </div>
                     <a class="login_btn" id="login">登录</a>
                     <a class="login_btn focus" id="logining" style="display:none;">登录中...</a>
                     <div style="margin-top: 6px;text-align: center;font-size: 15px;color: red;white-space: nowrap">
                        非密系统禁止处理、储存和传输涉密信息
                     </div>
                     <div class="remember_password clearfix">
                         <input type="checkbox" /><label>记住密码</label>
                         <a href="${base}/business/findPwd.html">忘记密码</a>
                     </div>
                     <div class="other_login clearfix">
                     <span>合作账号登录:</span>
                            <a class="QQ" href="${qqurl}">
                            <img src="${common_static}/static/style/jmslogin/images/qqlogin.gif" width="16" height="16" alt="" /></a>
                            <!-- <a class="sinaWeibo" href="${wechaturl}" onmouseover="this.style.cssText='cursor:default;color:black;text-decoration:none;'">
                            <img src="${common_static}/static/style/jmslogin/images/sina-weibo-login.gif" width="16" height="16" alt="" /></a>
                            <a class="alipay" href="#nog" onmouseover="this.style.cssText='cursor:default;color:black;text-decoration:none;'">
                            <img src="${common_static}/static/style/jmslogin/images/pay.gif" width="16" height="16" alt="" />&nbsp;支付宝&nbsp;</a>&nbsp;
                         -->
                     </div>
                     </form>
                 </div>
                 <div class="lf_bottom"></div>
             </div>
         </div>
     </div>
</div>
 
<script type="text/javascript">
function changeYzm() {
    $("#validatecode").attr("src",Math.floor(Math.random()*0x10000) + '.validatecode');
}
 
function switchBtn() {
    $("#logining").hide();
    $("#login").show();
}
$(function() {
    var err = '${RequestParameters.err}';
    if(err == '0') {
        $("#usererr").html("用户名不存在");
        $("#usererr").show();
        $("#username").focus();
    } else if(err == '1') {
        $("#pwderr").html("用户名或密码错误");
        $("#pwderr").show();
    } else if(err == '2') {
        $("#yzmerr").html("验证码输入错误");
        $("#yzmerr").show();
        $("#checkCode").focus();
    } else if(err == '3') {
        $("#usererr").html("登录超时,请重新登录");
        $("#usererr").show();
        $("#username").focus();
    } else if(err == '4') {
        $("#usererr").html("该用户已被禁用,请联系系统管理员!");
        $("#usererr").show();
        $("#username").focus();
    } else if(err == '5') {
        $("#usererr").html("该用户未分配权限,请联系管理员!");
        $("#usererr").show();
        $("#username").focus();
    } else if(err == '6') {
        $("#usererr").html("服务已过有效期!");
        $("#usererr").show();
        $("#username").focus();
    }
 
    $("#login").click(function() {
        $("#login").hide();
        $("#logining").show();
        $("#usererr,#pwderr,#yzmerr").hide();
        var username = $.trim($("#username").val());
        if($.util.isEmpty(username)) {
            $("#usererr").html("请输入用户名");
            $("#usererr").show();
            $("#username").focus();
            switchBtn();
            return;
        }
        if(username.length > 20 || username.length < '${SysConfigConstants.USER_LONG}') {
            $("#usererr").html("用户名的长度应该为${SysConfigConstants.USER_LONG}至20位");
            $("#usererr").show();
            $("#username").select();
            switchBtn();
            return;
        }
 
        var pwd = $.trim($("#password").val());
        if($.util.isEmpty(pwd)) {
            $("#pwderr").html("请输入密码");
            $("#pwderr").show();
            $("#password").focus();
            switchBtn();
            return;
        }
        if(pwd.length > 30 || pwd.length < 6) {
            $("#pwderr").html("密码长度最短6位,最长30位");
            $("#pwderr").show();
            $("#password").select();
            switchBtn();
            return;
        }
 
 
        var checkCode = $.trim($("#checkCode").val());
        if($.util.isEmpty(checkCode)) {
            $("#yzmerr").html("请输入验证码");
            $("#yzmerr").show();
            $("#checkCode").focus();
            switchBtn();
            return;
        }
        if(checkCode.length != 4) {
            $("#yzmerr").html("请输入四位验证码");
            $("#yzmerr").show();
            $("#checkCode").select();
            switchBtn();
            return;
        }
 
        $("#myform").submit();
 
    });
 
    $(document).keyup(function(event) {
        if(event.keyCode==13) {
          $("#login").trigger("click");
        }
      });
})
</script>
[#include "/business/pages/include/loginfoot.html" /]
</body>
</html>