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);
setTimeout(function () { if (orderId < queCount) {
orderId++; setTimeout(function () {
console.log(orderId); orderId++;
$.cookie('order_id', orderId, { path: '/' }); console.log(orderId);
getQuestionInfo(orderId); $.cookie('order_id', orderId, { path: '/' });
}, 500); getQuestionInfo(orderId);
}, 500);
} else {
mui.alert('已到最后一题', '提示');
}
}); });

Loading…
Cancel
Save