main
kgdxpr 2 years ago
parent 64665f2d6c
commit 8af1229f66

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

Loading…
Cancel
Save