From 46c17ea395352fc3d2bd3d5e5163f601f4d466c1 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 17 五月 2024 15:28:17 +0800
Subject: [PATCH] 题目传参

---
 src/books/childHealth/view/content/components/chapter009.vue |   54 +++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 35 insertions(+), 19 deletions(-)

diff --git a/src/books/childHealth/view/content/components/chapter009.vue b/src/books/childHealth/view/content/components/chapter009.vue
index e605064..43aa299 100644
--- a/src/books/childHealth/view/content/components/chapter009.vue
+++ b/src/books/childHealth/view/content/components/chapter009.vue
@@ -219,7 +219,7 @@
           </div>
           <div class="right" style="width: 60%">
             <video
-              src="http://182.92.203.7:3007/books/resource/1/video/chapterNine/涓撻涔濓細鍔ㄥ姏瀹氬瀷鍙婂叾褰㈡垚.mp4"
+              :src="pathOne"
               poster="../../../assets/images/chapterTwo/people-video-img.png"
               webkit-playsinline="true"
               x-webkit-airplay="true"
@@ -486,7 +486,7 @@
           </div>
           <div class="right" style="width: 65%">
             <video
-              src="http://182.92.203.7:3007/books/resource/1/video/chapterNine/涓撻涔濓細涓冩娲楁墜娉�.mp4"
+              :src="pathTwo"
               poster="../../../assets/images/chapterTwo/people-video-img.png"
               webkit-playsinline="true"
               x-webkit-airplay="true"
@@ -531,9 +531,8 @@
           浜戞祴璇�
         </h6>
         <p class="blockh6-c center">
-          <!-- <img class="img-g" alt="" src="image/0256-2.jpg" /><br /> -->
-          <!-- <span class="img">涓撻涔� 瀛︿範涓婚涓�</span> -->
-          <examinations :cardList="questionData[9][243]" />
+          <span class="img center dl-bl w100">涓撻涔� 瀛︿範涓婚涓�</span>
+          <examinations :cardList="questionData[243]" />
         </p>
       </div>
     </div>
@@ -778,7 +777,7 @@
           </div>
           <div class="right" style="width: 60%">
             <video
-              src="http://182.92.203.7:3007/books/resource/1/video/chapterNine/涓撻涔濓細鏅ㄩ棿妫�鏌�.mp4"
+              :src="pathThree"
               poster="../../../assets/images/chapterOne/people-video-img.jpg"
               webkit-playsinline="true"
               x-webkit-airplay="true"
@@ -830,7 +829,7 @@
           </div>
           <div class="right" style="width: 60%">
             <video
-              src="http://182.92.203.7:3007/books/resource/1/video/chapterNine/涓撻涔濓細棰勯槻鎺ョ.mp4"
+              :src="pathFour"
               poster="../../../assets/images/chapterOne/people-video-img.jpg"
               webkit-playsinline="true"
               x-webkit-airplay="true"
@@ -1016,7 +1015,7 @@
           </div>
           <div class="right" style="width: 60%">
             <video
-              src="http://182.92.203.7:3007/books/resource/1/video/chapterNine/涓撻涔濓細浼犳煋鐥呭熀纭�鐭ヨ瘑鈥斺�旈殧绂�.mp4"
+              :src="pathFive"
               poster="../../../assets/images/chapterTwo/people-video-img.png"
               webkit-playsinline="true"
               x-webkit-airplay="true"
@@ -1065,7 +1064,7 @@
           </div>
           <div class="right" style="width: 60%">
             <video
-              src="http://182.92.203.7:3007/books/resource/1/video/chapterNine/涓撻涔濓細浼犳煋鐥呭熀纭�鐭ヨ瘑鈥斺�旀秷姣�.mp4"
+              :src="pathSix"
               poster="../../../assets/images/chapterTwo/people-video-img.png"
               webkit-playsinline="true"
               x-webkit-airplay="true"
@@ -1185,7 +1184,7 @@
           </div>
           <div class="right" style="width: 60%">
             <video
