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

能力自测修改

上级 83ac2bd9
...@@ -253,7 +253,6 @@ export default { ...@@ -253,7 +253,6 @@ export default {
}, },
slideChangeTransitionStart: function() { slideChangeTransitionStart: function() {
const dataNum = this.slides[this.activeIndex].attributes['data-num'] const dataNum = this.slides[this.activeIndex].attributes['data-num']
_this.sildesHeightCount()
_this.setCurrentCollect() _this.setCurrentCollect()
_this.getIsSign() _this.getIsSign()
if (!dataNum) { if (!dataNum) {
...@@ -267,6 +266,7 @@ export default { ...@@ -267,6 +266,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
dataNum && (_this.requestData.answerPage = parseInt(dataNum.nodeValue)) dataNum && (_this.requestData.answerPage = parseInt(dataNum.nodeValue))
_this.errPageOrder = this.activeIndex + 1 _this.errPageOrder = this.activeIndex + 1
_this.sildesHeightCount()
}, },
slidePrevTransitionEnd: function() { slidePrevTransitionEnd: function() {
if (this.activeIndex === this.slides.length - 2) { if (this.activeIndex === this.slides.length - 2) {
...@@ -279,13 +279,13 @@ export default { ...@@ -279,13 +279,13 @@ export default {
} }
_this.currentNum = parseInt(this.slides[this.activeIndex].attributes['data-num'].nodeValue) _this.currentNum = parseInt(this.slides[this.activeIndex].attributes['data-num'].nodeValue)
_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.sildesHeightCount()
_this.setCurrentCollect() _this.setCurrentCollect()
_this.getIsSign() _this.getIsSign()
} }
if (this.activeIndex === 0) { if (this.activeIndex === 0) {
parseInt(this.slides[this.activeIndex].attributes['data-num'].nodeValue) !== 1 && (_this.prevQuestionLoading()) parseInt(this.slides[this.activeIndex].attributes['data-num'].nodeValue) !== 1 && (_this.prevQuestionLoading())
} }
_this.sildesHeightCount()
}, },
slideNextTransitionEnd: function() { slideNextTransitionEnd: function() {
const dataNum = this.slides[this.activeIndex].attributes['data-num'] const dataNum = this.slides[this.activeIndex].attributes['data-num']
...@@ -296,6 +296,7 @@ export default { ...@@ -296,6 +296,7 @@ export default {
_this.nextQuestionLoading() _this.nextQuestionLoading()
} }
} }
_this.sildesHeightCount()
}, },
slideNextTransitionStart: function() { slideNextTransitionStart: function() {
const dataNum = this.slides[this.activeIndex].attributes['data-num'] const dataNum = this.slides[this.activeIndex].attributes['data-num']
......
...@@ -323,7 +323,6 @@ export default { ...@@ -323,7 +323,6 @@ export default {
window.localStorage.examTab = 0 window.localStorage.examTab = 0
this.getCourseList() this.getCourseList()
} }
return
} else { } else {
Toast.loading({ Toast.loading({
message: '加载中...', message: '加载中...',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论