142 lines
4.9 KiB
HTML
142 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title></title>
|
||
<link href="./component/layui/css/layui.css" rel="stylesheet">
|
||
|
||
<link rel="stylesheet" href="./css/font/iconfont.css">
|
||
|
||
<style>
|
||
.parentSelectButton {
|
||
margin: 0 auto;
|
||
width: 800px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
margin-top: 80px;
|
||
}
|
||
|
||
.selectButton {
|
||
width: 220px;
|
||
height: 82px;
|
||
border-radius: 10px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.selectButton_zxbm {
|
||
background: linear-gradient(142.192deg, rgb(0, 178, 248) 34.4579%, rgb(26, 194, 249) 80%);
|
||
filter: drop-shadow(rgba(23, 192, 249, 0.38) 0px 3px 6px);
|
||
}
|
||
|
||
.selectButton_dyzkz {
|
||
background: linear-gradient(137.526deg, rgb(15, 124, 200) 38.3677%, rgb(49, 161, 208) 80%);
|
||
filter: drop-shadow(rgba(40, 156, 206, 0.57) 0px 3px 6px);
|
||
}
|
||
|
||
.selectButton_ccj {
|
||
background: linear-gradient(137.553deg, rgb(29, 216, 192) 50.079%, rgb(93, 231, 214) 80%);
|
||
filter: drop-shadow(rgba(142, 242, 229, 0.86) 0px 3px 6px);
|
||
}
|
||
</style>
|
||
|
||
</head>
|
||
|
||
<body>
|
||
|
||
<body>
|
||
<div style="margin: 0 auto;width: 1000px;">
|
||
|
||
<div style="text-align: center;font-size: 24px;margin-top: 40px;" id="title">
|
||
</div>
|
||
|
||
<div style="text-align: center;font-size: 14px;padding-top: 30px;font-weight: bolder;">报名截止日期:<span
|
||
style="color: #297CFD;" id="dl_date">123</span></div>
|
||
|
||
|
||
<div class="parentSelectButton">
|
||
<div class="selectButton selectButton_zxbm" id="zxbm">
|
||
<i class="iconfont icon-zaixianbaoming" style="color: #FFFFFF;font-size: 36px;"></i>
|
||
<span style="color: #FFFFFF;font-size: 18px;margin-left: 10px;">在线报名</span>
|
||
</div>
|
||
<div class="selectButton selectButton_dyzkz" id="dyzkz">
|
||
<i class="iconfont icon-zhunkaozhenghao" style="color: #FFFFFF;font-size: 36px;"></i>
|
||
<span style="color: #FFFFFF;font-size: 18px;margin-left: 10px;">打印准考证</span>
|
||
</div>
|
||
<div class="selectButton selectButton_ccj" id="ccj">
|
||
<i class="iconfont icon-wj-cj" style="color: #FFFFFF;font-size: 36px;"></i>
|
||
<span style="color: #FFFFFF;font-size: 18px;margin-left: 10px;">查成绩</span>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<script src="./component/layui/layui.js"></script>
|
||
|
||
<script>
|
||
layui.use(['form', 'jquery'], function () {
|
||
let form = layui.form;
|
||
let $ = layui.jquery;
|
||
|
||
// 0:未报名 1:已报名
|
||
var statusFlag = 0;
|
||
|
||
$.ajax({
|
||
url: "/dsBase/hk/getCurrentHk",
|
||
async: false,
|
||
type: 'GET',
|
||
success: function (res) {
|
||
if (typeof res == "object") {
|
||
$("#title").html(res.hk_name);
|
||
$("#dl_date").html(res.end_time.substring(0, 10));
|
||
} else {
|
||
window.parent.location.href = "./login.html";
|
||
}
|
||
},
|
||
error: function (xhr, status, error) {
|
||
layer.msg("获取信息异常!", {
|
||
icon: 2,
|
||
time: 1000
|
||
});
|
||
}
|
||
});
|
||
|
||
var lsData = localStorage.getItem('studentInfo');
|
||
if (lsData == null) {
|
||
window.parent.location.href = "./login.html";
|
||
}
|
||
|
||
var studentInfo = JSON.parse(lsData);
|
||
|
||
$("#zxbm").click(function () {
|
||
if (studentInfo.res_json.length == 0) {
|
||
window.location.href = "./step.html";
|
||
} else {
|
||
window.location.href = "./info.html";
|
||
}
|
||
});
|
||
|
||
$("#dyzkz").click(function () {
|
||
layer.msg("暂未开通!", {
|
||
icon: 2,
|
||
time: 1500
|
||
});
|
||
});
|
||
|
||
$("#ccj").click(function () {
|
||
layer.msg("暂未开通!", {
|
||
icon: 2,
|
||
time: 1500
|
||
});
|
||
});
|
||
|
||
});
|
||
</script>
|
||
<script>
|
||
</script>
|
||
</body>
|
||
|
||
</html> |