From 1c389a5a5c22c8d57ee79cc9ac8ed6db6c8dbadc Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 04 六月 2024 18:01:59 +0800
Subject: [PATCH] 搜素优化

---
 src/books/childHealth/view/content/components/chapter001.vue |  394 ++++++++++++++++++++++++++++++++++---------------------
 1 files changed, 243 insertions(+), 151 deletions(-)

diff --git a/src/books/childHealth/view/content/components/chapter001.vue b/src/books/childHealth/view/content/components/chapter001.vue
index 4722135..ca336c6 100644
--- a/src/books/childHealth/view/content/components/chapter001.vue
+++ b/src/books/childHealth/view/content/components/chapter001.vue
@@ -60,7 +60,7 @@
       </div>
     </div>
     <!-- 2 -->
-    <div class="page-box" page="10"  :show="showPageList.indexOf(10) > -1">
+    <div class="page-box" page="10" :show="showPageList.indexOf(10) > -1">
       <div v-show="showPageList.indexOf(10) > -1">
         <div class="header-box">
           <div class="header-border-box"></div>
@@ -389,7 +389,11 @@
               </p>
               <div class="text-img-box">
                 <div style="margin-right: 50px" class="openImgBox">
-                  <img src="../../../assets/images/chapterOne/0015-5.jpg" class="w100" alt="">
+                  <img
+                    src="../../../assets/images/chapterOne/0015-5.jpg"
+                    class="w100"
+                    alt=""
+                  />
                   <span class="img">鍥�1-1 浜轰綋鍏ㄨ韩楠ㄩ锛堝墠闈㈣锛�</span>
                 </div>
                 <div>
@@ -458,34 +462,25 @@
             </div>
             <div class="bottom-right" style="width: 35%">
               <div class="mt-40">
-                <div class="banshi openImgBox" style="height: 364px;">
+                <div class="banshi openImgBox" style="height: 364px">
                   <div class="swiper-container swiper-img">
                     <div class="swiper-wrapper">
                       <div class="swiper-slide">
-                        <div
-                          class="imgBox"
-                          style="width: 100%; height: 100%"
-                        >
+                        <div class="imgBox" style="width: 100%; height: 100%">
                           <img
                             src="../../../assets/images/chapterOne/bones1.png"
                           />
                         </div>
                       </div>
                       <div class="swiper-slide">
-                        <div
-                          class="imgBox"
-                          style="width: 100%; height: 100%"
-                        >
+                        <div class="imgBox" style="width: 100%; height: 100%">
                           <img
                             src="../../../assets/images/chapterOne/bones2.png"
                           />
                         </div>
                       </div>
                       <div class="swiper-slide">
-                        <div
-                          class="imgBox"
-                          style="width: 100%; height: 100%"
-                        >
+                        <div class="imgBox" style="width: 100%; height: 100%">
                           <img
                             src="../../../assets/images/chapterOne/bones3.png"
                           />
@@ -528,7 +523,11 @@
               class="left fl fl-di fl-evenly openImgBox"
               style="width: 30%; margin-top: 5px"
             >
-              <img src="../../../assets/images/chapterOne/0017-1.jpg" alt="" class="w100">
+              <img
+                src="../../../assets/images/chapterOne/0017-1.jpg"
+                alt=""
+                class="w100"
+              />
               <p class="img">鍥�1-3 鍏宠妭妯″紡鍥�</p>
             </div>
             <div class="right" style="width: 70%; padding-left: 20px">
@@ -546,33 +545,29 @@
           <div class="fl">
             <div class="left" style="width: 30%">
               <div class="banshi openImgBox">
-                  <div class="swiper-container swiper-img">
-                    <div class="swiper-wrapper">
-                      <div class="swiper-slide">
-                        <div
-                          class="imgBox"
-                          style="width: 100%; height: 100%"
-                        >
-                          <img
-                            src="../../../assets/images/chapterOne/foot-01.png" alt="姝e父瓒�"
-                          />
-                        </div>
-                      </div>
-                      <div class="swiper-slide">
-                        <div
-                          class="imgBox"
-                          style="width: 100%; height: 100%"
-                        >
-                          <img
-                            src="../../../assets/images/chapterOne/foot-02.png" alt="鎵佸钩瓒�"
-                          />
-                        </div>
+                <div class="swiper-container swiper-img">
+                  <div class="swiper-wrapper">
+                    <div class="swiper-slide">
+                      <div class="imgBox" style="width: 100%; height: 100%">
+                        <img
+                          src="../../../assets/images/chapterOne/foot-01.png"
+                          alt="姝e父瓒�"
+                        />
                       </div>
                     </div>
