黄海 2 years ago
commit 0cad24718b

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 KiB

@ -1,118 +1,271 @@
<!DOCTYPE html>
<html class="ui-page-login">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<link href="../css/mui.min.css" rel="stylesheet" />
<style>
.mui-input-group {
margin-top: 10px;
}
.mui-input-group:first-child {
margin-top: 20px;
}
.mui-input-group label {
width: 22%;
}
.mui-input-row label~input {
width: 78%;
}
.mui-content-padded {
margin-top: 25px;
}
.mui-btn {
padding: 10px;
}
</style>
</head>
<body>
<header class="mui-bar mui-bar-nav" style="height: 70px;text-align: center;font-size: 14px;font-weight:bolder;">
<div style="margin-top: 3px;">“学深悟透担使命,踔厉奋发建新功”</div>
<div>长春市教育局学习贯彻习近平新时代中国特色社会主义思想</div>
<div>知识答题活动</div>
</header>
<div class="mui-content">
<form id='login-form' class="mui-input-group" style="margin-top: 38px;">
<div class="mui-input-row">
<label style="width: 35%;"><span
style="margin-right: 2px;color: red;">*</span>&nbsp&nbsp&nbsp名</label>
<input style="width: 65%;" id='name' type="text" class="mui-input-clear mui-input" placeholder="请输入姓名">
</div>
<div class="mui-input-row">
<label style="width: 35%;"><span
style="margin-right: 2px;color: red;">*</span>&nbsp&nbsp&nbsp室</label>
<input style="width: 65%;" id='bureau' type="text" class="mui-input-clear mui-input"
placeholder="请输入处室">
</div>
<div class="mui-input-row">
<label style="width: 35%;"><span style="margin-right: 2px;color: red;">*</span>办公电话:</label>
<input style="width: 65%;" id='tel' type="text" class="mui-input-clear mui-input" placeholder="请输入办公电话">
</div>
</form>
<div class="mui-content-padded">
<button id='login' type="button" class="mui-btn mui-btn-block mui-btn-primary">开始答题</button>
</div>
</div>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.cookie.min.js"></script>
<script src="../js/mui.min.js"></script>
<script>
$.removeCookie('order_id', { path: '/' });
var loginButton = document.getElementById('login');
loginButton.addEventListener('tap', function (event) {
if ($("#name").val().trim().length == 0) {
mui.alert('姓名不能为空!', '提示');
} else if ($("#bureau").val().trim().length == 0) {
mui.alert('科室不能为空!', '提示');
} else if ($("#tel").val().trim().length == 0) {
mui.alert('办公电话不能为空!', '提示');
} else {
mui.ajax('/FengHuang/exam/addPerson', {
data: {
person_name: $("#name").val(),
ks: $("#bureau").val(),
tel: $("#tel").val()
},
type: 'post',
success: function (res) {
if (res.success) {
window.location = "./exam.html";
} else {
mui.alert(res.message, '提示');
}
},
error: function (xhr, type, errorThrown) {
//异常处理;
console.log(type);
}
});
}
});
</script>
</body>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>知识答题</title>
<style>
body {
background-image: url("../images/bg_img.png");
}
.title2_div {
text-align: center;
}
.title_p1 {
color: #F4D7A1;
font-size: 18px;
font-weight: 400;
}
.dh_div {
position: fixed;
top: 60px;
left: 50%;
transform: translateX(-50%);
}
.dh_img {
width: 184px;
height: 182px;
}
.tam_div {
position: fixed;
bottom: 0;
left: 0;
}
@font-face {
font-family: 'XK';
src: url('../images/xk.ttf');
}
.title1_div {
text-align: center;
font-family: 'XK';
margin-top: 40px;
}
.title1_p {
font-weight: 400;
font-style: normal;
font-size: 22px;
color: #F4D7A1;
line-height: 30px;
word-wrap: break-word;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.647058823529412);
text-transform: none;
}
.title3_div {
text-align: center;
}
.title2_p {
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
font-weight: 700;
font-style: normal;
font-size: 30px;
color: #FFD596;
line-height: 35px;
/* margin-left: 15px; */
}
.title3_p {
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
font-weight: 700;
font-style: normal;
font-size: 18px;
color: #FFD596;
}
.title4_div {
text-align: center;
}
.title4_p {
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
font-weight: 700;
font-style: normal;
font-size: 18px;
color: #FFD596;
}
.login {
background-color: rgba(255, 245, 225, 1);
width: 70%;
height: 300px;
position: absolute;
z-index: 9999;
top: 50%;
left: 50%;
border-radius: 3px;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
margin-top: 50px;
}
.star {
position: absolute;
top: -20px;
left: -20px;
}
input {
background-color: transparent;
border-color: transparent;
color: #D0BD93;
border: none;
border-bottom: 1px solid #D0BD93;
outline: none;
height: 25px;
width: 60%;
/* margin-left: 30px; */
margin-top: 36px;
padding-left: 30px;
font-size: 16px;
}
.input_div {
position: relative;
text-align: center;
}
.input_prefix {
position: absolute;
margin-left: 46px;
margin-top: 38px;
}
.button {
background-image: url('../images/u30.svg');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
padding: 5px 20px;
color: #FFF5E1;
text-shadow: 1px 1px 1px gray;
/*给文字添加阴影*/
border: none;
/*去掉按钮边框*/
border-radius: 5px;
/*添加圆角*/
box-shadow: 2px 2px 2px lightgray;
margin-top: 35px;
height: 40px;
width: 150px;
font-size: 16px;
}
::placeholder {
/* 全部支持情况下的设置 */
color: #D0BD93;
}
</style>
</head>
<body>
<div class="dh_div"><img class="dh_img" src="../images/dh.png" alt=""></div>
<div style="position: absolute;z-index: 999;">
<div class="title1_div">
<p class="title1_p">“学深悟透担使命,踔厉奋发建新功”</p>
</div>
<div class="title2_div">
<p class="title2_p">长春市教育局</p>
</div>
<div class="title3_div">
<p class="title3_p">学习贯彻习近平新时代中国特色社会主义思想</p>
</div>
<div class="title4_div">
<p class="title4_p">知识答题活动</p>
</div>
</div>
<div class="login">
<div class="star"><img class="tam_img" style="width: 50px;height: 50px;" src="../images/star.png"></div>
<div class="input_div">
<div class="input_prefix"><img src="../images/u18.svg"></div>
<input id="name" type="text" placeholder="请输入姓名">
</div>
<div class="input_div">
<div class="input_prefix"><img src="../images/u22.svg"></div>
<input id="bureau" type="text" placeholder="请输入处室">
</div>
<div class="input_div">
<div class="input_prefix"><img src="../images/u26.svg"></div>
<input id="tel" type="text" placeholder="请输入办公电话">
</div>
<div class="input_div">
<button id='login' type="button" class="button">开始答题</button>
</div>
</div>
<div class="tam_div">
<img class="tam_img" style="width: 100%;" src="../images/tam.png">
</div>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.cookie.min.js"></script>
<script>
$.removeCookie('order_id', { path: '/' });
$(function () {
$("#login").click(function () {
if ($("#name").val().trim().length == 0) {
alert('姓名不能为空!');
return;
} else if ($("#bureau").val().trim().length == 0) {
alert('科室不能为空!');
return;
} else if ($("#tel").val().trim().length == 0) {
alert('办公电话不能为空!');
return;
} else {
$.ajax({
type: "POST",
dataType: "json",
url: "/FengHuang/exam/addPerson",
data: {
person_name: $("#name").val(),
ks: $("#bureau").val(),
tel: $("#tel").val()
},
success: function (res) {
if (res.success) {
window.location = "./exam.html";
} else {
alert(res.message);
return;
}
}
});
}
});
});
</script>
</body>
</html>

