提交 d32daafc authored 作者: lihuihui's avatar lihuihui

答题优化

上级 0659fda4
......@@ -287,6 +287,19 @@ export default {
_this.nextQuestionLoading()
}
}
},
slideNextTransitionStart: function() {
const dataNum = this.slides[this.activeIndex].attributes['data-num']
if (this.activeIndex === this.slides.length - 2 && parseInt(dataNum.nodeValue) !== parseInt(_this.questionsData.sheet.question_count)) {
_this.countPage.noSwiping = true
Toast.loading({
message: '加载中...',
duration: 1000
})
setTimeout(() => {
_this.countPage.noSwiping = false
}, 500)
}
}
}
},
......@@ -341,14 +354,10 @@ export default {
},
methods: {
prevQuestionLoading() {
this.countPage.noSwiping = true
Toast.loading({
message: '加载中...',
duration: 1000
})
setTimeout(() => {
this.countPage.noSwiping = false
}, 500)
const dId = this.swiper.slides[this.swiper.activeIndex].attributes['data-dId'].nodeValue
if (this.countPage.currentPage !== 1) {
this.countPage.currentPage--
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论