-                    <div class="swiper-button-next"></div>
-                    <div class="swiper-button-prev"></div>
+                    <div class="swiper-slide">
+                      <div class="imgBox" style="width: 100%; height: 100%">
+                        <img
+                          src="../../../assets/images/chapterOne/foot-02.png"
+                          alt="鎵佸钩瓒�"
+                        />
+                      </div>
+                    </div>
                   </div>
+                  <div class="swiper-button-next"></div>
+                  <div class="swiper-button-prev"></div>
                 </div>
+              </div>
               <p class="img">鍥�1-4 姝e父瓒冲拰鎵佸钩瓒�</p>
             </div>
             <div class="right" style="width: 70%; padding-left: 20px">
@@ -609,43 +604,34 @@
             </p>
             <div class="right fl fl-cn fl-di" style="width: 55%">
               <div class="banshi openImgBox">
-                  <div class="swiper-container swiper-img">
-                    <div class="swiper-wrapper">
-                      <div class="swiper-slide">
-                        <div
-                          class="imgBox"
-                          style="width: 100%; height: 100%"
-                        >
-                          <img
-                            src="../../../assets/images/chapterOne/posture-01.png"
-                          />
-                        </div>
-                      </div>
-                      <div class="swiper-slide">
-                        <div
-                          class="imgBox"
-                          style="width: 100%; height: 100%"
-                        >
-                          <img
-                            src="../../../assets/images/chapterOne/posture-02.png"
-                          />
-                        </div>
-                      </div>
-                      <div class="swiper-slide">
-                        <div
-                          class="imgBox"
-                          style="width: 100%; height: 100%"
-                        >
-                          <img
-                            src="../../../assets/images/chapterOne/posture-03.png"
-                          />
-                        </div>
+                <div class="swiper-container swiper-img">
+                  <div class="swiper-wrapper">
+                    <div class="swiper-slide">
+                      <div class="imgBox" style="width: 100%; height: 100%">
+                        <img
+                          src="../../../assets/images/chapterOne/posture-01.png"
+                        />
                       </div>
                     </div>
-                    <div class="swiper-button-next"></div>
-                    <div class="swiper-button-prev"></div>
+                    <div class="swiper-slide">
+                      <div class="imgBox" style="width: 100%; height: 100%">
+                        <img
+                          src="../../../assets/images/chapterOne/posture-02.png"
+                        />
+                      </div>
+                    </div>
+                    <div class="swiper-slide">
+                      <div class="imgBox" style="width: 100%; height: 100%">
+                        <img
+                          src="../../../assets/images/chapterOne/posture-03.png"
+                        />
+                      </div>
+                    </div>
                   </div>
+                  <div class="swiper-button-next"></div>
+                  <div class="swiper-button-prev"></div>
                 </div>
+              </div>
               <p class="img">鍥�1-5 鍧愬Э瀵硅剨鏌辩殑褰卞搷</p>
             </div>
           </div>
@@ -975,7 +961,11 @@
               <h5 id="e012">1.榧�</h5>
             </div>
             <div class="right openImgBox" style="width: 50%">
-              <img src="../../../assets/images/chapterOne/0020-2.jpg" alt="" class="w100">
+              <img
+                src="../../../assets/images/chapterOne/0020-2.jpg"
+                alt=""
+                class="w100"
+              />
               <p class="img">鍥�1-6 鍛煎惛绯荤粺绀烘剰鍥�</p>
             </div>
           </div>
@@ -1046,7 +1036,11 @@
             </div>
             <div class="right" style="width: 20%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0021-1.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0021-1.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-7 鍠夎厰妯″紡鍥�</p>
             </div>
@@ -1070,7 +1064,11 @@
           </p>
           <p class="img">琛�1-1 涓嶅悓骞撮緞鐨勪汉鐨勫懠鍚搁鐜�</p>
           <p class="center openImgBox">
-            <img src="../../../assets/images/chapterOne/0021-2.jpg" alt="" class="w100">
+            <img
+              src="../../../assets/images/chapterOne/0021-2.jpg"
+              alt=""
+              class="w100"
+            />
           </p>
         </div>
       </div>
