96 lines
3.0 KiB
HTML
96 lines
3.0 KiB
HTML
<!DOCTYPE HTML>
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
|
<meta charset="utf-8">
|
|
<head th:include="web/index::cmsHeader">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="fly-header layui-bg-black" th:replace="web/index::top">
|
|
|
|
</div>
|
|
|
|
<div class="layui-container">
|
|
<div class="layui-row layui-col-space15">
|
|
<div class="layui-col-md15">
|
|
<div class="fly-panel">
|
|
|
|
<div class="layui-col-md15">
|
|
<div class="layui-col-md12">
|
|
<div class="layui-card" th:each="item:${data}">
|
|
<div class="layui-card-header">[[${itemStat.index+1}]]:<span
|
|
th:text="${item.question.title}"></span>
|
|
<span th:if="${item.question.type=='1'}">(单选)</span>
|
|
<span th:if="${item.question.type=='2'}">(多选)</span>
|
|
<span th:if="${item.question.type=='3'}">(判断)</span>
|
|
</div>
|
|
<div class="layui-card-body" th:each="qItem:${item.question.questionItem}">
|
|
[[${qItem.number}]]:
|
|
<span th:text="${qItem.content}" ></span>
|
|
</div>
|
|
<div class="layui-card-body" th:id="${item.question.id}+'answer'">
|
|
解析:正确答案[[${item.question.answer}]]<br>
|
|
[[${item.question.label}]]
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="fly-footer" th:replace="web/index::cmsBottom">
|
|
|
|
</div>
|
|
|
|
<script src="/web/res/layui/layui.js"></script>
|
|
<script src="/js/jquery.min.js"></script>
|
|
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
|
|
document.write(unescape("%3Cspan id='cnzz_stat_icon_30088308'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "w.cnzz.com/c.php%3Fid%3D30088308' type='text/javascript'%3E%3C/script%3E"));</script>
|
|
|
|
<script type="text/javascript">
|
|
var layer;
|
|
$(function () {
|
|
layui.use('layer', function () {
|
|
layer = layui.layer;
|
|
});
|
|
})
|
|
|
|
|
|
// function endPaper() {
|
|
// var userAnswer = $("." + id + "useranswer:checked").val();
|
|
// if (userAnswer != answer) {
|
|
// layer.msg('回答错误', {icon: 2});
|
|
//
|
|
// $.ajax({
|
|
// type: 'post',
|
|
// url: "/api/v1/practice/answer",
|
|
// contentType: "application/json",
|
|
// data: "[" + id + "]",
|
|
// success: function (result) {
|
|
// if (result.code != web_status.SUCCESS) {
|
|
// $.modal.msgError(result.msg);
|
|
// }
|
|
// }
|
|
// });
|
|
//
|
|
//
|
|
// }
|
|
// $("#" + id + "answer").show()
|
|
// }
|
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
</html> |