You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

239 lines
12 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>长春市教育管理公共服务平台统一认证中心</title>
<link rel="stylesheet" type="text/css" href="./css/style.css"/>
<script type="text/javascript" src="./js/jquery-1.12.4.min.js"></script>
<script src="./js/jsencrypt.min.js" type="text/javascript"></script>
</head>
<body>
<div id="header">
<img src="./images/edusoa.png" style="margin-left: 30px;margin-top: 8px;"/><span
style="font-size:36px;display: block;margin-left: 233px;margin-top: -58px;font-weight:bold"
id="system_name">长春市教育管理公共服务平台统一认证中心</span>
</div>
<div class="login-wrap">
<div class="wrap clearfix">
<img src="./images/login-img.png" style="margin-top: 22px;"/>
<div class="form-box fr loginV2" style="display: block;">
<ul class="form-tab clearfix">
<li class="tab-li cur">
<a href="javascript:;" tjjj="passport.login_type.login_name">账户登录</a></li>
</ul>
<div class="form-con">
<div class="login-normal" style="display: block;">
<form id="nameLoginForm">
<div class="form-error" style="">
<i>
</i>
<label class="text"></label>
</div>
<dl class="clearfix">
<dt><em></em>户:</dt>
<dd>
<input type="text" name="loginName" id="usernameTxt" class="input-text"
autocomplete="off" placeholder="请输入账户"/></dd>
</dl>
<dl class="top1 clearfix">
<dt><em></em>码:</dt>
<dd>
<input type="password" name="password" id="passwordTxt" class="input-text" placeholder="请输入密码"></dd>
</dl>
<dl class="top2 clearfix">
<dt>验证码:</dt>
<dd>
<input name="smsCaptcha" type="text" id="captchaTxt" class="input-yzm" maxlength="6"
autocomplete="off"/>
<span class="span-yzm">
<img id="userCaptchaImage" title="点击图片刷新校验码" alt="点击图片刷新校验码" style="cursor:pointer"
onclick="javascript:refreshCaptcha()"/>
<a onclick="javascript:refreshCaptcha()" class="forget-pass" style="cursor:pointer">换一张</a></span>
</dd>
</dl>
<div class="btn-box clearfix" style="margin-top: 10px;">
<input id="loginBtn" class="btn-settlement" type="button" value="登 录"
tjjj="passport.button.login"></div>
<input type="hidden" name="captchaId" id="captchaId" value="">
<input type="hidden" name="redirect_uri" id="redirect_uri" value="">
<input type="hidden" name="client_id" id="client_id" value="">
<input type="hidden" name="response_type" id="response_type" value="">
<input type="hidden" name="oauth_callback" id="oauth_callback" value="">
<div class="link-box clearfix">
<a href="javascript:;" id="findPwd" class="forget-pass" tjjj="passport.forget.password">忘记密码?</a>
</div>
</form>
<div class="login-short clearfix">
<div class="short-left">
<h3>第三方账号登录:</h3>
<ul class="clearfix">
<li class="qq">
<a a href="https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=101470748&scope=all&redirect_uri=http://fort.edusoa.com:7777/oauth2/qqLogin" tjjj="passport.login.thd.login.qq"></a>
</li>
<li class="weixin">
<a href="https://open.weixin.qq.com/connect/qrconnect?appid=wx3e0449144386938a&redirect_uri=http://fort.edusoa.com:7777/sso/static/jumpWx.html&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect" tjjj="passport.login.thd.login.weixin"></a>
</li>
</ul>
</div>
<div class="short-right">
<h3>您还可以选择:</h3>
<p class="phone-short clearfix">
<i class="phone"></i>
<!--<a href="javascript:;" tjjj="" class="txt phoneLogin">手机快捷登录</a>-->
<a href="#" tjjj="" class="txt phoneLogin">手机快捷登录</a>
</p>
</div>
</div>
</div>
</div>
</div>
<!-- -快捷登录 -->
<div class="form-box fr shortLogin" style="display: none;">
<ul class="form-tab clearfix">
<li class="tab-li cur">
<a href="javascript:;" tjjj="passport.login_type.login_name">手机快捷登录</a></li>
</ul>
<div class="form-con">
<form id="mobileLoginForm">
<div class="form-error" style="">
<i>
</i>
<label class="text"></label>
</div>
<dl class="clearfix">
<dt>手机号:</dt>
<dd>
<input type="text" id="phoneTxt" autocomplete="off" class="input-text mobile" maxlength="11"
placeholder="请输入手机号"/>
</dd>
</dl>
<!--
<dl class="top1 clearfix">
<dt>验证码:</dt>
<dd>
<input name="smsCaptcha" type="text" id="partnerYzm" class="input-yzm" onblur="captchCheck(this);" maxlength="4" autocomplete="off" />
<span class="span-yzm">
<img id="smsCaptchaImage" title="点击图片刷新校验码" alt="点击图片刷新校验码" onclick="changeCode('smsCaptchaImage','partnerYzm');" />
<a href="javascript:changeCode('smsCaptchaImage','partnerYzm');" class="forget-pass">换一张</a></span>
</dd>
</dl>
-->
<dl class="top1 clearfix">
<dt>动态码:</dt>
<dd>
<input name="code" type="text" id="smsCode" class="input-jym" maxlength="6"
autocomplete="off" placeholder="请输入动态码"/>
<a id="smsSendButton" onclick="sendSms();" class="span-jym" style="cursor:pointer"
tjjj="passport.send.msg">发送动态码</a></dd>
</dl>
<div class="btn-box clearfix" style="margin-top: 35px;">
<input id="smsFlagHidden" type="hidden"/>
<input id="smsLoginBtn" class="btn-settlement" type="button" value="登 录"
tjjj="passport.quick.button.login"></div>
<div class="link-box clearfix" style="margin-top: 30px;">
<a href="javascript:;" class="backLogin">返回账号登录>></a></div>
</form>
</div>
</div>
</div>
</div>
<div style="text-align:center" id="copyright">
<br/>
Copyright © 2000-2018 东北师大理想软件股份有限公司 版权所有 吉ICP备13001399号-1
</div>
</body>
<script type="text/javascript">
$(function () {
//获取验证码
refreshCaptcha();
//注册登录
$("#loginBtn").click(function () {
doLogin();
});
$("#redirect_uri").val(getUrlParam("redirect_uri"));
$("#client_id").val(getUrlParam("client_id"));
$("#response_type").val(getUrlParam("response_type"));
$("#oauth_callback").val(getUrlParam("oauth_callback"));
});
function doLogin() {
// 公有 key
var pubkey = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDJq4zg2Wn/A+IZZG/86sTBqgHe\n" +
"RzAPbBoVGhCclqwfqDCYzYts/nK/0Is0Qrsa0ul4M1eRTYBQwqr3OACWjWpLUBYA\n" +
"uavHfUu3t0sez5sIy1hVlX3Ztd9gG1N3s6zMRQULJr8kCjI7k7Ziu5TnxSfg9WCa\n" +
"0+MiRCU6ZfJmWaz2jQIDAQAB";
var encrypt = new JSEncrypt();
encrypt.setPublicKey(pubkey);
var encrypted = encrypt.encrypt($('#passwordTxt').val());
var data = {
"username": $("#usernameTxt").val(),
"password": encrypted,
"value": $("#captchaTxt").val(),
"captchaId": $("#captchaId").val(),
"redirect_uri": $("#redirect_uri").val(),
"client_id": $("#client_id").val(),
"response_type": $("#response_type").val(),
"oauth_callback": $("#oauth_callback").val(),
//设备代码, WEB:1手机2PAD3
"device_id": 1
};
$.ajax({
url: "/oauth2/authorize", //请求的url地址
dataType: "json", //返回格式为json
async: true,//请求是否异步默认为异步这也是ajax重要特性
type: "POST", //请求方式
data: data,
success: function (req) {
console.log(req);
if (req["code"] != 200) {
refreshCaptcha();
alert(req["msg"]);
} else {
window.location.href = req["items"];
}
}
});
}
$(document).keydown(function (event) {
if (event.keyCode == 13) {//回车键对应code值为13
doLogin();
}
});
//获取参数
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null)
return unescape(r[2]);
return null;
}
//获取验证码
function refreshCaptcha() {
$.ajax({
type: "GET",
dataType: "json",
url: "/oauth2/getCaptcha",
async: false,
success: function (result) {
$("#captchaId").val(result.data);
$("#userCaptchaImage").attr("src", "/oauth2/getCaptchaPng?captchaId=" + result.data);
}
});
}
</script>
</html>