From ce70bc450a2401997bb850f89f3c4dc0a23e0a72 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期五, 05 九月 2025 18:38:13 +0800
Subject: [PATCH] 31 数字化口腔修复技术 整本

---
 src/books/preventiveDentistry/view/components/chapter001.vue |   74 +++++++++++++++++++++++++++++++-----
 1 files changed, 63 insertions(+), 11 deletions(-)

diff --git a/src/books/preventiveDentistry/view/components/chapter001.vue b/src/books/preventiveDentistry/view/components/chapter001.vue
index 83f6234..d50d0cd 100644
--- a/src/books/preventiveDentistry/view/components/chapter001.vue
+++ b/src/books/preventiveDentistry/view/components/chapter001.vue
@@ -48,10 +48,13 @@
               <p class="content">
                 璇蜂粠涓夌骇棰勯槻绛栫暐鐨勮搴︿负瀹堕暱鍒惰涓�浠介緥鐥呴闃茬殑椤圭洰涔︺��
               </p>
+              <p class="content">
+                <textarea class="textarea-box" v-model="questionData.one" placeholder="璇疯緭鍏ュ唴瀹�" rows="5"
+                  @change="setQuestionData"></textarea>
+              </p>
             </div>
           </div>
-
-          <div class="knowledgeExpansion" @click="toUrl(getResourceInfo('A1', 'md5'), '鏁欏璇句欢')">
+          <div class="knowledgeExpansion" @click="toUrl(getResourceInfo('A1'))">
             <div class="questionBank">
               <img src="../../assets/images/sanJiao.svg" alt="" />
               <span>鏁欏璇句欢</span>
@@ -61,8 +64,7 @@
               <span>鏁欏璇句欢</span>
             </div>
           </div>
-
-          <p class="center mb-30">
+          <p class="center mb-30 pt-70">
             <img class="g-pic" src="../../assets/images/0023_04.jpg" alt="" />
           </p>
           <p class="content">
@@ -81,7 +83,7 @@
           <h3 class="thirdTitle pt-70 mb-40">
             绗竴鑺�&nbsp;&nbsp;&nbsp;&nbsp;鍙h厰棰勯槻鍖诲鐨勫熀鏈杩�
           </h3>
-          <bookVideo :videoInfo="getResourceInfo('Z17')"  :BookId="config.activeBook.bookId"></bookVideo>
+          <bookVideo :videoInfo="getResourceInfo('Z17')" :BookId="config.activeBook.bookId"></bookVideo>
           <h4 class="fourthTitle">涓�銆佸彛鑵旈闃插尰瀛︾殑瀹氫箟</h4>
           <p class="content">
             鍙h厰棰勯槻鍖诲鏄竴闂ㄩ�氳繃鏈夌粍缁囨�х殑绀句細鍔姏锛岄闃插彛鑵旂柧鐥咃紝缁存姢鍙h厰鍋ュ悍鍙婃彁楂樼敓鍛借川閲忕殑绉戝銆傚彛鑵旈闃插尰瀛︽槸鍙h厰鍖诲鐨勪竴闂ㄥ垎鏀绉戝拰閲嶈缁勬垚閮ㄥ垎锛屽畠浠ヤ汉缇や负涓昏鐮旂┒瀵硅薄锛屽簲鐢ㄧ敓鐗╁銆佺幆澧冨尰瀛︺�侀闃插尰瀛︺�佷复搴婂尰瀛﹀強绀句細鍖诲鐨勭悊璁哄拰鏂规硶锛岀爺绌跺彛鑵斿仴搴峰強鍏跺奖鍝嶅洜绱犮�侀闃插彛鑵旂柧鐥呯殑鎺柦鍙婂绛栵紝杈惧埌棰勯槻鍙h厰鐤剧梾銆佷績杩涘彛鑵斿仴搴峰強鎻愰珮鐢熷懡璐ㄩ噺鐨勭洰鐨勩��
