Commit a970d48b authored by Damon's avatar Damon

fix: 【ID1001320】【小程序-首页-模拟考试】:模拟考试未答完试题,点击返回按钮,未弹出考试成绩弹窗

parent 20c142f2
......@@ -5,6 +5,7 @@
background="transparent"
titleColor="#191C27"
:border-bottom="false"
:custom-back="customBack"
title="答题"
title-bold
></u-navbar>
......@@ -320,7 +321,22 @@ export default {
this.loadMore(current)
},
// 返回
customBack() {
if (this.source === 3) { // 如果已答题,点击返回提示交卷
const count = this.list.reduce((accumulator, currentValue) => {
if (currentValue.submitStatus) accumulator++
return accumulator
}, 0)
if (count > 1) {
this.handPapers()
return
}
}
this.$u.route({
type: 'back'
})
},
loadMore(current) {
let list = this.list
......
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