@@ -1420,7 +1418,11 @@
             寰幆绯荤粺鍖呮嫭琛�娑插惊鐜郴缁燂紙蹇冭绠$郴缁燂級鍜屾穻宸寸郴缁熴�傝娑插惊鐜郴缁熺敱蹇冭剰鍜岃绠$粍鎴愶紝琛�绠″寘鎷姩鑴夈�侀潤鑴夊拰姣涚粏琛�绠★紙瑙佸浘1-8锛夈�傛穻宸寸郴缁熺敱娣嬪反绠¢亾銆佹穻宸村櫒瀹樺拰娣嬪反缁勭粐缁勬垚銆�
           </p>
           <p class="center openImgBox">
-            <img src="../../../assets/images/chapterOne/0024-1.jpg" alt="" style="width:80%">
+            <img
+              src="../../../assets/images/chapterOne/0024-1.jpg"
+              alt=""
+              style="width: 80%"
+            />
           </p>
           <p class="img">鍥�1-8 琛�娑插惊鐜ず鎰忓浘</p>
 
@@ -1456,7 +1458,11 @@
           <p>锛�1锛夎娑查噺鍗犱綋閲嶇殑姣斾緥澶т簬鎴愪汉锛堣琛�1-2锛�</p>
           <p class="img">琛�1-2 涓嶅悓骞撮緞鐨勮娑查噺</p>
           <p class="center openImgBox">
-            <img src="../../../assets/images/chapterOne/0024-3.jpg" alt="" class="w100" />
+            <img
+              src="../../../assets/images/chapterOne/0024-3.jpg"
+              alt=""
+              class="w100"
+            />
           </p>
         </div>
       </div>
@@ -1507,7 +1513,11 @@
           </p>
           <p class="img">琛�1-3 涓嶅悓骞撮緞鐨勫績鐜�</p>
           <p class="center openImgBox">
-            <img src="../../../assets/images/chapterOne/0025-1.jpg" alt="" class="w100" />
+            <img
+              src="../../../assets/images/chapterOne/0025-1.jpg"
+              alt=""
+              class="w100"
+            />
           </p>
         </div>
       </div>
@@ -1616,7 +1626,7 @@
             <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚涓�</span>
             <examinations
               :cardList="questionData[22]"
-              v-if="questionData  && questionData[22]"
+              v-if="questionData && questionData[22]"
               :chapter="1"
               :page="14"
             />
@@ -1869,7 +1879,11 @@
             </div>
             <div class="right" style="width: 35%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0028-1.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0028-1.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-9 娑堝寲绯荤粺妯″紡鍥�</p>
             </div>
@@ -1929,11 +1943,19 @@
           <p>姣忎竴棰椾钩鐗欏拰鎭掔墮鐨勮悓鍑洪兘鏈夊浐瀹氱殑鏃堕棿锛岃琛�1-4銆佽〃1-5銆�</p>
           <p class="img">琛�1-4 涔崇墮钀屽嚭鏃堕棿椤哄簭锛堜互鏈堥緞璁$畻锛�</p>
           <p class="center openImgBox">
-            <img src="../../../assets/images/chapterOne/0029-1.jpg" alt="" class="w100" />
+            <img
+              src="../../../assets/images/chapterOne/0029-1.jpg"
+              alt=""
+              class="w100"
+            />
           </p>
           <p class="img">琛�1-5 鎭掔墮钀屽嚭鏃堕棿</p>
           <p class="center openImgBox">
-            <img src="../../../assets/images/chapterOne/0029-2.jpg" alt="" class="w100">
+            <img
+              src="../../../assets/images/chapterOne/0029-2.jpg"
+              alt=""
+              class="w100"
+            />
           </p>
           <h5 id="e021">2.鑸�</h5>
           <p>
@@ -2079,7 +2101,7 @@
             <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚鍥�</span>
             <examinations
               :cardList="questionData[27]"
-              v-if="questionData  && questionData[27]"
+              v-if="questionData && questionData[27]"
               :chapter="1"
               :page="19"
             />
@@ -2328,7 +2350,11 @@
           <div class="fl fl-around">
             <div class="left" style="width: 35%">
               <p class="center openImgBox" style="margin-top: 0">
-                <img src="../../../assets/images/chapterOne/0033-1.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0033-1.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-10 娉屽翱绯荤粺妯″紡鍥撅紙鐢锋�э級</p>
             </div>
