Commit 4789ffc8 authored by Damon's avatar Damon

fix: 答案错误不回显状态

parent 4aa2743b
......@@ -86,7 +86,7 @@ export default {
// 此值控制swiper的位置
swiperCurrent: 0,
// 当前swiper渲染的items
swiperList: [1, 2, 3],
swiperList: [],
}
},
watch: {
......@@ -126,6 +126,7 @@ export default {
this.swiperCurrent = current
},
answerChange(status, lists, userAnswer) {
this.$set(this.swiperList[this.swiperIndex], 'answerList', lists)
this.$set(this.swiperList[this.swiperIndex], 'errShow', this.type === 2 ? true : status === 'fail')
this.$set(this.swiperList[this.swiperIndex], 'submitStatus', true)
this.$emit("answerChange", status, lists, userAnswer)
......@@ -216,6 +217,7 @@ export default {
swiperList[current] = currentItem
swiperList[this.getLastSwiperChangeIndex(current)] = this.getLastSwiperNeedItem(currentItem, list)
swiperList[this.getNextSwiperChangeIndex(current)] = this.getNextSwiperNeedItem(currentItem, list)
console.log("swiperList", swiperList)
return swiperList;
},
/**
......
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