From 530f8bc6a8438a95ad6582f85362da87b911dcf8 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 23 五月 2024 15:24:05 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/lifeCare/view/chapter002.vue |   74 ++++++++-----------------------------
 1 files changed, 16 insertions(+), 58 deletions(-)

diff --git a/src/books/lifeCare/view/chapter002.vue b/src/books/lifeCare/view/chapter002.vue
index b7f8afd..496c05d 100644
--- a/src/books/lifeCare/view/chapter002.vue
+++ b/src/books/lifeCare/view/chapter002.vue
@@ -1,5 +1,5 @@
 <template>
-  <div class="chapter" num='2'>
+  <div class="chapter" num="2">
     <div class="page-box" page="16">
       <div class="bodystyle topImg">
         <h2 id="b002"><img class="img-0" alt="" src="../image/dy2.jpg" /></h2>
@@ -1273,10 +1273,13 @@
             />
           </div>
           <div
-            v-if="chapter002.idOpenThree && chapter002.qustionData[2]"
+            v-if="chapter002.idOpenThree && chapter002.qustionData[23]"
             class="tips-file"
           >
-            <examinations :cardList="chapter002.qustionData[2]" />
+            <examinations
+              :primaryColor="'#f49a4c'"
+              :cardList="chapter002.qustionData[23]"
+            />
           </div>
         </div>
       </div>
@@ -1284,10 +1287,10 @@
   </div>
 </template>
 <script>
-// import getResourcePath from "@/assets/methods/resources.js";
-// import getQuestionData from "@/assets/methods/examination.js";
+import getResourcePath from "@/assets/methods/resources.js";
+import getQuestionData from "@/assets/methods/examination.js";
 import testData from "../js/examinationList.js";
-// import examinations from "@/components/examinations/index.vue";
+import examinations from "@/components/examinations/index.vue";
 
 export default {
   name: "chapter002",
@@ -1306,53 +1309,8 @@
         isInspectOpen: true,
         isInspectOpen: true,
         qustionData: {},
-        textAreaItem: {
-          text1: "",
-          text2: "",
-          text3: "",
-          text4: "",
-          text5: "",
-          text6: "",
-          text7: "",
-          text8: "",
-          text9: "",
-          text10: "",
-          text11: "",
-          text12: "",
-          text13: "",
-          text14: "",
-          text15: "",
-          text16: "",
-          text17: "",
-          text18: "",
-          text19: "",
-          text20: "",
-          text21: "",
-          text22: "",
-          text23: "",
-          text24: "",
-          text25: "",
-        },
-        table121: {
-          text1: "",
-          text2: "",
-          text3: "",
-          text4: "",
-          text5: "",
-          text6: "",
-          text7: "",
-          text8: "",
-          text9: "",
-          text10: "",
-          text11: "",
-          text12: "",
-          text13: "",
-          text14: "",
-          text15: "",
-          text16: "",
-          text17: "",
-          text18: "",
-        },
+        textAreaItem: {},
+        table121: {},
         // 琛ㄦ牸1-2-1
         headersData: [
           "妫�鏌ュ璞�",
@@ -1573,20 +1531,20 @@
     };
   },
   components: {
-    // examinations,
+    examinations,
   },
-  created() {
+  async created() {
     const localData = JSON.parse(localStorage.getItem("chapter002"));
     if (localData) {
       this.chapter002 = { ...Object.assign(this.chapter002, localData) };
     }
-    // this.chapter002.videOneUrl = getResourcePath("6e471afdbeb95a8891f1551cbb0cd4fd");
-    // this.chapter002.videOneUrl116 = getResourcePath('b727b78f8036a38cbd054816a81da7f8')
+    this.chapter002.videOneUrl = getResourcePath("6e471afdbeb95a8891f1551cbb0cd4fd");
+    this.chapter002.videOneUrl116 = getResourcePath('b727b78f8036a38cbd054816a81da7f8')
     this.chapter002.videOneUrl116 =
       "https:/jsek.bnuic.com/file/api/ApiDownload?md5=b727b78f8036a38cbd054816a81da7f8";
     this.chapter002.videOneUrl =
       "https:/jsek.bnuic.com/file/api/ApiDownload?md5=6e471afdbeb95a8891f1551cbb0cd4fd";
-    // this.qustionData = await getQuestionData("2",testData[2]);
+    this.chapter002.qustionData = await getQuestionData("2",testData[2],this.config.activeBook);
   },
   methods: {
     activityOne() {

--
Gitblit v1.9.1