@@ -2641,13 +2667,21 @@
           <div class="fl">
             <div class="left" style="width: 50%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0036-1.png" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0036-1.png"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-11 鐢锋�х敓娈栫郴缁熺ず鎰忓浘</p>
             </div>
             <div class="right" style="width: 50%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0036-2.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0036-2.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-12 濂虫�х敓娈栫郴缁熺ず鎰忓浘</p>
             </div>
@@ -2703,7 +2737,7 @@
             >
             <examinations
               :cardList="questionData[32]"
-              v-if="questionData  && questionData[32]"
+              v-if="questionData && questionData[32]"
               :chapter="1"
               :page="24"
             />
@@ -2966,7 +3000,11 @@
             </div>
             <div class="right" style="width: 50%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0038-1.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0038-1.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-13 鍐呭垎娉岀郴缁熺ず鎰忓浘</p>
             </div>
@@ -2989,7 +3027,11 @@
             </div>
             <div class="right" style="width: 36%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0038-2.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0038-2.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-14 鎴愬勾渚忓剴鐥囨偅鑰呬笌姝e父鎴愪汉鐨勮韩楂樻瘮杈�</p>
             </div>
@@ -3041,7 +3083,7 @@
             <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚涓�</span>
             <examinations
               :cardList="questionData[34]"
-              v-if="questionData  && questionData[34]"
+              v-if="questionData && questionData[34]"
               :chapter="1"
               :page="26"
             />
@@ -3277,7 +3319,11 @@
             </div>
             <div class="right" style="width: 50%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0040-1.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0040-1.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img cneter">鍥�1-15 绁炵粡鍏冩ā寮忓浘</p>
             </div>
@@ -3342,13 +3388,21 @@
             澶ц剳鍒嗗乏銆佸彸涓ゅ崐鐞冿紙瑙佸浘1-16锛夛紝琛ㄩ潰鍑瑰嚫涓嶅钩锛屽嚬闄峰绉颁负鈥滄矡鈥濓紝闅嗚捣澶勭О涓衡�滃洖鈥濓紝鈥滄矡鈥濅笌鈥滃洖鈥濆ぇ澶у鍔犱簡澶ц剳鐨勮〃闈㈢Н銆傝緝澶х殑娌熸湁涓ぎ娌熴�佸ぇ鑴戝渚ф矡鍜岄《鏋曟矡锛岃繖浜涙矡灏嗗ぇ鑴戣〃闈㈠垎鎴愰鍙躲�侀《鍙躲�侀鍙跺拰鏋曞彾鍥涢儴鍒嗐��
           </p>
           <p class="center openImgBox">
-            <img src="../../../assets/images/chapterOne/0041-1.jpg" alt="" class="w100">
+            <img
+              src="../../../assets/images/chapterOne/0041-1.jpg"
+              alt=""
+              class="w100"
+            />
           </p>
           <p class="img">鍥�1-16 澶ц剳宸︺�佸彸涓ゅ崐鐞冪殑鍔熻兘姣旇緝</p>
           <div class="fl fl-around">
             <div class="left" style="width: 48%; margin-right: 10px">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0041-2.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0041-2.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-17 澶ц剳鐨眰鍒嗗尯鍥�</p>
             </div>
@@ -3411,7 +3465,11 @@
           </p>
           <p class="img">琛�1-6 浜ゆ劅绁炵粡鍜屽壇浜ゆ劅绁炵粡鐨勪綔鐢ㄤ笌鍖哄埆</p>
           <p class="center openImgBox">
-            <img src="../../../assets/images/chapterOne/0042-1.jpg" alt="" class="w100">
+            <img
+              src="../../../assets/images/chapterOne/0042-1.jpg"
+              alt=""
+              class="w100"
+            />
           </p>
           <h3 id="c016">浜屻�佸鍓嶅効绔ョ缁忕郴缁熺殑鐗圭偣锛烇紴锛烇紴锛烇紴</h3>
           <h4 id="d056">锛堜竴锛夎剳鍙戣偛闈炲父杩呴��</h4>
@@ -3437,7 +3495,11 @@
           </p>
           <p class="img">琛�1-7 涓嶅悓骞撮緞鑴戣川閲忕殑鍙樺寲</p>
           <p class="center openImgBox">
-            <img src="../../../assets/images/chapterOne/0043-1.jpg" alt="" class="w100">
+            <img
+              src="../../../assets/images/chapterOne/0043-1.jpg"
+              alt=""
+              class="w100"
+            />
           </p>
           <h4 id="d057">锛堜簩锛変腑鏋㈢缁忕郴缁熺殑鍙戣偛涓嶅潎琛�</h4>
           <p>
