Commit f2b4175d by 陈超

A

parent dfc7cf06
...@@ -600,12 +600,7 @@ ...@@ -600,12 +600,7 @@
this.cacheQuestion() this.cacheQuestion()
this.current += 1 this.current += 1
} else { } else {
let that = this this.showFinish = true
ui.confirm("已经是最后一题了,是否交卷?", { // 是否返回第一题
yes: function() {
that.submitPaper()
}
})
} }
}, },
onPreviousQuestion: function() { onPreviousQuestion: function() {
...@@ -641,7 +636,8 @@ ...@@ -641,7 +636,8 @@
} }
}, },
//Request //Request
saveProgress: function() { //Collect Params
collectParam: function() {
let that = this let that = this
let time = that.info.reply_time * 60 - that.timeConsumed let time = that.info.reply_time * 60 - that.timeConsumed
let param = { let param = {
...@@ -661,6 +657,11 @@ ...@@ -661,6 +657,11 @@
break break
} }
}) })
return param
},
saveProgress: function() {
let that = this
let param = this.collectParam()
console.log(param) console.log(param)
return return
$.post( $.post(
......
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