-              src="http://182.92.203.7:3007/books/resource/1/video/chapterNine/涓撻涔濓細鐜鍗敓鍒跺害涓庡崼鐢熶繚鍋ョ櫥璁般�佺粺璁″埗搴�.mp4"
+              :src="pathSeven"
               poster="../../../assets/images/chapterTwo/people-video-img.png"
               webkit-playsinline="true"
               x-webkit-airplay="true"
@@ -1263,9 +1262,8 @@
           浜戞祴璇�
         </h6>
         <p class="blockh6-c">
-          <!-- <img class="img-g" alt="" src="image/0267-1.jpg" /><br /> -->
-          <!-- <span class="img">涓撻涔� 瀛︿範涓婚浜�</span> -->
-          <examinations :cardList="questionData[9][255]" />
+          <span class="img center dl-bl w100">涓撻涔� 瀛︿範涓婚浜�</span>
+          <examinations :cardList="questionData[255]" />
         </p>
         <h6 class="Conclusion-title4">涓撻灏忕粨</h6>
         <p class="blockh6">
@@ -1389,9 +1387,10 @@
         <p class="blockh6-c">
           瀛︿範瀹屾湰涓撻锛屼綘鐨勫涔犳晥鏋滃浣曞憿锛熷挶浠竴璧锋潵鎵爜娴嬩竴娴嬪惂锛�<br />
           <span class="img">杩囧叧妫�娴嬶紙璧勬牸鑰冭瘯妯℃嫙棰橈級1</span><br />
-          <examinations :cardList="questionData[9][2561]" />
-          <span class="img">杩囧叧妫�娴嬶紙璧勬牸鑰冭瘯妯℃嫙棰橈級2</span>
-          <examinations :cardList="questionData[9][2562]" />
+          <examinations :cardList="questionData[2561]" />
+          <span class="span-border"></span>
+          <span class="img mt-20 dl-bl">杩囧叧妫�娴嬶紙璧勬牸鑰冭瘯妯℃嫙棰橈級2</span>
+          <examinations :cardList="questionData[2562]" />
         </p>
         <h6 class="Conclusion-title4">鈥㈠涔犲弽鎬濃��</h6>
         <p class="blockh6 m0-t0 fl fl-di fl-cn">
@@ -1420,6 +1419,9 @@
 import evenHeader from "../../components/pageHeader/evenHeader.vue";
 import oddHeader from "../../components/pageHeader/oddHeader.vue";
 import examinations from "@/components/examinations/index.vue";
+import getQuestionData from '@/assets/methods/examination'
+import testData from '../../../assets/examinationList'
+import getResourcePath from '@/assets/methods/resources'
 export default {
   name: "chapterNine",
   components: { evenHeader, oddHeader,examinations },
@@ -1435,11 +1437,25 @@
       learnTableThree: true,
       learnTableFour: true,
       learnTableFive: true,
-      questionData:{}
+      questionData:{},
+      pathOne: "",
+      pathTwo: "",
+      pathThree: "",
+      pathFour: "",
+      pathFive:"",
+      pathSix: "",
+      pathSeven: "",
     };
   },
-  mounted() {
-    this.$data.questionData = this.$store.state.questionData
+  async mounted() {
+    this.$data.questionData = await getQuestionData('9',testData[9])
+    this.$data.pathOne = getResourcePath("730ab5395d1b5b5c87d7422cc6540f35");
+    this.$data.pathTwo = getResourcePath("e3c6884dc80cf947e3a38c5595d474ad");
+    this.$data.pathThree = getResourcePath("bdaec679118721e0623d62ac3031288e");
+    this.$data.pathFour = getResourcePath("c61f14623b01adaa326d18f2a19b822b");
+    this.$data.pathFive = getResourcePath("c469389f516c81f13e4d0440bd9ec87e");
+    this.$data.pathSix = getResourcePath("f8d747892eb8af7ed16bcb71967d414f");
+    this.$data.pathSeven = getResourcePath("960e9aa17b48e900b08cde6e44b774f3");
   },
   methods: {
     changeResources(type) {

--
Gitblit v1.9.1