@@ -3506,7 +3568,7 @@
             <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚鍏�</span>
             <examinations
               :cardList="questionData[39]"
-              v-if="questionData  && questionData[39]"
+              v-if="questionData && questionData[39]"
               :chapter="1"
               :page="31"
             />
@@ -3828,7 +3890,11 @@
             </div>
             <div class="right" style="width: 35%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0046-2.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0046-2.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-18 鐪肩悆缁撴瀯妯″紡鍥�</p>
             </div>
@@ -3937,7 +4003,11 @@
             </div>
             <div class="right" style="width: 58%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0048-1.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0048-1.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-19 鑰崇殑缁撴瀯鍥�</p>
             </div>
@@ -3960,7 +4030,11 @@
             </div>
             <div class="right" style="width: 48%">
               <p class="center openImgBox">
-                <img src="../../../assets/images/chapterOne/0048-2.jpg" alt="" class="w100">
+                <img
+                  src="../../../assets/images/chapterOne/0048-2.jpg"
+                  alt=""
+                  class="w100"
+                />
               </p>
               <p class="img">鍥�1-20 鎴愪汉鍜屽鍓嶅効绔ュ捊榧撶涔嬫瘮杈�</p>
             </div>
@@ -4273,7 +4347,7 @@
             <!-- <img class="img-g" alt="" src="image/0053-1.jpg" /><br /> -->
             <span class="img center dl-bl w100">涓撻涓� 瀛︿範涓婚涔�</span>
             <examinations
-              :cardList="questionData[48] "
+              :cardList="questionData[48]"
               v-if="questionData && questionData[48]"
               :chapter="1"
               :page="40"
@@ -4518,18 +4592,22 @@
 </template>
 <script>
 import examinations from "@/components/examinations/index.vue";
-import {getResourcePath} from "@/assets/methods/resources";
+import { getResourcePath } from "@/assets/methods/resources";
 export default {
   name: "chapter-one",
   components: { examinations },
   props: {
     showPageList: {
       type: Array,
-      default: []
+      default: [],
     },
     questionData: {
-      type: Object
-    }
+      type: Object,
+    },
+    isSearch: {
+      type: Boolean,
+      default: false,
+    },
   },
   data() {
     return {
@@ -4581,7 +4659,7 @@
           qSix: "",
           qSeven: "",
           qEight: "",
-          qNine: ""
+          qNine: "",
         },
         learnTableTwo: {
           qOne: "",
@@ -4592,7 +4670,7 @@
           qSix: "",
           qSeven: "",
           qEight: "",
-          qNine: ""
+          qNine: "",
         },
         learnTableThree: {
           qOne: "",
@@ -4603,7 +4681,7 @@
           qSix: "",
           qSeven: "",
           qEight: "",
-          qNine: ""
+          qNine: "",
         },
         learnTableFour: {
           qOne: "",
@@ -4614,7 +4692,7 @@
           qSix: "",
           qSeven: "",
           qEight: "",
-          qNine: ""
+          qNine: "",
         },
         learnTableFive: {
           qOne: "",
@@ -4625,14 +4703,14 @@
           qSix: "",
           qSeven: "",
           qEight: "",
-          qNine: ""
+          qNine: "",
         },
         learnTableSix: {
           qOne: "",
           qTwo: "",
           qThree: "",
           qFour: "",
-          qFive: ""
+          qFive: "",
         },
         learnTableSeven: {
           qOne: "",
@@ -4641,7 +4719,7 @@
           qFour: "",
           qFive: "",
           qSix: "",
-          qSeven: ""
+          qSeven: "",
         },
         learnTableEnight: {
           qOne: "",
@@ -4652,7 +4730,7 @@
           qSix: "",
           qSeven: "",
           qEight: "",
-          qNine: ""
+          qNine: "",
         },
         learnTableNine: {
           qOne: "",
@@ -4662,36 +4740,36 @@
           qFive: "",
           qSix: "",
           qSeven: "",
-          qEight: ""
+          qEight: "",
         },
         question: {
           judge: {
             qOne: "",
             qTwo: "",
             qThree: "",
-            qFour: ""
+            qFour: "",
           },
           fill: {
             qOne: {
               one: "",
-              two: ""
+              two: "",
             },
             qTwo: {
               oen: "",
-              two: ""
+              two: "",
             },
             qThree: {
               one: "",
-              two: ""
+              two: "",
             },
             qFour: {
               one: "",
-              two: ""
+              two: "",
             },
             qFive: {
               one: "",
-              two: ""
-            }
+              two: "",
+            },
           },
           short: {
             qOne: "",
@@ -4700,30 +4778,27 @@
             qFour: "",
             qFive: "",
             qSix: "",
-            qSeven: ""
-          }
-        }
+            qSeven: "",
+          },
+        },
       },
