|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="renderer" content="webkit|ie-comp|ie-stand" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<title>宽城区学区查询信息管理系统</title>
|
|
|
|
<meta
|
|
|
|
name="viewport"
|
|
|
|
content="width=device-width,initial-scale=1,user-scalable=no"
|
|
|
|
/>
|
|
|
|
<!-- 手机端禁止缩放 -->
|
|
|
|
<meta
|
|
|
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
|
|
|
|
name="viewport"
|
|
|
|
/>
|
|
|
|
<!-- <meta name="keywords" content="长春市教育装备与信息化项目智慧管理系统"> -->
|
|
|
|
<!--关键词,5个左右,单个8汉字以内-->
|
|
|
|
<!-- <meta name="description" content="长春市教育装备与信息化项目智慧管理系统"> -->
|
|
|
|
<!--网站描述-->
|
|
|
|
<!--自己的样式-->
|
|
|
|
<link href="./css/public.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="./css/SignIn.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script src="./js/jquery-3.6.0.min.js"></script>
|
|
|
|
<script src="./js/jquery.cookie.min.js"></script>
|
|
|
|
<script src="./js/base64.js"></script>
|
|
|
|
<!--添加对公用函数库的引用-->
|
|
|
|
<!-- <script src="lib/common.js"></script>-->
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="all-content">
|
|
|
|
<div class="content clearfix">
|
|
|
|
<div class="left-img">
|
|
|
|
<img src="./images/left-img.png" />
|
|
|
|
</div>
|
|
|
|
<div class="right-content clearfix">
|
|
|
|
<div class="content-name">
|
|
|
|
<p
|
|
|
|
style="
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: bolder;
|
|
|
|
margin-left: 70px;
|
|
|
|
color: #16baaa;
|
|
|
|
"
|
|
|
|
id="system_name"
|
|
|
|
>
|
|
|
|
宽城区学区查询信息管理系统
|
|
|
|
</p>
|
|
|
|
<!-- <p style="font-size: 20px;font-weight: bolder;margin-left: -5px;"><img src="./images/title_tk.png"></p> -->
|
|
|
|
</div>
|
|
|
|
<form action="" method="post">
|
|
|
|
<div class="user-name">
|
|
|
|
<div class="user-name-li">
|
|
|
|
<img src="./images/user-icon.png" />
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
placeholder="用户名"
|
|
|
|
name="loginName"
|
|
|
|
id="usernameTxt"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="password">
|
|
|
|
<div class="password-li">
|
|
|
|
<img src="./images/pass-word.png" />
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
autocomplete="off"
|
|
|
|
placeholder="密码"
|
|
|
|
name="password"
|
|
|
|
id="passwordTxt"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <div class="vcode">
|
|
|
|
<div class="vcode-li">
|
|
|
|
<img src="./images/v-code.png">
|
|
|
|
<input type="text" placeholder="验证码" autocomplete="off" name="captcha" id="captchaTxt"
|
|
|
|
value="dsideal">
|
|
|
|
<img class="vcode-img" id="userCaptchaImage" src="/QingLong/loginPerson/getCaptcha"
|
|
|
|
alt="点击图片刷新校验码" style="cursor:pointer" onclick="javascript:refreshCaptcha()" />
|
|
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
<input
|
|
|
|
id="loginBtn"
|
|
|
|
class="input-button"
|
|
|
|
type="button"
|
|
|
|
value="登 录"
|
|
|
|
style="background-color: #16baaa"
|
|
|
|
/>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="footer" id="footer"></div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
$("#loginBtn").click(function () {
|
|
|
|
doLogin();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
//刷新验证码
|
|
|
|
function refreshCaptcha() {
|
|
|
|
$("#userCaptchaImage").attr(
|
|
|
|
"src",
|
|
|
|
"/QingLong/loginPerson/getCaptcha?rnd=" +
|
|
|
|
Math.random().toString().slice(-6)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).keydown(function (event) {
|
|
|
|
if (event.keyCode === 13) {
|
|
|
|
//回车键对应code值为13
|
|
|
|
doLogin();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
function doLogin() {
|
|
|
|
var username = $("#usernameTxt").val();
|
|
|
|
var password = $("#passwordTxt").val();
|
|
|
|
if (username.length === 0 || password.length === 0) {
|
|
|
|
alert("用户名或密码不允许为空!");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
userLogin(username, password);
|
|
|
|
}
|
|
|
|
|
|
|
|
//用户名登录
|
|
|
|
function userLogin(username, password) {
|
|
|
|
$.ajax({
|
|
|
|
type: "POST",
|
|
|
|
dataType: "json",
|
|
|
|
url: "/dsideal_yy/intellioa/sys/localLogin/login",
|
|
|
|
async: false,
|
|
|
|
data: {
|
|
|
|
login_name: Base64.encode(username),
|
|
|
|
login_pwd: Base64.encode(password),
|
|
|
|
},
|
|
|
|
|
|
|
|
success: function (res) {
|
|
|
|
console.log(res);
|
|
|
|
if (res.code === 2000) {
|
|
|
|
$.cookie("person_id", res.data.person_id);
|
|
|
|
$.cookie("identity_id", res.data.identity_id);
|
|
|
|
window.location.href = "./settings.html";
|
|
|
|
} else {
|
|
|
|
alert(res.msg);
|
|
|
|
}
|
|
|
|
// if (result.success) {
|
|
|
|
// window.location.href = "/QingLong/index.html";
|
|
|
|
// } else {
|
|
|
|
// alert(result.msg);
|
|
|
|
// if (result.redirect) {
|
|
|
|
// window.location.href = "/QingLong/plogin.html";
|
|
|
|
// }
|
|
|
|
// refreshCaptcha();
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// getPageInfo();
|
|
|
|
//获取页面信息
|
|
|
|
function getPageInfo() {
|
|
|
|
$.ajax({
|
|
|
|
type: "GET",
|
|
|
|
dataType: "json",
|
|
|
|
url: "/QingLong/global/getGlobalByCodes",
|
|
|
|
data: {
|
|
|
|
global_codes: Base64.encode("system_name,copy_right"),
|
|
|
|
},
|
|
|
|
async: false,
|
|
|
|
success: function (result) {
|
|
|
|
$("title").html(result.data[0].global_value);
|
|
|
|
$("#system_name").html(result.data[0].global_value);
|
|
|
|
$("#footer").html(result.data[1].global_value);
|
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|