@ -1,268 +0,0 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>知识答题</title>
<style>
body {
background-image: url("../images/bg_img.png");
}
.title2_div {
text-align: center;
}
.title_p1 {
color: #F4D7A1;
font-size: 18px;
font-weight: 400;
}
.dh_div {
position: fixed;
top: 60px;
left: 50%;
transform: translateX(-50%);
}
.dh_img {
width: 184px;
height: 182px;
}
.tam_div {
position: fixed;
bottom: 0;
left: 0;
}
@font-face {
font-family: 'XK';
src: url('../images/xk.ttf');
}
.title1_div {
text-align: center;
font-family: 'XK';
margin-top: 40px;
}
.title1_p {
font-weight: 400;
font-style: normal;
font-size: 22px;
color: #F4D7A1;
line-height: 30px;
word-wrap: break-word;
text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.647058823529412);
text-transform: none;
}
.title3_div {
text-align: center;
}
.title2_p {
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
font-weight: 700;
font-style: normal;
font-size: 30px;
color: #FFD596;
line-height: 35px;
/* margin-left: 15px; */
}
.title3_p {
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
font-weight: 700;
font-style: normal;
font-size: 18px;
color: #FFD596;
}
.title4_div {
text-align: center;
}
.title4_p {
font-family: '微软雅黑 Bold', '微软雅黑 Regular', '微软雅黑';
font-weight: 700;
font-style: normal;
font-size: 18px;
color: #FFD596;
}
.login {
background-color: rgba(255, 245, 225, 1);
width: 70%;
height: 300px;
position: absolute;
z-index: 9999;
top: 50%;
left: 50%;
border-radius: 3px;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
margin-top: 50px;
}
.star {
position: absolute;
top: -20px;
left: -20px;
}
input {
background-color: transparent;
border-color: transparent;
color: #D0BD93;
border: none;
border-bottom: 1px solid #D0BD93;
outline: none;
height: 25px;
width: 60%;
/* margin-left: 30px; */
margin-top: 36px;
padding-left: 30px;
font-size: 16px;
}
.input_div {
position: relative;
text-align: center;
}
.input_prefix {
position: absolute;
margin-left: 46px;
margin-top: 38px;
}
.button {
background-image: url('../images/u30.svg');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
padding: 5px 20px;
color: #FFF5E1;
text-shadow: 1px 1px 1px gray;
/*给文字添加阴影*/
border: none;
/*去掉按钮边框*/
border-radius: 5px;
/*添加圆角*/
box-shadow: 2px 2px 2px lightgray;
margin-top: 35px;
height: 40px;
width: 150px;
font-size: 16px;
}
::placeholder {
/* 全部支持情况下的设置 */
color: #D0BD93;
}
</style>
</head>
<body>
<div class="dh_div"><img class="dh_img" src="../images/dh.png" alt=""></div>
<div style="position: absolute;z-index: 999;">
<div class="title1_div">
<p class="title1_p">“学深悟透担使命,踔厉奋发建新功”</p>
</div>
<div class="title2_div">
<p class="title2_p">长春市教育局</p>
</div>
<div class="title3_div">
<p class="title3_p">学习贯彻习近平新时代中国特色社会主义思想</p>
</div>
<div class="title4_div">
<p class="title4_p">知识答题活动</p>
</div>
</div>
<div class="login">
<div class="star"><img class="tam_img" style="width: 50px;height: 50px;" src="../images/star.png"></div>
<div class="input_div">
<div class="input_prefix"><img src="../images/u18.svg"></div>
<input id="name" type="text" placeholder="请输入姓名">
</div>
<div class="input_div">
<div class="input_prefix"><img src="../images/u22.svg"></div>
<input id="bureau" type="text" placeholder="请输入处室">
</div>
<div class="input_div">
<div class="input_prefix"><img src="../images/u26.svg"></div>
<input id="tel" type="text" placeholder="请输入办公电话">
</div>
<div class="input_div">
<button id='login' type="button" class="button">开始答题</button>
</div>
</div>
<div class="tam_div">
<img class="tam_img" style="width: 100%;" src="../images/tam.png">
</div>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.cookie.min.js"></script>
<script>
$.removeCookie('order_id', { path: '/' });
$(function () {
$("#login").click(function () {
if ($("#name").val().trim().length == 0) {
alert('姓名不能为空!');
return;
} else if ($("#bureau").val().trim().length == 0) {
alert('科室不能为空!');
return;
} else if ($("#tel").val().trim().length == 0) {
alert('办公电话不能为空!');
return;
} else {
$.ajax({
type: "POST",
dataType: "json",
url: "/FengHuang/exam/addPerson",
data: {
person_name: $("#name").val(),
ks: $("#bureau").val(),
tel: $("#tel").val()
},
success: function (res) {
if (res.success) {
window.location = "./exam.html";
} else {
alert(res.message);
return;
}
}
});
}
});
});
</script>
</body>
</html>

