Commit 30170f36 by 陈超

A

parent 4bc24412
......@@ -651,11 +651,9 @@
}
that.finished.forEach( r => {
let key = 'user_answer[' + r.qId + ']'
console.log(key)
switch(r.key) {
case "radio":
param[key] = r.option
console.log(param.key)
break
}
})
......@@ -688,8 +686,24 @@
let that = this
that.cacheQuestion()
let param = this.collectParam()
console.log(param)
return
$.post(
U('exams/Index/doProgressExams'),
param,
function(res) {
if (typeof(res) != 'object') {
try {
let res = JSON.parse(res)
} catch (e) {
ui.error("处理异常,请重新尝试")
}
}
if (res.status == 1) {
ui.success(res.data.info)
window.location.href = res.data.jumpurl
} else {
ui.error(res.message)
}
})
}
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment