diff --git a/WebRoot/html/dangjian/view/exam.html b/WebRoot/html/dangjian/view/exam.html
index b92e62f..a91577d 100644
--- a/WebRoot/html/dangjian/view/exam.html
+++ b/WebRoot/html/dangjian/view/exam.html
@@ -118,7 +118,11 @@
{{for xuanxiang}}
-
+ {{if checked}}
+
+ {{else}}
+
+ {{/if}}
{{/for}}
@@ -160,7 +164,7 @@
if ($.cookie('order_id')) {
orderId = $.cookie('order_id');
} else {
- $.cookie('order_id', orderId);
+ $.cookie('order_id', orderId, { path: '/' });
}
// 获取一共有多少道题
@@ -180,30 +184,34 @@
// 侧边栏对象
var offCanvasWrapper = mui('#offCanvasWrapper');
- $("#showMenu").click(function () {
+
+ document.getElementById("showMenu").addEventListener("tap", function () {
offCanvasWrapper.offCanvas('show');
});
- $("#closeMenu").click(function () {
+
+ document.getElementById("closeMenu").addEventListener("tap", function () {
offCanvasWrapper.offCanvas('close');
});
- $("#next").click(function () {
+ document.getElementById("next").addEventListener("tap", function () {
if (orderId < queCount) {
orderId++;
- $.cookie('order_id', orderId);
+ $.cookie('order_id', orderId, { path: '/' });
getQuestionInfo(orderId);
}
});
- $("#previous").click(function () {
+ document.getElementById("previous").addEventListener("tap", function () {
if (orderId > 1) {
orderId--;
- $.cookie('order_id', orderId);
+ $.cookie('order_id', orderId, { path: '/' });
getQuestionInfo(orderId);
}
});
+
+
// 根据题号获取题的信息
function getQuestionInfo(orderId) {
$.ajax({