From bb584963c6abe77c5577cbcad3c9956b69444ae9 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期二, 01 七月 2025 17:17:30 +0800
Subject: [PATCH] 无人机样章

---
 src/books/toddlerGameImplementation/view/components/chapter002.vue |   31 ++++++++++++++++++++-----------
 1 files changed, 20 insertions(+), 11 deletions(-)

diff --git a/src/books/toddlerGameImplementation/view/components/chapter002.vue b/src/books/toddlerGameImplementation/view/components/chapter002.vue
index bf60a0b..9a3c1f1 100644
--- a/src/books/toddlerGameImplementation/view/components/chapter002.vue
+++ b/src/books/toddlerGameImplementation/view/components/chapter002.vue
@@ -612,7 +612,7 @@
                             <span class="c-g"> 绛旀锛歿{ item.answer }}</span>
                             <span :class="{ 'c-g': item.isRight, 'c-r': item.isRight == false }">鎮ㄧ殑绛旀锛歿{
                                 item.userAnswer
-                                }}</span>
+                            }}</span>
                             <span class="icon-box-big fl al-c">
                                 <svg v-if="item.isRight" t="1716986419862" class="icon" viewBox="0 0 1820 1024"
                                     version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18767"
@@ -644,7 +644,7 @@
                         </li>
                         <li v-if="unitQuestionOne.isShowAnswer" class="event-header-text-bc pd-5 fl jc-sa">
                             <span class="c-g"> 绛旀锛�<span v-for="(answer, dindex) in item.answer" :key="dindex">{{ answer
-                            }}銆�</span></span>
+                                    }}銆�</span></span>
                             <span :class="{ 'c-g': item.isRight, 'c-r': item.isRight == false }">鎮ㄧ殑绛旀锛�<span
                                     v-for="(userAnswer, eindex) in item.userAnswer" :key="eindex">{{
                                         userAnswer }}銆�</span></span>
@@ -1192,7 +1192,7 @@
                             <span class="c-g"> 绛旀锛歿{ item.answer }}</span>
                             <span :class="{ 'c-g': item.isRight, 'c-r': item.isRight == false }">鎮ㄧ殑绛旀锛歿{
                                 item.userAnswer
-                                }}</span>
+                            }}</span>
                             <span class="icon-box-big fl al-c">
                                 <svg v-if="item.isRight" t="1716986419862" class="icon" viewBox="0 0 1820 1024"
                                     version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18767"
@@ -1240,7 +1240,7 @@
                             <span class="c-g"> 绛旀锛歿{ item.answer }}</span>
                             <span :class="{ 'c-g': item.isRight, 'c-r': item.isRight == false }">鎮ㄧ殑绛旀锛歿{
                                 item.userAnswer
-                                }}</span>
+                            }}</span>
                             <span class="icon-box-big fl al-c">
                                 <svg v-if="item.isRight" t="1716986419862" class="icon" viewBox="0 0 1820 1024"
                                     version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18767"
@@ -1272,7 +1272,7 @@
                         </li>
                         <li v-if="unitQuestionTwo.isShowAnswer" class="event-header-text-bc pd-5 fl jc-sa">
                             <span class="c-g"> 绛旀锛�<span v-for="(answer, dindex) in item.answer" :key="dindex">{{ answer
-                            }}銆�</span></span>
+                                    }}銆�</span></span>
                             <span :class="{ 'c-g': item.isRight, 'c-r': item.isRight == false }">鎮ㄧ殑绛旀锛�<span
                                     v-for="(userAnswer, eindex) in item.userAnswer" :key="eindex">{{
                                         userAnswer }}銆�</span></span>
@@ -1406,9 +1406,9 @@
             </div>
         </div>
         <preView :isClear="dialogVisible" :md5="p_md5" :pdfTitle="somePdfTitleValue" ref="pdfDialogRef"></preView>
-        <dialogExaminations :isClear="dialogVisibleOne" :primaryColor="themeColor"
-            :cardList="interfaceQuestion[questionNum]" v-if="interfaceQuestion" :chapter="3" :page="questionNum"
-            :questionTitle="questionTitleMain" ref="dialogRef">
+        <dialogExaminations :isClear="dialogVisibleOne" :primaryColor="themeColor" :cardList="cardArrayList"
+            v-if="interfaceQuestion" :chapter="3" :page="questionNum" :questionTitle="questionTitleMain"
+            ref="dialogRef">
         </dialogExaminations>
     </div>
 </template>
@@ -1485,6 +1485,7 @@
             themeColor: "#6dcff6",
             questionNum: 0,
             questionTitleMain: "",
+            cardArrayList: [],
             // 棰樼洰
             tableData: {
                 unitOne: {
@@ -1783,6 +1784,17 @@
             },
         };
     },
+    watch: {
+        interfaceQuestion: {
+            handler(newValue) {
+                if (newValue[this.questionNum] != undefined) {
+                    this.cardArrayList = newValue[this.questionNum];
+                }
+            },
+            deep: true,
+            immediate: true
+        },
+    },
     async mounted() {
         const bookQuestion = localStorage.getItem(
             "toddleGame-book-chapter02-tableData"
@@ -1903,8 +1915,6 @@
                 JSON.stringify(this.unitQuestionOne)
             );
         },
-
-
         goUnitTwo() {
             for (let index = 0; index < this.unitQuestionTwo.unitOne.length; index++) {
                 const item = this.unitQuestionTwo.unitOne[index];
@@ -1951,7 +1961,6 @@
                 JSON.stringify(this.unitQuestionTwo)
             );
         },
-
         toUrl(val) {
             if (val) {
                 this.p_md5 = this.chapter001.pdfMd5[val].md5;

--
Gitblit v1.9.1