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.
116 lines
4.4 KiB
116 lines
4.4 KiB
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>吉林省普通高中学业水平合格性考试</title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="./component/layui/css/layui.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="layui-layout layui-layout-admin">
|
|
<div class="layui-header" style="background-color: #05B5F8;">
|
|
<div class="layui-logo"
|
|
style="color: #FFFFFF;box-shadow:none;font-size: 21px;width: 400px;font-weight: 550;">吉林省普通高中学业水平合格性考试
|
|
</div>
|
|
<ul class="layui-nav layui-layout-right" style="right: 25px;">
|
|
<li class="layui-nav-item layui-hide layui-show-sm-inline-block">
|
|
<a href="javascript:;">
|
|
<i class="layui-icon layui-icon-username" style="color: #FFFFFF;font-size: 16px;"></i>
|
|
<span style="color: #FFFFFF;font-size: 16px;" id="personName"></span>
|
|
</a>
|
|
<dl class="layui-nav-child">
|
|
<dd><a href="javascript:void(0);" id="changePwd">修改密码</a></dd>
|
|
<dd><a href="javascript:void(0);" id="logout">注销登录</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="layui-body" style="left: 0;">
|
|
<!-- 内容主体区域 -->
|
|
<div style="padding: 15px;height: 100%;">
|
|
<div class="layui-card layui-panel"
|
|
style="width: 1000px;height: 96%; min-height: 500px; margin: 0 auto;">
|
|
<iframe id="indexPage" data-frameid="indexPage" frameborder="no" border="0" marginwidth="0"
|
|
marginheight="0" style="width: 100%;height: 100%;" allowfullscreen="true"></iframe>
|
|
</div>
|
|
<br><br>
|
|
</div>
|
|
</div>
|
|
<div class="layui-footer" style="left: 0;text-align: center;">
|
|
<!-- 底部固定区域 -->
|
|
©版权所有:吉林省教育考试院  技术支持:东北师范大学理想软件股份有限公司
|
|
</div>
|
|
</div>
|
|
|
|
<script src="./component/layui/layui.js"></script>
|
|
<script>
|
|
//JS
|
|
layui.use(function () {
|
|
var $ = layui.$;
|
|
|
|
var sfzh = "";
|
|
var statusId = "";
|
|
|
|
$.ajax({
|
|
url: "/dsBase/hk/getStudentInfo",
|
|
async: false,
|
|
type: 'GET',
|
|
success: function (res) {
|
|
sfzh = res.sfzh;
|
|
statusId = res.status_id;
|
|
$('#personName').html(" " + res.student_name);
|
|
localStorage.setItem('studentInfo', JSON.stringify(res));
|
|
|
|
$('#indexPage').attr('src', './select.html');
|
|
|
|
}, error: function (xhr, status, error) {
|
|
layer.msg("获取学生信息异常!", {
|
|
icon: 2,
|
|
time: 1000
|
|
});
|
|
}
|
|
});
|
|
|
|
if(statusId == "-1"){
|
|
layer.open({
|
|
type: 2,
|
|
title: false,
|
|
closeBtn: 0,
|
|
shade: 0.1,
|
|
area: ['650px', '615px'],
|
|
content: './promise.html'
|
|
});
|
|
}
|
|
|
|
$("#logout").click(function () {
|
|
layer.msg("注销成功", {
|
|
icon: 1,
|
|
time: 1500
|
|
}, function () {
|
|
localStorage.removeItem("studentInfo");
|
|
location.href = "/dsBase/hk/logout";
|
|
})
|
|
// 注销逻辑 返回 true / false
|
|
return true;
|
|
});
|
|
|
|
$("#changePwd").click(function () {
|
|
layer.open({
|
|
type: 2,
|
|
title: '修改密码',
|
|
shade: 0.1,
|
|
area: ['650px', '280px'],
|
|
content: './changePwd.html?sfzh=' + sfzh
|
|
});
|
|
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |