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

修改缓存试题接口

上级 522015d1
......@@ -275,7 +275,6 @@ export default {
} else {
this.swiper.slides[this.swiper.activeIndex].style.paddingBottom = '1.2rem'
}
// console.log(this.swiper.slides[this.swiper.activeIndex])
},
collectQuestion() {
const queIds = this.collect.currentId
......@@ -666,8 +665,8 @@ export default {
this.scrollDom()
}, 1000)
setTimeout(() => {
this.cardChange(this.$route.query.id)
}, 100)
this.$route.query.id !== undefined && this.cardChange(this.$route.query.id)
}, 500)
this.currentNum === this.questionsData.sheet.question_count ? this.nextBtnShow = false : this.nextBtnShow = true
if (res.answers !== null) {
if (res.answers.answerPage !== undefined && this.$route.query.id === undefined && res.answers.answerPage !== this.questionsData.sheet.question_count) {
......@@ -745,6 +744,9 @@ export default {
this.$emit('goExamResult', this.requestParam)
},
examSubmit(status, isSub) {
if (status === 0 && this.swiper.activeIndex + 1 === this.swiper.slides.length) {
return false
}
const reqData = this.requestData
const param = {
sheet_id: this.questionsData.sheet.id,
......
......@@ -367,8 +367,6 @@ export default {
if (this.isMove) {
this.isMove = false
const goIndex = this.questionData.list.findIndex(item => { return item.question_id === window.localStorage.myQuestionDetileId })
console.log(goIndex, window.localStorage.myQuestionDetileId)
console.log(JSON.stringify(this.questionData.list))
this.swiper.slideTo(goIndex, 0, false)
}
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论