|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
display: -webkit-flex;
|
|
|
|
|
display: flex;
|
|
|
|
|
-webkit-flex-flow: row wrap;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
/* justify-content: space-between; */
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -89,10 +89,10 @@
|
|
|
|
|
<a class="already">10</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mui-content-padded">
|
|
|
|
|
<!-- <div class="mui-content-padded">
|
|
|
|
|
<div class="flex-container"><a class="already"></a>已做</div>
|
|
|
|
|
<div class="flex-container"><a></a>未做</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -171,8 +171,15 @@
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var orderId = 1;
|
|
|
|
|
if ($.cookie('order_id')) {
|
|
|
|
|
orderId = $.cookie('order_id');
|
|
|
|
@ -203,6 +210,11 @@
|
|
|
|
|
document.getElementById("closeMenu").addEventListener("tap", function () {
|
|
|
|
|
offCanvasWrapper.offCanvas('close');
|
|
|
|
|
});
|
|
|
|
|
// 禁用手势侧滑
|
|
|
|
|
var offCanvasInner = offCanvasWrapper[0].querySelector('.mui-inner-wrap');
|
|
|
|
|
offCanvasInner.addEventListener('drag', function (event) {
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
document.getElementById("next").addEventListener("tap", function () {
|
|
|
|
|
if (orderId < queCount) {
|
|
|
|
@ -220,19 +232,11 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('input[type="checkbox"]').change(function () {
|
|
|
|
|
var reply = "";
|
|
|
|
|
$('input[type="checkbox"]').each(function () {
|
|
|
|
|
if (this.checked) {
|
|
|
|
|
reply += this.value;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
console.log(orderId)
|
|
|
|
|
console.log(reply)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mui(".mui-content").on("tap", "a", function () {
|
|
|
|
|
getQuestionInfo(this.textContent);
|
|
|
|
|
offCanvasWrapper.offCanvas('close');
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 根据题号获取题的信息
|
|
|
|
@ -264,9 +268,9 @@
|
|
|
|
|
//绑定单选框的事件
|
|
|
|
|
$('input[type="radio"]').on('change', function () {
|
|
|
|
|
// 获取选中的radio元素的值
|
|
|
|
|
var selectedValue = $(this).val();
|
|
|
|
|
var reply = $(this).val();
|
|
|
|
|
console.log(orderId)
|
|
|
|
|
console.log('选中的值为:' + selectedValue);
|
|
|
|
|
console.log('选中的值为:' + reply);
|
|
|
|
|
saveReply(orderId, reply);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|