-      swiper: null
+      swiper: null,
     };
   },
   async mounted() {
-    this.getVideoPath();
-    const localData = localStorage.getItem("chapterOneData");
-    if (localData) {
-      this.chapterOneData = JSON.parse(localData);
-    }
-    window.timerOne = setInterval(() => {
-      this.saveTime--;
-      if (this.saveTime == 0) {
-        this.saveChapterOneData();
+    if (!this.isSearch) {
+      this.getVideoPath();
+      const localData = localStorage.getItem("chapterOneData");
+      if (localData) {
+        this.chapterOneData = JSON.parse(localData);
       }
-    }, 1000);
-    // this.$data.questionData = await getQuestionData(
-    //   "1",
-    //   testData[1],
-    //   this.config.activeBook
-    // );
+      window.timerOne = setInterval(() => {
+        this.saveTime--;
+        if (this.saveTime == 0) {
+          this.saveChapterOneData();
+        }
+      }, 1000);
+    }
   },
   unmounted() {
     if (window.timerOne) {
@@ -4735,8 +4810,8 @@
     showPageList: {
       handler(newVal, oldVal) {
         console.log(newVal, "绔犺妭鎺ユ敹鍐呭");
-      }
-    }
+      },
+    },
   },
   methods: {
     changeResources(type) {
@@ -4766,23 +4841,40 @@
       }
     },
     async getVideoPath() {
-      console.log('pathOne',await getResourcePath("f6f6588a75086576b87bed2fb9ca1ec1"))
-      this.$data.pathOne = await getResourcePath("f6f6588a75086576b87bed2fb9ca1ec1");
-      this.$data.pathTwo = await getResourcePath("e5993b62684fe55d13190cfe52bf00ed");
+      console.log(
+        "pathOne",
+        await getResourcePath("f6f6588a75086576b87bed2fb9ca1ec1")
+      );
+      this.$data.pathOne = await getResourcePath(
+        "f6f6588a75086576b87bed2fb9ca1ec1"
+      );
+      this.$data.pathTwo = await getResourcePath(
+        "e5993b62684fe55d13190cfe52bf00ed"
+      );
       this.$data.pathThree = getResourcePath(
         "6b6d42213aa85aa5ff7724aaf96ffee6"
       );
-      this.$data.pathFour = await getResourcePath("17fb1555f98c8fceabce5ff75077af58");
-      this.$data.pathFive = await getResourcePath("163c06871b763954952d1cd74373c618");
-      this.$data.pathSix = await getResourcePath("1d57d897974b22f7f3191f4073ea0641");
-      this.$data.pathSeven = await  getResourcePath(
+      this.$data.pathFour = await getResourcePath(
+        "17fb1555f98c8fceabce5ff75077af58"
+      );
+      this.$data.pathFive = await getResourcePath(
+        "163c06871b763954952d1cd74373c618"
+      );
+      this.$data.pathSix = await getResourcePath(
+        "1d57d897974b22f7f3191f4073ea0641"
+      );
+      this.$data.pathSeven = await getResourcePath(
         "e67262b8e73ca5b05374b903defd874f"
       );
       this.$data.pathEight = await getResourcePath(
         "6731ebf8ea78297eedcb56521726481d"
       );
-      this.$data.pathNine = await getResourcePath("5ef5496040abee4013a5f61e3c5b42b9");
-      this.$data.pathTen = await getResourcePath("4afe59338bb841a498593cbe458c7d7d");
+      this.$data.pathNine = await getResourcePath(
+        "5ef5496040abee4013a5f61e3c5b42b9"
+      );
+      this.$data.pathTen = await getResourcePath(
+        "4afe59338bb841a498593cbe458c7d7d"
+      );
     },
     saveChapterOneData() {
       // 璁板綍绗竴寮犺緭鍏ユ暟鎹�
@@ -4792,7 +4884,7 @@
         JSON.stringify(this.chapterOneData)
       );
     },
-  }
+  },
 };
 </script>
 

--
Gitblit v1.9.1