提交 5759024f authored 作者: lihuihui's avatar lihuihui

updata

上级 e2b245b9
......@@ -338,14 +338,18 @@ export default {
},
// 答题卡点击跳题
cardChange(e) {
document.getElementById('bottom-view').scrollTop = 0
for (let i = 0; i < this.questionsData.sheet.question_count; i++) {
if (this.swiper.slides[i].attributes['data-dId'].nodeValue === e) {
setTimeout(() => {
document.getElementById('bottom-view').scrollTop = 0
this.swiper.slideTo(i, 0, false)
this.currentNum = this.swiper.activeIndex + 1
this.currentNum = this.questionsData.sheet.question_count >= this.swiper.activeIndex + 1
? this.questionsData.sheet.question_count
: this.swiper.activeIndex + 1
this.topicCard.isShow = false
this.currentNum === this.questionsData.sheet.question_count ? this.nextBtnShow = false : this.nextBtnShow = true
this.currentNum === this.questionsData.sheet.question_count
? this.nextBtnShow = false
: this.nextBtnShow = true
this.getIsSign()
}, 200)
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论