| | |
| | | showPageList: { |
| | | type: Array, |
| | | }, |
| | | isSearch: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }; |
| | | }, |
| | | async mounted() { |
| | | const localData = localStorage.getItem("chapterSixData"); |
| | | if (localData) { |
| | | this.chapterSixData = JSON.parse(localData); |
| | | } |
| | | window.timerSix = setInterval(() => { |
| | | this.saveTime--; |
| | | if (this.saveTime == 0) { |
| | | this.saveChapterOneData(); |
| | | if(!this.isSearch) { |
| | | const localData = localStorage.getItem("chapterSixData"); |
| | | if (localData) { |
| | | this.chapterSixData = JSON.parse(localData); |
| | | } |
| | | }, 1000); |
| | | this.getVideoPath(); |
| | | window.timerSix = setInterval(() => { |
| | | this.saveTime--; |
| | | if (this.saveTime == 0) { |
| | | this.saveChapterOneData(); |
| | | } |
| | | }, 1000); |
| | | this.getVideoPath(); |
| | | } |
| | | }, |
| | | unmounted() { |
| | | if (window.timerSix) { |
| | |
| | | this.$data.learnTableFive = !this.$data.learnTableFive; |
| | | } |
| | | }, |
| | | getVideoPath() { |
| | | this.$data.pathOne = getResourcePath("816cf9d161803aea47ea583ba5d4f0ac"); |
| | | this.$data.pathTwo = getResourcePath("15d4b47f10359b7ad77d87e2327db429"); |
| | | this.$data.pathThree = getResourcePath( |
| | | async getVideoPath() { |
| | | this.$data.pathOne = await getResourcePath("816cf9d161803aea47ea583ba5d4f0ac"); |
| | | this.$data.pathTwo = await getResourcePath("15d4b47f10359b7ad77d87e2327db429"); |
| | | this.$data.pathThree = await getResourcePath( |
| | | "66c19c1c7a772fc88080b607f70eebaf" |
| | | ); |
| | | this.$data.pathFour = getResourcePath("a548917a24721ef2b37e1053ac843af4"); |
| | | this.$data.pathFour = await getResourcePath("a548917a24721ef2b37e1053ac843af4"); |
| | | }, |
| | | saveChapterOneData() { |
| | | this.saveTime = 20; |