|
|
|
@ -114,15 +114,16 @@
|
|
|
|
|
<script id="myTemplate" type="text/x-jsrender">
|
|
|
|
|
<div class="mui-card-header" style="font-size:18px">{{:content}}</div>
|
|
|
|
|
<div class="mui-card-content" style="font-size:16px">
|
|
|
|
|
<div class="mui-card-content-inner mui-input-group">
|
|
|
|
|
<div class="mui-card-content-inner mui-input-group">
|
|
|
|
|
{{for xuanxiang}}
|
|
|
|
|
<div class="mui-input-row mui-checkbox mui-left">
|
|
|
|
|
<label>{{:xuanxiang.key}}. {{:xuanxiang.value}}</label>
|
|
|
|
|
<input name="checkbox" value="Item 1" type="checkbox">
|
|
|
|
|
<label>{{:key}}. {{:value}}</label>
|
|
|
|
|
<input name="checkbox" value="{{:key}}" type="checkbox">
|
|
|
|
|
</div>
|
|
|
|
|
{{/for}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<nav class="mui-bar mui-bar-tab">
|
|
|
|
@ -153,30 +154,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var data = {
|
|
|
|
|
"score": 10,
|
|
|
|
|
"xuanxiang": [
|
|
|
|
|
{
|
|
|
|
|
"key": "A",
|
|
|
|
|
"value": "财产"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "B",
|
|
|
|
|
"value": "公民"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "B",
|
|
|
|
|
"value": "政权"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"type_id": 1,
|
|
|
|
|
"question_id": 3,
|
|
|
|
|
"content": "在互联网这个战场上,我们能否顶得住、打得赢,直接关系我国意识形态安全和______安全。"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
var template = $.templates('#myTemplate');
|
|
|
|
|
var htmlOutput = template.render(data);
|
|
|
|
|
$('#examinfo').html(htmlOutput);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getExamInfo(2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 右上角增加提交按钮
|
|
|
|
|
var header = document.getElementById("header");
|
|
|
|
@ -196,6 +179,23 @@
|
|
|
|
|
document.getElementById('offCanvasHide').addEventListener('tap', function () {
|
|
|
|
|
offCanvasWrapper.offCanvas('close');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getExamInfo(orderId) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/FengHuang/exam/getQuestion?order_id=" + orderId,
|
|
|
|
|
async: false,
|
|
|
|
|
type: 'GET',
|
|
|
|
|
success: function (res) {
|
|
|
|
|
var template = $.templates('#myTemplate');
|
|
|
|
|
var htmlOutput = template.render(res);
|
|
|
|
|
$('#examinfo').html(htmlOutput);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|