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.

221 lines
7.3 KiB

2 years ago
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!--标准mui.css-->
<link rel="stylesheet" href="../css/mui.min.css">
<!--App自定义的css-->
<link rel="stylesheet" type="text/css" href="../css/app.css" />
<style>
.flex-container {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
/* justify-content: space-between; */
text-align: center;
}
.mui-content-padded {
padding: 10px;
}
.mui-content-padded a {
2 years ago
margin: 8px;
2 years ago
width: 35px;
height: 35px;
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 25px;
background-clip: padding-box;
}
.legend {
display: flex;
justify-content: space-around;
align-items: center;
}
.legend a {
margin: 10px;
width: 20px;
height: 20px;
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 25px;
background-clip: padding-box;
}
.legend span {
font-size: 14px;
}
.mui-content-padded a .mui-icon {
margin-top: 12px;
}
.mui-spinner,
.mui-spinner-white {
margin-top: 12px
}
.active .mui-spinner-indicator {
background: #007AFF;
}
.mui-content a {
color: #8F8F94;
}
2 years ago
.mui-content a.wrong {
2 years ago
color: #fff;
2 years ago
border: 1px solid #e74c3c;
background-color: #e74c3c;
}
.mui-content a.right {
color: #fff;
border: 1px solid #27ae60;
background-color: #27ae60;
2 years ago
}
</style>
</head>
<body>
2 years ago
<header id="header" class="mui-bar mui-bar-nav">
<h1 class="mui-title">长春市教育局党建知识问答</h1>
</header>
2 years ago
<div class="mui-content">
<div class="mui-card">
<div class="mui-card-content">
2 years ago
<div class="mui-content-padded" id="answers">
2 years ago
<script id="answersTemplate" type="text/x-jsrender">
2 years ago
<p style="text-align: center;color: orange;font-size: 18px;font-weight: bold;">本次成绩</p>
2 years ago
<p style="text-align: center;font-size: 12px;">交卷时间:{{:end_time}} </p>
2 years ago
<p style="text-align: center;font-size: 16px;">得分:<span style="color: red;font-weight: bold;font-size: 20px;">{{:sum}}</span>
&nbsp&nbsp&nbsp&nbsp 用时:<span style="color: red;font-size: 20px;">{{:ys}}</span></p>
2 years ago
<div class="flex-container" >
2 years ago
{{for list}}
2 years ago
{{if flag == 0}}
<a>{{:order_id}}</a>
{{else flag == 1}}
<a class="right">{{:order_id}}</a>
{{else }}
<a class="wrong">{{:order_id}}</a>
{{/if}}
2 years ago
{{/for}}
</div>
2 years ago
</script>
</div>
2 years ago
<div class="legend">
2 years ago
<div class="legend"><a></a><span>未做</span></div>
2 years ago
<div class="legend"><a class="right"></a><span>正确</span></div>
<div class="legend"><a class="wrong"></a><span>错误</span></div>
</div>
2 years ago
</div>
</div>
2 years ago
2 years ago
2 years ago
<div class="mui-card" id="examinfo"></div>
<script id="myTemplate" type="text/x-jsrender">
<div class="mui-card-header" style="font-size:18px;line-height: 1.8;">{{:order_id}}、<font style="color:#E73A30;">[{{:type_name}}]</font>&nbsp{{:content}}</div>
<div class="mui-card-content" style="font-size:16px">
<div class="mui-card-content-inner mui-input-group">
{{for xuanxiang}}
<div class="mui-input-row mui-left">
<label style="width:100%;margin-left:10px">{{:key}}. {{:value}}</label>
2 years ago
</div>
2 years ago
{{/for}}
2 years ago
</div>
</div>
2 years ago
<div class="mui-card-footer" >
2 years ago
{{if flag == 1}}
<span>考生答案:<span style="color:#27ae60;">{{:reply}}</span></span>
<span class="mui-icon mui-icon-checkmarkempty" style="color:#27ae60;"></span>
{{else}}
<span>考生答案:<span style="color:#e74c3c;">{{:reply}}</span></span>
<span class="mui-icon mui-icon-closeempty" style="color:#e74c3c;"></span>
{{/if}}
<span style="margin-left:50px">正确答案:<span style="color:#27ae60;">{{:answer}}</span></span>
2 years ago
</div>
2 years ago
<div class="mui-card-footer">解析:{{:memo}}</div>
2 years ago
</script>
2 years ago
</div>
2 years ago
<script src="../js/jquery.min.js"></script>
2 years ago
<script src="../js/mui.min.js"></script>
<script src="../js/jsrender.min.js"></script>
<script>
2 years ago
$(function () {
2 years ago
//获取答题卡信息
getAnswerSheet();
2 years ago
mui(".mui-content").on("tap", "a", function () {
2 years ago
orderId = this.textContent;
getQuestionInfo(this.textContent);
})
// 根据题号获取题的信息
function getQuestionInfo(orderId) {
$.ajax({
2 years ago
url: "/FengHuang/exam/getQuestion?order_id=" + orderId + "&finish=1",
2 years ago
async: false,
type: 'GET',
success: function (res) {
var template = $.templates('#myTemplate');
var htmlOutput = template.render(res);
$('#examinfo').html(htmlOutput);
}
});
};
// 获取答题卡信息
function getAnswerSheet() {
$.ajax({
2 years ago
url: "/FengHuang/exam/getPersonAllInfoAfterJiaoJuan",
2 years ago
async: false,
type: 'GET',
success: function (res) {
var template = $.templates('#answersTemplate');
var htmlOutput = template.render(res);
$('#answers').html(htmlOutput);
}
});
}
2 years ago
2 years ago
});
</script>
</body>
</html>