提交 6c9946f9 authored 作者: lihuihui's avatar lihuihui

updata

上级 3a290c63
...@@ -155,6 +155,7 @@ export default { ...@@ -155,6 +155,7 @@ export default {
_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
}, },
slidePrevTransitionEnd: function() { slidePrevTransitionEnd: function() {
console.log(this.activeIndex, _this.questionsData.sheet.question_count - 1)
if (this.activeIndex === _this.questionsData.sheet.question_count - 1) { if (this.activeIndex === _this.questionsData.sheet.question_count - 1) {
this.slideTo(_this.swiperSign, 0, false) this.slideTo(_this.swiperSign, 0, false)
_this.currentNum = this.activeIndex + 1 _this.currentNum = this.activeIndex + 1
...@@ -298,7 +299,12 @@ export default { ...@@ -298,7 +299,12 @@ export default {
} }
}, },
showCard() { showCard() {
console.log(this.swiper.activeIndex, this.questionsData.sheet.question_count)
if (this.swiper.activeIndex !== this.questionsData.sheet.question_count) {
this.swiperSign = this.swiper.activeIndex this.swiperSign = this.swiper.activeIndex
} else {
this.swiperSign = this.swiper.activeIndex - 1
}
document.getElementById('bottom-view').scrollTop = 0 document.getElementById('bottom-view').scrollTop = 0
this.topicCard.isShow = true this.topicCard.isShow = true
this.swiper.slideTo(this.questionsData.sheet.question_count, 0, false) this.swiper.slideTo(this.questionsData.sheet.question_count, 0, false)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论