@@ -134,8 +136,7 @@
             浠庡彛鑵旈闃插尰瀛﹀彂灞曞巻绋嬬湅锛屽ぇ鑷村彲鍒嗕负3涓樁娈碉細鍘熷鍚挋鏃朵唬銆佺瀛﹀熀纭�褰㈡垚鏃朵唬銆佸彛鑵旈闃插尰瀛﹁癁鐢熶笌鍙戝睍鏃朵唬銆�
           </p>
           <h4 class="fourthTitle">涓�銆佸師濮嬪惎钂欐椂鏈�</h4>
-          <div class="theme-color">123</div>
-          <bookVideo  :videoInfo="getResourceInfo('Z15')" :BookId="config.activeBook.bookId"></bookVideo>
+          <bookVideo :videoInfo="getResourceInfo('Z15')" :BookId="config.activeBook.bookId"></bookVideo>
           <p class="content">
             涓崕姘戞棌鏂囧寲婧愯繙娴侀暱锛屽鍋ュ悍鐨勬帰绱㈠拰璁よ瘑宸查�炬暟鍗冨勾銆傚叕鍏冨墠绾�1400骞存澧熺敳楠ㄦ枃娓呮櫚璁拌浇浜嗚薄褰㈡枃瀛楀苟鍒绘湁浜嗏�滈娇鈥濆瓧鍜屸�滈緥鈥濆瓧銆傜敤榻垮瓧涓婇潰鍔犱竴涓皬铏潵琛ㄧず鈥滈緥鈥濆瓧锛岃涓烘槸鐢辫櫕铔�鎵�鑷达紝鑷充粖姘戦棿浠嶆湁鈥滆櫕鐗欌�濆拰鈥滆泙鐗欌�濅箣璇达紙鍥�1-1锛夈�傚彜涔︿腑杩樿杞戒簡澶氱鍙h厰鍗敓淇濆仴鐨勬柟娉曪紝濡傛急鍙c�佸捊娲ャ�佸墧鐗欍�佹彥榻跨瓑锛岄儴鍒嗘柟娉曟部鐢ㄨ嚦浠娿��
           </p>
@@ -192,7 +193,7 @@
           <p class="content">
             鍏厓752骞达紝鐜嬬剺鍦ㄣ�婂鍙扮瑕併�嬩腑宸叉湁鏌虫灊鍒跺埛鐨勮杞斤紝灏嗘潹鏌虫灊鐢ㄧ墮鍜垚绲姸锛屾彥鍒风墮闈€�傚畫浠f棩鏈悕鍍ч亾鍏冪甯堝湪銆婃娉曠溂钘忋�嬩腑璁拌浇鈥滃儳渚d滑闄ゆ急鍙d箣澶栵紝灏氱敤鍓垚瀵镐綑涔嬮┈灏撅紝妞嶄簬鐗涜鍒舵垚鐨勫櫒鐗╀笂锛岀敤浠ュ埛娲楃墮鈥濄�傚叕鍏�916鈥�1125骞达紝杈戒唬鍑虹幇浜嗛鏌勬姣涚墮鍒凤紝涓庤繎浠g墮鍒风浉浼硷紝鍥藉17涓栫邯鎵嶆湁妞嶆瘺鐗欏埛銆傚叕鍏�1281骞寸綏鍏冪泭鎵�钁椼�婂崼鐢熷疂閴淬�嬩腑鎻愬埌瑕佹棭鏅氬埛鐗�2娆★紝蹇芥�濇収鍦ㄣ�婇ギ鑶虫瑕併�嬩腑鎻愬嚭鈥滃嚒娓呮棪鍒风墮锛屼笉濡傚鍒风墮榻跨柧涓嶇敓鈥濓紝寮鸿皟鏅氫笂鍒风墮鐨勯噸瑕佹�с�傝�冨彜鍙戠幇锛屾槑鏈濆笣鐜嬩滑鐨勪竴浜涚墮涓婃湁妤旂姸缂烘崯锛岃鏄庡湪閭f椂鍒风墮灏卞凡鎴愪负涔犳儻銆�
           </p>
