<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
<%
|
String path = request.getContextPath();
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
+ path + "/";
|
%>
|
|
<!DOCTYPE HTML>
|
<html>
|
<head>
|
<base href="<%=basePath%>">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<title>用户登录-${systemConfig.platformTitle}</title>
|
<link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
|
<!-- easyui -->
|
<%-- <link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">--%>
|
<%-- <link href="static/plugins/jquery-easyui/themes/icon.css" rel="stylesheet" type="text/css">--%>
|
<%-- <link rel="stylesheet" href="static/styles/initialize.css" type="text/css">--%>
|
<link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
|
|
<!-- jquery -->
|
<script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
|
<!-- 滚动条 -->
|
<script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
|
<!-- 弹窗加载组件 -->
|
<script type="text/javascript" src="static/plugins/layer/layer.js"></script>
|
<script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
|
<script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
|
<script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
|
|
<script type="text/javascript" src="static/plugins/crypto-js/core.js"></script>
|
<script type="text/javascript" src="static/plugins/crypto-js/md5.js"></script>
|
|
<!-- wcp组件 -->
|
<script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
|
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
|
|
<!--[if lt IE 9]>
|
<script type="text/javascript" src="static/plugins/json2.js"></script>
|
<![endif]-->
|
|
<style>
|
html, body, h1, h2, h3, h4, h5, h6, p, dl, dd, ul, li, ol, form, input, textarea, select, table, th, td {
|
margin: 0px;
|
padding: 0px;
|
}
|
|
body {
|
font-size: 15px;
|
font-family: "Microsoft YaHei";
|
color: #333333;
|
cursor: default;
|
}
|
|
i, b, em {
|
font-style: normal;
|
}
|
|
li {
|
list-style: none;
|
}
|
|
a {
|
text-decoration: none;
|
color: #04446a;
|
}
|
|
a:hover {
|
color: #3a667f;
|
}
|
|
img {
|
border: none;
|
vertical-align: top;
|
}
|
|
table {
|
border-collapse: collapse;
|
}
|
|
textarea {
|
resize: none;
|
overflow: auto;
|
}
|
|
.hide {
|
display: none;
|
}
|
|
*:focus {
|
outline: none;
|
}
|
|
.clear {
|
*zoom: 1;
|
}
|
|
.clear:after {
|
content: "";
|
display: block;
|
clear: both;
|
}
|
|
html {
|
overflow: hidden;
|
}
|
|
body {
|
font-size: 14px;
|
font-family: " SimSun"
|
color: #e3e6f4;
|
cursor: default;
|
}
|
|
.login {
|
}
|
|
.loginbg {
|
position: fixed;
|
top: 0;
|
left: 0;
|
bottom: 0;
|
right: 0;
|
z-index: -1;
|
}
|
|
.loginbg img {
|
height: 100%;
|
width: 100%;
|
border: 0;
|
}
|
|
.loginlogo {
|
text-align: center;
|
}
|
|
.loginlogo {
|
margin: 90px 0 0 0;
|
}
|
|
.loginmain {
|
width: 475px;
|
height: 454px;
|
position: absolute;
|
top: 29%;
|
left: 63%;
|
margin: 0px 0 0 0px;
|
}
|
|
.loginframe {
|
background: url(static/styles/images/loginconbg.png);
|
width: 315px;
|
height: 434px;
|
padding: 20px 80px 0 80px;
|
border-radius: 20px;
|
/*box-shadow: 0px 10px 32px #3575bc;*/
|
}
|
|
.logintxt {
|
text-align: center;
|
padding: 28px 0 24px 0;
|
margin: 0 auto;
|
}
|
|
.loginframe .loginusername, .loginframe .loginpwd {
|
height: 48px;
|
padding: 0 20px;
|
background: none;
|
border-radius: 6px;
|
border: 1px solid #1269ff;
|
}
|
|
.loginframe .loginusername input, .loginframe .loginpwd input {
|
color: #666;
|
width: 80%;
|
height: 46px;
|
line-height: 46px;
|
font-size: 14px;
|
border: 0 none;
|
margin: 0 0 0 40px;
|
font-family: "SimSun";
|
background: none;
|
}
|
|
.loginframe input::-webkit-input-placeholder {
|
color: #a7a4a4;
|
}
|
|
.loginframe input::-moz-placeholder {
|
color: #a7a4a4;
|
}
|
|
.loginframe input:-moz-placeholder {
|
color: #a7a4a4;
|
}
|
|
.loginframe input:-ms-input-placeholder {
|
color: #a7a4a4;
|
}
|
|
.loginframe .loginusername {
|
background: url(static/styles/images/logini1.png) 24px center no-repeat;
|
margin-bottom: 28px;
|
}
|
|
.loginframe .loginpwd {
|
background: url(static/styles/images/logini2.png) 24px center no-repeat;
|
margin-bottom: 18px;
|
}
|
|
.loginframe .user_remember {
|
/*margin: 0 0 40px 29px;*/
|
height: 20px;
|
line-height: 20px;
|
font-size: 14px;
|
color: #525252;
|
}
|
|
.loginframe .user_remember input {
|
margin: 3px 8px 0 0;
|
width: 14px;
|
height: 14px;
|
float: left;
|
}
|
|
.loginframe .user_remember span {
|
float: left;
|
/*margin: 0 26px 0 0;*/
|
}
|
|
.loginframe .user_btn input {
|
border: 0 none;
|
font-size: 16px;
|
color: #fff;
|
height: 48px;
|
line-height: 48px;
|
cursor: pointer;
|
text-align: center;
|
border-radius: 6px;
|
/*box-shadow: 0px 14px 16px #c4d9ff;*/
|
}
|
|
.loginframe .user_btn input.dlbtn {
|
background: #1269ff;
|
width: 204px;
|
}
|
|
.loginframe .user_btn input.zcbtn {
|
background: #ffa400;
|
width: 92px;
|
margin-left: 10px;
|
}
|
|
.loginframe .user_btn input:hover {
|
opacity: 0.9;
|
}
|
|
.loginfoot {
|
position: absolute;
|
bottom: 26px;
|
text-align: center;
|
margin: 0 auto;
|
width: 100%;
|
}
|
|
.loginframe .user_tip {
|
color: #808080;
|
text-align: center;
|
}
|
|
.loginframe .user_tip a {
|
text-decoration: underline;
|
color: #3d85e3;
|
}
|
|
.loginframe .user_btn input {
|
border: 0 none;
|
background: url(static/styles/images/login7btn.png);
|
width: 280px;
|
height: 96px;
|
margin: 0 0 0 30px;
|
cursor: pointer;
|
}
|
|
.loginfoot p {
|
color: #fff;
|
}
|
</style>
|
</head>
|
|
<body>
|
<form>
|
<div class="login">
|
<div class="loginbg"><img src="static/styles/images/loginbg.jpg"/></div>
|
<%-- <div class="loginlogo"><img src="static/styles/images/loginlogo_hn.png"/></div>--%>
|
<div class="loginlogo"><img src="${systemConfig.loginLogoUrl }" class="logo-login" alt=""/></div>
|
<div class="loginmain clear">
|
<div class="loginframe">
|
<div class="logintxt"><img src="static/styles/images/logintxt.png" alt="系统登录"></div>
|
<p class="loginusername"><input id="txtUserName" name="userName" type="text"
|
placeholder="请输入用户名"/></p>
|
<p class="loginpwd"><input id="txtPassword" name="password" type="password"
|
placeholder="请输入密码"/>
|
</p>
|
<c:if test="${systemConfig.enableLoginVerificationCode }">
|
<div class="clear">
|
<p class="user" style="width:160px; float:left; margin-right:5px;">
|
<i class="fa fa-key"></i>
|
<input id="validateCode" name="validateCode" type="text" placeholder="验证码"
|
style="width:100px;"/>
|
|
</p>
|
<p style="float:left;">
|
<img alt="验证码看不清,换一张" src="drawImage/drawImage" id="validateCodeImg">
|
<a href="javascript:void(0)" onclick="changeImg()" style="line-height:60px;">
|
<font size="4">换一张</font>
|
</a>
|
|
</p>
|
</div>
|
</c:if>
|
<div class="user_remember clear">
|
<input id="cbRememberMe" type="checkbox"><span>记住我</span>
|
</div>
|
<p class="user_btn"><input id="btnLogin" type="button" value=""/></p>
|
<p class="user_tip">没有账户? <a href="javascript: register();">点击注册>></a></p>
|
<%-- <p class="user_btn">--%>
|
<%-- <input type="hidden" name="returnUrl" id="hidReturnUrl" value="${resultUrl}"/>--%>
|
<%-- <input type="button" id="btnLogin" value="登录" class="dlbtn"/>--%>
|
<%-- <input type="button" id="btnRegister" value="注册" class="zcbtn"/>--%>
|
<%-- </p>--%>
|
</div>
|
</div>
|
<div class="loginfoot"><p>技术支持:${systemConfig.platformCopyRight}</p></div>
|
</div>
|
</form>
|
<script type="text/javascript">
|
$(function () {
|
$("#btnLogin").click(function (e) {
|
login();
|
});
|
|
$("#txtPassword").keyup(function (e) {
|
if (e.keyCode == "13") {
|
login();
|
}
|
});
|
|
$('#validateCode').keyup(function (e) {
|
if (e.keyCode == "13") {
|
login();
|
}
|
});
|
});
|
|
//刷新验证码
|
function changeImg() {
|
$("#validateCodeImg").attr("src", "drawImage/drawImage/?" + Math.random());
|
}
|
|
function login() {
|
var userName = $('#txtUserName').val();
|
if (userName == "") {
|
wcp.message.warn("用户名不能为空!");
|
return;
|
}
|
var password = $('#txtPassword').val();
|
if (password == "") {
|
wcp.message.warn("密码不能为空!");
|
return;
|
}
|
|
<c:if test="${systemConfig.enableLoginVerificationCode}">
|
var validateCode = $('#validateCode').val();
|
if (validateCode == "") {
|
wcp.message.warn("验证码不能为空!");
|
return;
|
}
|
</c:if>
|
|
password = CryptoJS.MD5(password).toString().toUpperCase();
|
|
var validateCode = $("#validateCode").val();
|
wcp.ui.setBusy(
|
$(".loginframe"),
|
wcp.ajax({
|
url: "account/loginIn",
|
data: JSON.stringify({
|
userName: userName,
|
password: password,
|
validateCode: validateCode,
|
rememberMe: $('#cbRememberMe').is(':checked'),
|
returnUrl: $('#hidReturnUrl').val()
|
})
|
})
|
);
|
}
|
|
//GeologicalManagement
|
|
$("#btnRegister").click(function (e) {
|
register();
|
});
|
|
function register() {
|
var url = "utilizationUser/register";
|
window.open(url);
|
}
|
</script>
|
</body>
|
</html>
|