Commit 93e4ca29 authored by Damon's avatar Damon

fix: 【ID1001313】【小程序-首页-答题页面】:答题模式下,回答正确后未自动跳转到下一题。

parent a4e313af
......@@ -178,9 +178,14 @@ export default {
if (currentItem == null) return
info.current = currentItem.index
this.$emit("change", info)
// 记录滑过来的位置,此值对于下一次滑动的计算很重要
this.swiperIndex = current
this.$emit("change", info)
this.$nextTick(() => {
this.swiperCurrent = current
})
if (this.model === 2) {
this.changeModel()
}
......
......@@ -179,7 +179,7 @@ export default {
current: 0,
// 仅仅记录swiper的位置
currentIndex: 0,
swiperDuration: '1000',
swiperDuration: '800',
// 分页数据
currentPage: 1,
pageSize: 100,
......@@ -465,7 +465,10 @@ export default {
}
return
}
this.current = this.currentIndex + 1
this.$nextTick(() => {
this.current = this.currentIndex + 1
console.log("this.current", this.current)
})
}
},
// 保存答案
......
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