From c01348761c7bd173ed92edb14ca1e454eaa93f6c Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 03 六月 2024 15:32:43 +0800
Subject: [PATCH] 学前儿童视频请求优化

---
 src/books/childHealth/view/content/components/chapter006.vue |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/src/books/childHealth/view/content/components/chapter006.vue b/src/books/childHealth/view/content/components/chapter006.vue
index 0e4fb6a..fb2997a 100644
--- a/src/books/childHealth/view/content/components/chapter006.vue
+++ b/src/books/childHealth/view/content/components/chapter006.vue
@@ -508,6 +508,7 @@
           <p class="blockh6-c">
             <span class="img center dl-bl w100">涓撻鍏� 瀛︿範涓婚涓�</span>
             <examinations
+            v-if="questionData && questionData[150]"
               :cardList="questionData[150]"
               :chapter="6"
               :page="142"
@@ -1270,6 +1271,7 @@
           <p class="blockh6-c">
             <span class="img center dl-bl w100">涓撻鍏� 瀛︿範涓婚浜�</span>
             <examinations
+              v-if="questionData && questionData[160]"
               :cardList="questionData[160]"
               :chapter="6"
               :page="152"
@@ -1615,6 +1617,7 @@
           <p class="blockh6-c">
             <span class="img center dl-bl w100">涓撻鍏� 瀛︿範涓婚涓�</span>
             <examinations
+            v-if="questionData && questionData[164]"
               :cardList="questionData[164]"
               :chapter="6"
               :page="156"
@@ -1975,6 +1978,7 @@
           <p class="blockh6-c">
             <span class="img center dl-bl w100">涓撻鍏� 瀛︿範涓婚鍥�</span>
             <examinations
+            v-if="questionData && questionData[167]"
               :cardList="questionData[167]"
               :chapter="6"
               :page="159"
@@ -2444,6 +2448,7 @@
           <p class="blockh6-c">
             <span class="img center dl-bl w100">涓撻鍏� 瀛︿範涓婚浜�</span>
             <examinations
+            v-if="questionData && questionData[172]"
               :cardList="questionData[172]"
               :chapter="6"
               :page="164"
@@ -2682,6 +2687,7 @@
             瀛︿範瀹屾湰涓撻锛屼綘鐨勫涔犳晥鏋滃浣曞憿锛熷挶浠竴璧锋潵鎵爜娴嬩竴娴嬪惂锛�<br />
             <span class="img">杩囧叧妫�娴嬶紙璧勬牸鑰冭瘯妯℃嫙棰橈級1</span><br />
             <examinations
+            v-if="questionData && questionData[174][1]"
               :cardList="questionData[174][1]"
               :chapter="6"
               :page="1661"
@@ -2689,6 +2695,7 @@
             <span class="span-border"></span>
             <span class="img mt-20 dl-bl">杩囧叧妫�娴嬶紙璧勬牸鑰冭瘯妯℃嫙棰橈級2</span>
             <examinations
+            v-if="questionData && questionData[174][2]"
               :cardList="questionData[174][2]"
               :chapter="6"
               :page="1662"
@@ -2713,7 +2720,7 @@
 
 <script>
 import examinations from "@/components/examinations/index.vue";
-import getResourcePath from "@/assets/methods/resources";
+import {getResourcePath} from "@/assets/methods/resources";
 export default {
   components: { examinations },
   name: "chapterSix",
@@ -2877,13 +2884,13 @@
         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;

--
Gitblit v1.9.1