Commit 30170f36 by 陈超

A

parent 4bc24412
...@@ -651,11 +651,9 @@ ...@@ -651,11 +651,9 @@
} }
that.finished.forEach( r => { that.finished.forEach( r => {
let key = 'user_answer[' + r.qId + ']' let key = 'user_answer[' + r.qId + ']'
console.log(key)
switch(r.key) { switch(r.key) {
case "radio": case "radio":
param[key] = r.option param[key] = r.option
console.log(param.key)
break break
} }
}) })
...@@ -688,8 +686,24 @@ ...@@ -688,8 +686,24 @@
let that = this let that = this
that.cacheQuestion() that.cacheQuestion()
let param = this.collectParam() let param = this.collectParam()
console.log(param) $.post(
return 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