@ -0,0 +1,118 @@
<!DOCTYPE html>
<html class="ui-page-login">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<link href="../css/mui.min.css" rel="stylesheet" />
<style>
.mui-input-group {
margin-top: 10px;
}
.mui-input-group:first-child {
margin-top: 20px;
}
.mui-input-group label {
width: 22%;
}
.mui-input-row label~input {
width: 78%;
}
.mui-content-padded {
margin-top: 25px;
}
.mui-btn {
padding: 10px;
}
</style>
</head>
<body>
<header class="mui-bar mui-bar-nav" style="height: 70px;text-align: center;font-size: 14px;font-weight:bolder;">
<div style="margin-top: 3px;">“学深悟透担使命,踔厉奋发建新功”</div>
<div>长春市教育局学习贯彻习近平新时代中国特色社会主义思想</div>
<div>知识答题活动</div>
</header>
<div class="mui-content">
<form id='login-form' class="mui-input-group" style="margin-top: 38px;">
<div class="mui-input-row">
<label style="width: 35%;"><span
style="margin-right: 2px;color: red;">*</span>&nbsp&nbsp&nbsp名</label>
<input style="width: 65%;" id='name' type="text" class="mui-input-clear mui-input" placeholder="请输入姓名">
</div>
<div class="mui-input-row">
<label style="width: 35%;"><span
style="margin-right: 2px;color: red;">*</span>&nbsp&nbsp&nbsp室</label>
<input style="width: 65%;" id='bureau' type="text" class="mui-input-clear mui-input"
placeholder="请输入处室">
</div>
<div class="mui-input-row">
<label style="width: 35%;"><span style="margin-right: 2px;color: red;">*</span>办公电话:</label>
<input style="width: 65%;" id='tel' type="text" class="mui-input-clear mui-input" placeholder="请输入办公电话">
</div>
</form>
<div class="mui-content-padded">
<button id='login' type="button" class="mui-btn mui-btn-block mui-btn-primary">开始答题</button>
</div>
</div>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.cookie.min.js"></script>
<script src="../js/mui.min.js"></script>
<script>
$.removeCookie('order_id', { path: '/' });
var loginButton = document.getElementById('login');
loginButton.addEventListener('tap', function (event) {
if ($("#name").val().trim().length == 0) {
mui.alert('姓名不能为空!', '提示');
} else if ($("#bureau").val().trim().length == 0) {
mui.alert('科室不能为空!', '提示');
} else if ($("#tel").val().trim().length == 0) {
mui.alert('办公电话不能为空!', '提示');
} else {
mui.ajax('/FengHuang/exam/addPerson', {
data: {
person_name: $("#name").val(),
ks: $("#bureau").val(),
tel: $("#tel").val()
},
type: 'post',
success: function (res) {
if (res.success) {
window.location = "./exam.html";
} else {
mui.alert(res.message, '提示');
}
},
error: function (xhr, type, errorThrown) {
//异常处理;
console.log(type);
}
});
}
});
</script>
</body>
</html>
Loading…
Cancel
Save