| | |
| | | pathTen:'' |
| | | }; |
| | | }, |
| | | mounted() { |
| | | console.log('数据',testData[1]); |
| | | this.$data.questionData = getQuestionData(testData[1]) |
| | | async mounted() { |
| | | this.$data.questionData = await getQuestionData(testData[1]) |
| | | console.log('题目',this.$data.questionData ); |
| | | this.$data.pathOne = getResourcePath('f6f6588a75086576b87bed2fb9ca1ec1') |
| | | this.$data.pathTwo = getResourcePath('e5993b62684fe55d13190cfe52bf00ed') |
| | | this.$data.pathThree = getResourcePath('6b6d42213aa85aa5ff7724aaf96ffee6') |
| | |
| | | this.$data.videoOne = !this.$data.videoOne; |
| | | } else if (type == "testOne") { |
| | | this.$data.testOne = !this.$data.testOne; |
| | | this.getQuestionList(); |
| | | } else if(type == 'learnTableTwo') { |
| | | this.$data.learnTableTwo = !this.$data.learnTableTwo |
| | | }else if(type == 'learnTableThree') { |
| | |
| | | this.$data.learnTableNine = !this.$data.learnTableNine |
| | | } |
| | | }, |
| | | getQuestionList() { |
| | | const testData = this.$store.state.testList.find( |
| | | (item) => item.name == "专题一总论 人体概述测验题" |
| | | ); |
| | | this.$data.productLinkPath = testData.productLinkPath; |
| | | if (this.$refs.examinationOne) this.$refs.examinationOne.getIdPathList(); |
| | | }, |
| | | // getQuestionList() { |
| | | // const testData = this.$store.state.testList.find( |
| | | // (item) => item.name == "专题一总论 人体概述测验题" |
| | | // ); |
| | | // this.$data.productLinkPath = testData.productLinkPath; |
| | | // if (this.$refs.examinationOne) this.$refs.examinationOne.getIdPathList(); |
| | | // }, |
| | | }, |
| | | }; |
| | | </script> |