| | |
| | | showPageList: { |
| | | type: Array, |
| | | }, |
| | | isSearch: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }; |
| | | }, |
| | | async mounted() { |
| | | const localData = localStorage.getItem("chapterEnightData"); |
| | | if (localData) { |
| | | this.chapterEnightData = JSON.parse(localData); |
| | | } |
| | | window.timerEnight = setInterval(() => { |
| | | this.saveTime--; |
| | | if (this.saveTime == 0) { |
| | | this.saveChapterOneData(); |
| | | if(!this.isSearch) { |
| | | const localData = localStorage.getItem("chapterEnightData"); |
| | | if (localData) { |
| | | this.chapterEnightData = JSON.parse(localData); |
| | | } |
| | | }, 1000); |
| | | this.getVideoPath(); |
| | | window.timerEnight = setInterval(() => { |
| | | this.saveTime--; |
| | | if (this.saveTime == 0) { |
| | | this.saveChapterOneData(); |
| | | } |
| | | }, 1000); |
| | | this.getVideoPath(); |
| | | } |
| | | }, |
| | | unmounted() { |
| | | if (window.timerEnight) { |
| | |
| | | JSON.stringify(this.chapterEnightData) |
| | | ); |
| | | }, |
| | | getVideoPath() { |
| | | this.$data.pathOne = getResourcePath("53d9f18bbb3250e624ab608210ae3d1d"); |
| | | this.$data.pathTwo = getResourcePath("faf38c63d16c12a7e415f9aee6e23880"); |
| | | this.$data.pathThree = getResourcePath( |
| | | async getVideoPath() { |
| | | this.$data.pathOne = await getResourcePath("53d9f18bbb3250e624ab608210ae3d1d"); |
| | | this.$data.pathTwo = await getResourcePath("faf38c63d16c12a7e415f9aee6e23880"); |
| | | this.$data.pathThree = await getResourcePath( |
| | | "e791b057b3f750aff6817824030a273a" |
| | | ); |
| | | this.$data.pathFour = getResourcePath("e79fdcbd2f8237a837f5b3ebd8d77fed"); |
| | | this.$data.pathFive = getResourcePath("03538bf15c4368ba80a3c9e298268df7"); |
| | | this.$data.pathSix = getResourcePath("11f13bd738b960faa42be7267cfdcbb6"); |
| | | this.$data.pathSeven = getResourcePath( |
| | | this.$data.pathFour = await getResourcePath("e79fdcbd2f8237a837f5b3ebd8d77fed"); |
| | | this.$data.pathFive = await getResourcePath("03538bf15c4368ba80a3c9e298268df7"); |
| | | this.$data.pathSix = await getResourcePath("11f13bd738b960faa42be7267cfdcbb6"); |
| | | this.$data.pathSeven = await getResourcePath( |
| | | "36a4b835e252c744d53fbb331de3f1cf" |
| | | ); |
| | | this.$data.pathEight = getResourcePath( |
| | | this.$data.pathEight = await getResourcePath( |
| | | "0f415d69790bd6044b74b30947f628f5" |
| | | ); |
| | | this.$data.pathNine = getResourcePath("bf45a94562ab237da0ef65ba33631022"); |
| | | this.$data.pathTen = getResourcePath("f7b5594f23b2ded96e15b99c296be54d"); |
| | | this.$data.pathNine = await getResourcePath("bf45a94562ab237da0ef65ba33631022"); |
| | | this.$data.pathTen = await getResourcePath("f7b5594f23b2ded96e15b99c296be54d"); |
| | | }, |
| | | }, |
| | | }; |