From 6486b1f44de87dc6f60388e10e9a65ae206df120 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期五, 07 六月 2024 10:50:30 +0800 Subject: [PATCH] 1 --- src/books/childHealth/view/content/components/chapter001.vue | 52 ++++++++++++++++++++++++++-------------------------- 1 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/books/childHealth/view/content/components/chapter001.vue b/src/books/childHealth/view/content/components/chapter001.vue index 443fd22..4722135 100644 --- a/src/books/childHealth/view/content/components/chapter001.vue +++ b/src/books/childHealth/view/content/components/chapter001.vue @@ -351,7 +351,7 @@ </span> </span> <examinations - v-if="testOne && questionData" + v-if="testOne && questionData && questionData[10]" :chapter="1" :page="10" :cardList="questionData[10]" @@ -704,7 +704,7 @@ <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚涓�</span> <examinations :cardList="questionData[14]" - v-if="questionData" + v-if="questionData && questionData[14]" :chapter="1" :page="6" /> @@ -1011,7 +1011,7 @@ </div> <div class="right" style="width: 60%"> <video - :src="getResourcePath('163c06871b763954952d1cd74373c618')" + :src="pathFive" poster="../../../assets/images/chapterOne/people-video-img.jpg" webkit-playsinline="true" x-webkit-airplay="true" @@ -1135,7 +1135,7 @@ <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚浜�</span> <examinations :cardList="questionData[17]" - v-if="questionData" + v-if="questionData && questionData[17]" :chapter="1" :page="9" /> @@ -1616,7 +1616,7 @@ <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚涓�</span> <examinations :cardList="questionData[22]" - v-if="questionData" + v-if="questionData && questionData[22]" :chapter="1" :page="14" /> @@ -2079,7 +2079,7 @@ <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚鍥�</span> <examinations :cardList="questionData[27]" - v-if="questionData" + v-if="questionData && questionData[27]" :chapter="1" :page="19" /> @@ -2641,7 +2641,7 @@ <div class="fl"> <div class="left" style="width: 50%"> <p class="center openImgBox"> - <img src="../../../assets/images/chapterOne/0036-1.jpg" alt="" class="w100"> + <img src="../../../assets/images/chapterOne/0036-1.png" alt="" class="w100"> </p> <p class="img">鍥�1-11 鐢锋�х敓娈栫郴缁熺ず鎰忓浘</p> </div> @@ -2703,7 +2703,7 @@ > <examinations :cardList="questionData[32]" - v-if="questionData" + v-if="questionData && questionData[32]" :chapter="1" :page="24" /> @@ -3041,7 +3041,7 @@ <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚涓�</span> <examinations :cardList="questionData[34]" - v-if="questionData" + v-if="questionData && questionData[34]" :chapter="1" :page="26" /> @@ -3506,7 +3506,7 @@ <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚鍏�</span> <examinations :cardList="questionData[39]" - v-if="questionData" + v-if="questionData && questionData[39]" :chapter="1" :page="31" /> @@ -4273,8 +4273,8 @@ <!-- <img class="img-g" alt="" src="image/0053-1.jpg" /><br /> --> <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚涔�</span> <examinations - :cardList="questionData[48]" - v-if="questionData" + :cardList="questionData[48] " + v-if="questionData && questionData[48]" :chapter="1" :page="40" /> @@ -4487,7 +4487,7 @@ <span class="img">杩囧叧妫�娴嬶紙璧勬牸鑰冭瘯妯℃嫙棰橈級1</span><br /> <examinations :cardList="questionData[50][1]" - v-if="questionData" + v-if="questionData && questionData[50][1]" :chapter="1" :page="421" /> @@ -4495,7 +4495,7 @@ <span class="img mt-20 dl-bl">杩囧叧妫�娴嬶紙璧勬牸鑰冭瘯妯℃嫙棰橈級2</span> <examinations :cardList="questionData[50][2]" - v-if="questionData" + v-if="questionData && questionData[50][2]" :chapter="1" :page="422" /> @@ -4518,7 +4518,7 @@ </template> <script> import examinations from "@/components/examinations/index.vue"; -import getResourcePath from "@/assets/methods/resources"; +import {getResourcePath} from "@/assets/methods/resources"; export default { name: "chapter-one", components: { examinations }, @@ -4708,7 +4708,6 @@ }; }, async mounted() { - this.getResourcePath = getResourcePath; this.getVideoPath(); const localData = localStorage.getItem("chapterOneData"); if (localData) { @@ -4766,23 +4765,24 @@ this.$data.learnTableNine = !this.$data.learnTableNine; } }, - getVideoPath() { - this.$data.pathOne = getResourcePath("f6f6588a75086576b87bed2fb9ca1ec1"); - this.$data.pathTwo = getResourcePath("e5993b62684fe55d13190cfe52bf00ed"); + async getVideoPath() { + console.log('pathOne',await getResourcePath("f6f6588a75086576b87bed2fb9ca1ec1")) + this.$data.pathOne = await getResourcePath("f6f6588a75086576b87bed2fb9ca1ec1"); + this.$data.pathTwo = await getResourcePath("e5993b62684fe55d13190cfe52bf00ed"); this.$data.pathThree = getResourcePath( "6b6d42213aa85aa5ff7724aaf96ffee6" ); - this.$data.pathFour = getResourcePath("17fb1555f98c8fceabce5ff75077af58"); - this.$data.pathFive = getResourcePath("163c06871b763954952d1cd74373c618"); - this.$data.pathSix = getResourcePath("1d57d897974b22f7f3191f4073ea0641"); - this.$data.pathSeven = getResourcePath( + this.$data.pathFour = await getResourcePath("17fb1555f98c8fceabce5ff75077af58"); + this.$data.pathFive = await getResourcePath("163c06871b763954952d1cd74373c618"); + this.$data.pathSix = await getResourcePath("1d57d897974b22f7f3191f4073ea0641"); + this.$data.pathSeven = await getResourcePath( "e67262b8e73ca5b05374b903defd874f" ); - this.$data.pathEight = getResourcePath( + this.$data.pathEight = await getResourcePath( "6731ebf8ea78297eedcb56521726481d" ); - this.$data.pathNine = getResourcePath("5ef5496040abee4013a5f61e3c5b42b9"); - this.$data.pathTen = getResourcePath("4afe59338bb841a498593cbe458c7d7d"); + this.$data.pathNine = await getResourcePath("5ef5496040abee4013a5f61e3c5b42b9"); + this.$data.pathTen = await getResourcePath("4afe59338bb841a498593cbe458c7d7d"); }, saveChapterOneData() { // 璁板綍绗竴寮犺緭鍏ユ暟鎹� -- Gitblit v1.9.1