main
kgdxpr 1 year ago
parent 576b486c4a
commit f159fb0d76

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

@ -15,8 +15,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">
<link href="./tbcss/public.css" rel="stylesheet" type="text/css"/>
<link href="./tbcss/SignIn.css" rel="stylesheet" type="text/css">
<script src="./component/pear/jsencrypt.min.js"></script>
<script src="./admin/js/jquery-3.6.0.min.js"></script>
<!--添加对公用函数库的引用-->
@ -27,12 +27,12 @@
<div class="all-content">
<div class="content clearfix">
<div class="left-img">
<img src="./img/left-img.png">
<img src="./img/left-img_tk.png">
</div>
<div class="right-content clearfix">
<div class="content-name">
<!-- <p style="font-size: 20px;font-weight: bolder">长春市教育装备与信息化项目智慧管理系统</p> -->
<p style="font-size: 20px;font-weight: bolder;margin-left: 70px;">长春市教育数据采集系统</p>
<p style="font-size: 20px;font-weight: bolder;margin-left: -5px;"><img src="./img/title_tk.png"></p>
</div>
<form action="" method="post">
@ -57,7 +57,7 @@
</div>
</div>
<input id="loginBtn" class="input-button" type="button" value="登&nbsp;&nbsp;&nbsp;录">
<input id="loginBtn" class="input-button" type="button" value="登&nbsp;&nbsp;&nbsp;录" style="background-color: #6998F4;">
</form>
</div>
</div>

@ -0,0 +1,177 @@
<!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> -->
<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="./component/pear/jsencrypt.min.js"></script>
<script src="./admin/js/jquery-3.6.0.min.js"></script>
<!--添加对公用函数库的引用-->
<!-- <script src="lib/common.js"></script>-->
</head>
<body>
<div class="all-content">
<div class="content clearfix">
<div class="left-img">
<img src="./img/left-img.png">
</div>
<div class="right-content clearfix">
<div class="content-name">
<!-- <p style="font-size: 20px;font-weight: bolder">长春市教育装备与信息化项目智慧管理系统</p> -->
<p style="font-size: 20px;font-weight: bolder;margin-left: 70px;">长春市教育数据采集系统</p>
</div>
<form action="" method="post">
<div class="user-name">
<div class="user-name-li">
<img src="./img/user-icon.png">
<input type="text" placeholder="用户名" name="loginName" id="usernameTxt">
</div>
</div>
<div class="password">
<div class="password-li">
<img src="./img/pass-word.png">
<input type="password" autocomplete="off" placeholder="密码" name="password" id="passwordTxt">
</div>
</div>
<div class="vcode">
<div class="vcode-li">
<img src="./img/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="登&nbsp;&nbsp;&nbsp;录">
</form>
</div>
</div>
</div>
<div class="footer">
©版权所有&nbsp;&nbsp;2020-2022&nbsp;&nbsp;长春市教育局装备信息与技术中心<span class="padding-5">&nbsp;&nbsp;|&nbsp;&nbsp;</span><a
href="https://beian.miit.gov.cn/" target="_blank">吉ICP备20000186号-1</a>
</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();
var captcha = $("#captchaTxt").val();
if (username.length === 0 || password.length === 0) {
alert("用户名或密码不允许为空!")
return;
}
userLogin(username, password, captcha);
}
//用户名登录
function userLogin(username, password, captcha) {
var publicKey = "-----BEGIN PUBLIC KEY-----\MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCcd+0zTY9Gn94iqkQJTlxYnEnCeFsLkk0a7hoAvi2B74VzDVV3xH0ZO9RkXvo1SgCB+uzbEWdrgQkzTqyjfTtgOguu3OnkVxIMJF34ibchTY0LWHGxq1m2gLGuVVqrlu1LtdV0X7xo/5zc8Mr+46veWb86kSpqe6rOAm69WWo5GwIDAQAB\-----END PUBLIC KEY-----";
var encrypt = new JSEncrypt();
encrypt.setPublicKey(publicKey);
if (userLoginCheck(username, password, captcha)) {
$.ajax({
type: "POST",
dataType: "json",
url: "/QingLong/loginPerson/doLogin",
data: {
"username": username,
"password": encrypt.encrypt(password),
"captcha": captcha
},
async: false,
success: function (result) {
if (result.success) {
window.location.href = '/QingLong/index.html';
} else {
alert(result.msg);
if(result.redirect){
window.location.href = '/QingLong/plogin.html';
}
refreshCaptcha();
}
}
});
}
}
//用户登录检查
function userLoginCheck(username, password, captcha) {
if (username == null || username == "") {
alert("用户名不允许为空!");
return false;
}
if (password == null || password == "") {
alert("密码不允许为空!");
return false;
}
if (captcha == null || captcha == "") {
alert("验证码不允许为空!");
return false;
}
return true;
}
//开启错误提示
function showError(error) {
$(".form-error").find("label").html(error);
$(".form-error").show();
}
//获取页面信息
function getPageInfo() {
$.ajax({
type: "POST",
dataType: "json",
url: "/baseService/global/getGlobalValueByKey",
data: {
"key": "title,copy_right"
},
async: false,
success: function (result) {
if (result.success) {
$("#system_name").html(result.title);
$("#copyright").html(result.copy_right);
$('title').html(result.title);
}
}
});
}
</script>
</body>
</html>

