From 3182ff9a1fc71b628e4f48dc28a99e99a7a4be00 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 27 五月 2024 17:45:52 +0800
Subject: [PATCH] 优化

---
 src/books/lifeCare/view/chapter001.vue |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/src/books/lifeCare/view/chapter001.vue b/src/books/lifeCare/view/chapter001.vue
index 752c37e..370362c 100644
--- a/src/books/lifeCare/view/chapter001.vue
+++ b/src/books/lifeCare/view/chapter001.vue
@@ -1357,7 +1357,6 @@
             @blur="onBlurChange('desc3')"
           ></textarea>
         </div>
-        <p><br /></p>
         <div class="tips-bk">
           <div class="bj-tip">
             浜戞祴璇曪細鍗曞厓涓�搴旂敤涓庡疄璺�<img
@@ -1370,7 +1369,7 @@
             v-if="chapter001.idOpenThree && chapter001.qustionData[9]"
             class="tips-file"
           >
-            <examinations :cardList="chapter001.qustionData[9]" />
+            <examinations :primaryColor="'#f49a4c'" :cardList="chapter001.qustionData[9]" />
           </div>
         </div>
       </div>
@@ -1379,10 +1378,10 @@
 </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: "chapter001",
@@ -1406,16 +1405,16 @@
     };
   },
   components: {
-    // examinations,
+    examinations,
   },
-  created() {
+  async created() {
     const localData = JSON.parse(localStorage.getItem("chapter001"));
     if (localData) {
       this.chapter001 = { ...Object.assign(this.chapter001, localData) };
     }
 
-    // this.chapter001.videOneUrl = getResourcePath("68ebd5c05bcb742999a9ebdce4b4bd53");
-    // this.qustionData = await getQuestionData('1',testData[1]);
+    this.chapter001.videOneUrl = getResourcePath("68ebd5c05bcb742999a9ebdce4b4bd53");
+    this.chapter001.qustionData = await getQuestionData('1',testData[1],this.config.activeBook);
   },
   methods: {
     activityOne() {

--
Gitblit v1.9.1