diff --git a/WebRoot/html/dangjian/view/exam.html b/WebRoot/html/dangjian/view/exam.html
index 35aceee..289ecce 100644
--- a/WebRoot/html/dangjian/view/exam.html
+++ b/WebRoot/html/dangjian/view/exam.html
@@ -393,6 +393,8 @@
orderId--;
$.cookie('order_id', orderId, { path: '/' });
getQuestionInfo();
+ } else {
+ mui.alert('已到第一题', '提示');
}
});
@@ -439,12 +441,16 @@
// 获取选中的radio元素的值
var reply = $(this).val();
saveReply(orderId, reply);
- setTimeout(function () {
- orderId++;
- console.log(orderId);
- $.cookie('order_id', orderId, { path: '/' });
- getQuestionInfo(orderId);
- }, 500);
+ if (orderId < queCount) {
+ setTimeout(function () {
+ orderId++;
+ console.log(orderId);
+ $.cookie('order_id', orderId, { path: '/' });
+ getQuestionInfo(orderId);
+ }, 500);
+ } else {
+ mui.alert('已到最后一题', '提示');
+ }
});