@ -59,8 +59,8 @@
<a class="layui-icon layui-icon-username" href="javascript:;" id="personName"></a>
<!-- 功 能 菜 单 -->
<dl class="layui-nav-child">
<dd><a href="javascript:void(0);" id="changePwd">修改密码</a></dd>
<dd><a href="javascript:void(0);" id="changeContact">修改联系方式</a></dd>
<dd id="dd_changePwd"><a href="javascript:void(0);" id="changePwd">修改密码</a></dd>
<dd id="dd_changeContact"><a href="javascript:void(0);" id="changeContact">修改联系方式</a></dd>
<dd><a href="javascript:void(0);" class="logout">注销登录</a></dd>
</dl>
</li>
@ -124,6 +124,20 @@
admin.render();
$.ajax({
type: "GET",
async: false,
url: "/QingLong/collect/isThirdParty",
success: function (res) {
if (res.success) {
if (res.is_third_party == 1) {
$('#dd_changePwd').hide();
$('#dd_changeContact').hide();
}
}
}
});
// 登出逻辑
admin.logout(function () {
$.ajax({
@ -154,7 +168,7 @@
});
$("#changeContact").click(function () {
$(".layui-this").removeAttr("class");
$(".layui-this").removeAttr("class");
layer.open({
type: 2,
title: '修改联系方式',

@ -0,0 +1,169 @@
@charset "utf-8";
/**---------------------------------------------------------
*function:
*author:
*date:2021.12.24
----------------------------------------------------------*/
html {
height: 100%;
}
body {
position: static;
background: url(../img/bg_tk.jpg) 0% 0% / cover no-repeat;
}
.all-content {
width: 100%;
height: 680px;
margin: auto;
}
.content {
width: 1150px;
height: 600px;
margin: auto;
/* background: #fff; */
background-color: rgba(255, 255, 255, 0.8);
position: absolute;
left: 50%;
top: 45%;
/* margin-left: -600px; */
transform: translate(-50%, -50%);
border-radius: 20px;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
-ms-border-radius: 20px;
-o-border-radius: 20px;
/* filter: alpha(opacity=70);
opacity: 0.7; */
}
.left-img {
margin: 80px 0 0px 60px;
float: left;
}
.content-name {
font-size: 28px;
}
.right-content {
width: 390px;
margin: 120px 0 0 120px;
float: left;
}
.right-content form {
margin: 60px 0 0 0;
}
/* 用户名 */
.user-name,
.vcode,
.password-li {
border-bottom: 1px solid #aaaaaa;
height: 50px;
line-height: 50px;
}
.vcode-li {
margin: 15px 0 0 0;
position: relative;
}
.vcode-img {
position: absolute;
right: 10px;
}
.password-li {
margin: 15px 0 0 0;
}
.user-name-li input ,
.vcode-li input ,
.password-li input {
width: 350px;
border: 0px;
margin: 0 0 0 10px;
color: #5e5e5e;
background: none;
}
.password-li input {
margin: 0 0 0 15px;
}
.verification-password {
margin: 15px 0 0 0;
}
.verification-left {
width: 190px;
border-bottom: 1px solid #aaaaaa;
height: 50px;
line-height: 50px;
color: #535353;
float: left;
}
.verification-left span {
float: left;
}
.verification-left input {
width: 120px;
float: left;
line-height: 48px;
border: none;
color: #5e5e5e;
background: none;
}
.verification-right {
float: left;
}
.verification-right img {
width: 102px;
height: 42px;
margin: 0 0 0 10px;
}
.verification-right span {
font-size: 18px;
cursor: pointer;
color: #11b8bf;
margin: 0 0 0 10px;
}
.input-button {
width: 390px;
height: 56px;
/* background: url(../img/submit-line.jpg) repeat-y center; */
border: 0px;
cursor: pointer;
color: #fff;
border-radius: 6px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
-ms-border-radius: 6px;
-o-border-radius: 6px;
margin: 64px 0 0 0;
}
.footer {
left: 0;
bottom: 0;
color: #fff;
width: 100%;
position: absolute;
text-align: center;
padding-bottom: 15px;
text-shadow: #000 0.1em 0.1em 0.1em;
font-size: 14px;
}

@ -0,0 +1,317 @@
@charset "utf-8";
/**---------------------------------------------------------
*function:
*author:
*date:2021.12.24
----------------------------------------------------------*/
body,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
blockquote,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
fieldset,
legend,
button,
input,
textarea,
th,
td {
margin: 0;
padding: 0;
}
body,
button,
input,
select,
textarea {
font: 12px/1.5tahoma, arial, \5b8b\4f53;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
}
address,
cite,
dfn,
em,
var {
font-style: normal;
}
code,
kbd,
pre,
samp {
font-family: couriernew, courier, monospace;
}
ul,
ol {
list-style: none;
}
a {
color: #fff;
text-decoration: none;
cursor: pointer;
}
a:hover {
text-decoration: none;
}
sup {
vertical-align: text-top;
}
sub {
vertical-align: text-bottom;
}
legend {
color: #333;
}
fieldset,
img {
border: 0;
}
button,
input,
select,
textarea {
font-size: 100%;
outline: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
body,
div,
span,
p,
a,
h1,
h2,
h3,
h4,
h5,
input,
button,
select,
textarea {
font-family: "Arial", "微软雅黑", "Microsoft YaHei", "Helvetica Neue", Helvetica, STHeiTi, sans-serif;
}
@media screen and (min-width:1200px) {
html {
font-size: 24px;
}
}
@media screen and (min-width: 960px) and (max-width: 1199px) {
html {
font-size: 30px;
}
}
@media screen and (min-width: 768px) and (max-width: 959px) {
html {
font-size: 20px;
}
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
html {
font-size: 18px;
}
}
@media only screen and (min-width: 350px) and (max-width: 479px) {
html {
font-size: 16px;
}
}
@media only screen and (max-width: 350px) {
html {
font-size: 14px;
}
}
html,
body {
font-size: 16px;
color: #333;
width: 100%;
}
/* 腾讯写法双清除 */
.clearfix:after,
.clearfix:before {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
zoom: 1;
}
/* 单清除浮动 阿里,网易写法*/
.clearFix:after {
content: " ";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
img {
vertical-align: middle;
}
/*移动端隐藏滚动条Hack*/
.content_msg::-webkit-scrollbar {
display: none;
}
/* 清除浮动 */
.clear {
clear: both;
}
/*左浮动*/
.fl {
float: left;
}
/*又浮动*/
.fr {
float: right;
}
/* 隐藏 */
.none {
display: none;
}
/* 图片自适应 */
.img-res {
max-width: 100%;
height: auto;
display: block;
}
/* 手机端publc css */
/* flex类 */
.flexRow {
display: box;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}
/*主轴为垂直方向,起点在上沿*/
.flexCol {
display: box;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
-moz-flex-direction: column;
-ms-flex-direction: column;
-o-flex-direction: column;
flex-direction: column;
}
/*换行,第一行在上方*/
.flexWrap {
-webkit-flex-wrap: wrap;
-moz-flex-wrap: wrap;
-ms-flex-wrap: wrap;
-o-flex-wrap: wrap;
flex-wrap: wrap;
}
/* box-sizing */
.boxBorder {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* 遮罩层*/
.mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .6);
z-index: 11;
}
.mask_high {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .6);
z-index: 222;
}
.validate {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 2rem;
line-height: 2rem;
border-radius: 0 0 .2rem .2rem;
background: #EA1B1B;
color: #fff;
text-align: center;
z-index: 2222;
font-size: .875rem;
font-weight: bold;
letter-spacing: 2px;
}
/* 共用部分 */
Loading…
Cancel
Save