-          <h4 class="fourthTitle ">浜屻�佺瀛﹀舰鎴愭椂鏈�</h4>
+          <h4 class="fourthTitle">浜屻�佺瀛﹀舰鎴愭椂鏈�</h4>
           <bookVideo :videoInfo="getResourceInfo('Z16')" :BookId="config.activeBook.bookId"></bookVideo>
           <p class="content">
             鍦ㄥ彛鑵旈闃插尰瀛︾殑鍘嗗彶涓婏紝鍙戠幇鍙h厰缁嗚弻銆佽璇嗘盁鍖栫墿鍙婄獫娌熷皝闂墏鐨勮癁鐢燂紝澶уぇ鎺ㄥ姩浜嗗彛鑵旈闃插尰瀛︾殑鍙戝睍銆傚墠涓よ�呰浜轰滑璁よ瘑浜嗗紩璧峰彛鑵旂柧鐥呯殑鐥呭洜锛屼负閽堝鎬у湴寮�灞曞彛鑵旂柧鐥呴闃插瀹氫簡鍩虹銆傜涓夎�呬娇鍙h厰棰勯槻鏈変簡鏈夋晥鐨勯闃叉帾鏂斤紝鍑忓皯浜嗛緥鐥呯殑鍙戠敓銆�
@@ -335,7 +336,7 @@
             </div>
             <div class="knowledgeExpansion-box">
               <img src="../../assets/images/tuoZhan.svg" alt="" />
-              <span>鎷撳睍缁冧範</span>
+              <span @click="openQuestion(0)">鎷撳睍缁冧範</span>
             </div>
           </div>
           <p class="right-info fm-kt">
@@ -346,12 +347,17 @@
       </div>
     </div>
     <preView :md5="p_md5" :pdfTitle="somePdfTitleValue" ref="pdfDialogRef"></preView>
+    <dialogExaminations :cardList="interfaceQuestion" :questionIDList="questionIDList" :page="questionNum"
+      :questionTitle="questionTitleMain" ref="dialogRef">
+    </dialogExaminations>
   </div>
 </template>
 
 <script>
+import testData from "../../assets/examinationList";
 import preView from "@/components/pdfview/index.vue";
 import bookVideo from "@/components/bookVideo/index.vue";
+import dialogExaminations from "@/components/dialogExaminations/index.vue";
 export default {
   props: {
     showPageList: {
@@ -359,20 +365,42 @@
     },
     getResourceInfo: {
       type: Function, // 鏄庣‘鎸囧畾瀹冩槸涓�涓嚱鏁�
-      required: true
+      required: true,
+    },
+    interfaceQuestion: {
+      type: Array,
+      required: true,
+      default: () => [],
     },
   },
   components: {
     preView,
     bookVideo,
+    dialogExaminations,
   },
   data() {
     return {
       p_md5: "",
       somePdfTitleValue: "",
+      // 棰樼洰鐩稿叧
+      questionNum: 0,
+      questionTitleMain: "",
+      questionIDList: [],
+      chapterNum: 2,
+      examinations: [
+        {
+          questionTitleMain: "鎷撳睍缁冧範",
+          questionNum: 18,
+        },
+      ],
+      questionData: {
+        one: "",
+      },
     };
   },
-  mounted() { },
+  mounted() {
+    this.getQuestionData();
+  },
   methods: {
     toUrl(val) {
       if (val != null) {
@@ -381,6 +409,30 @@
         this.$refs.pdfDialogRef.openDialog();
       }
     },
+    setQuestionData() {
+      localStorage.setItem(
+        "preventiveDentistry-book-chapter01-questionData",
+        JSON.stringify(this.questionData)
+      );
+    },
+    getQuestionData() {
+      let questionData = localStorage.getItem(
+        "preventiveDentistry-book-chapter01-questionData"
+      );
+      if (questionData) {
+        this.questionData = JSON.parse(questionData);
+      }
+    },
+    openQuestion(num) {
+      if (num != undefined) {
+        this.questionNum = this.examinations[num].questionNum;
+        this.questionTitleMain = this.examinations[num].questionTitleMain;
+        this.questionIDList = testData[this.chapterNum][this.questionNum];
+        this.$nextTick(() => {
+          this.$refs.dialogRef.openDialogQuestion();
+        });
+      }
+    },
   },
 };
 </script>

--
Gitblit v1.9.1