From bac7941b8dc29e70643c44fb393c49d2eaa3015b Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期三, 07 八月 2024 16:06:22 +0800
Subject: [PATCH] 体育与健康完成

---
 src/books/artAndDrama/view/components/chapter001.vue |   97 ++++++++++++++++++++++++------------------------
 1 files changed, 48 insertions(+), 49 deletions(-)

diff --git a/src/books/artAndDrama/view/components/chapter001.vue b/src/books/artAndDrama/view/components/chapter001.vue
index af294c1..77e18ae 100644
--- a/src/books/artAndDrama/view/components/chapter001.vue
+++ b/src/books/artAndDrama/view/components/chapter001.vue
@@ -4,8 +4,7 @@
       <div v-if="showPageList.indexOf(4) > -1">
         <h1 id="a004">
           <img class="img-0" alt="" src="../../assets/images/dy1.jpg" />
-          <audio :src="auidoPathOne" controls controlslist="noplaybackrate nodownload" class="audio"
-            @play="audioPlay"></audio>
+          <audio :src="auidoPathOne" controls controlslist="noplaybackrate nodownload" class="audio"></audio>
         </h1>
         <div class="bodystyle">
           <div class="bk">
@@ -45,10 +44,11 @@
           </p>
           <h1>
             <!-- <audio :src="auidoPathTwo" controls controlslist="noplaybackrate nodownload" class="audio"
-              @play="audioPlay"></audio> -->
+            ></audio> -->
           </h1>
           <!-- 杩炵嚎棰� -->
-          <matching :rawData="rawData" :question="question" class="macthing" :primary-color="color"></matching>
+          <matching :rawData="rawData" :question="question" class="macthing" :primary-color="color"
+            :bordercolor="'#fff'"></matching>
           <p class="text">灏忔彁绀猴細鍔犵偣鐨勬枃瀛椾负鏈彞璇濅腑鐨勯�昏緫閲嶉煶锛屽湪鏈楄鍙戦煶鏃惰閲嶈銆�</p>
         </div>
         <p><br /></p>
@@ -64,13 +64,15 @@
         <img src="../../assets/images/page6-header-green.png" alt="" style="height: auto; width: 100%" />
         <div class="bodystyle">
           <h3 class="lefth3" id="c001"><img class="img-gn1" alt="" src="../../assets/images/czysj.jpg" /></h3>
-          <choice class="choice" :questions="questions" :primaryColor="accentColor" hoverBackgroundColor="#F58200" hoverColor="white"></choice>
+          <choice class="choice" :questions="questions" :primaryColor="accentColor" hoverBackgroundColor="#F58200"
+            hoverColor="white"></choice>
           <p class="center openImgBox">
             <img class="img-e" alt="" src="../../assets/images/1-2铓傝殎涓惧ぇ鏍�.gif" />
-          </p><p class="center text">
+          </p>
+          <p class="center text">
             <video :src="videoPathOne" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true"
               x5-video-orientation="h5" x5-video-player-fullscreen="true" x5-playsinline="" controls
-              controlslist="nodownload" class="w100 video " @play="videoPlay"
+              controlslist="nodownload" class="w100 video "
               style="margin-top: 40px; border-radius: 10px; border: 2px solid green;"></video>
           </p>
           <p class="center videoname">
@@ -103,8 +105,7 @@
           <p class="text">
             <span class="hs1">鈼�</span>璇峰皢浠ヤ笅璇炬枃閫夋澶у0鏈楄鍑烘潵锛屽姞鐐圭殑瀛楄閲嶈銆�
           </p>
-          <h1><audio :src="auidoPathThree" controls controlslist="noplaybackrate nodownload" class="audio"
-              @play="audioPlay"></audio></h1>
+          <h1><audio :src="auidoPathThree" controls controlslist="noplaybackrate nodownload" class="audio"></audio></h1>
           <div class="bj3">
             <p class="center">
               <span class="hs">鏄�<a id="w1"><sup>1</sup></a>锛堣妭閫夛級</span>
@@ -153,8 +154,7 @@
           <h1 class="lefth3 openImgBox" id="c005">
             <img class="img-gn1" alt="" src="../../assets/images/1-3.gif" style="height: auto; width: 50%" />
           </h1>
-          <h1><audio :src="auidoPathFour" controls controlslist="noplaybackrate nodownload" class="audio"
-              @play="audioPlay"></audio></h1>
+          <h1><audio :src="auidoPathFour" controls controlslist="noplaybackrate nodownload" class="audio"></audio></h1>
           <div class="bj3">
             <p class="center">
               <span class="hs">鏄�<a id="w1"></a><sup>1</sup>锛堣妭閫夛級</span>
@@ -200,12 +200,13 @@
             <span
               class="hs1">鈼�</span>鐢熸椿涓紝鎴戜滑鎬讳細閬囧埌鍚勭鍚勬牱鐨勮鎯戙�傞潰瀵硅鎯戞椂锛屾垜浠殑鍐呭績甯稿父浼氭湁涓や釜涓嶅悓鐨勫0闊冲嚭鐜帮細涓�涓0闊宠姹傛垜浠弗浜庡緥宸憋紝鍙︿竴涓0闊宠姹傛垜浠殢蹇冩墍娆层�傝浣犲垎鏋愪竴涓嬶紝褰撹殏铓侀槦闀块潰瀵规帀钀界殑濂堕叒娓g殑璇辨儜鏃讹紝浠栧唴蹇冪殑涓や釜澹伴煶浼氳浜涗粈涔堝憿锛�
           </p>
-          <p class="text">姝d箟闃熼暱锛氣��
-            <input v-model="questionData.warnUp.one" class="input-bottom-border input-w-60"
-              @change="setBookQuestion" />銆傗��
+          <p class="text t-l">姝d箟闃熼暱锛�
+            <textarea v-model="questionData.reading.one" placeholder="璇疯緭鍏ュ唴瀹�" rows="6"
+              style="margin-left: 40px; width: 92%" class="" @change="setBookQuestion" :class="{ 'textarea-focused': isFocused === 'one' }"  @focus="handleFocus('one')"  @blur="handleBlur('one')" ></textarea>
           </p>
-          <p class="text">榛戞殫闃熼暱锛氣�� <input v-model="questionData.warnUp.two" class="input-bottom-border input-w-60"
-              @change="setBookQuestion" />銆傗��
+          <p class="text t-l">榛戞殫闃熼暱锛�
+            <textarea v-model="questionData.reading.two" placeholder="璇疯緭鍏ュ唴瀹�" rows="6"
+              style="margin-left: 40px; width: 92%" class="" @change="setBookQuestion" :class="{ 'textarea-focused': isFocused === 'two'  }"  @focus="handleFocus('two')"  @blur="handleBlur('two')"></textarea>
           </p>
         </div>
         <!-- 姝ゆ涓洪〉鑴氶儴鍒嗭紙闇�瑕佽缃〉鐮侊級 -->
@@ -229,8 +230,7 @@
             <span class="hs1">鈼�</span>璇峰皢浠ヤ笅璇炬枃閫夋澶у0鏈楄鍑烘潵锛屽姞鐐圭殑瀛楄閲嶈銆�
           </p>
           <h1>
-            <audio :src="auidoPathFive" controls controlslist="noplaybackrate nodownload" class="audio"
-              @play="audioPlay"></audio>
+            <audio :src="auidoPathFive" controls controlslist="noplaybackrate nodownload" class="audio"></audio>
           </h1>
 
           <div class="bj3">
@@ -251,12 +251,12 @@
             <span class="hs1">鈼�</span>鍋囧浣犳槸鎼繍濂堕叒鐨勮殏铓侊紝浣犺鎬庝箞鎼繍涓嶅悓褰㈢姸銆佸ぇ灏忕殑濂堕叒鍛紵璇峰厛涓鸿嚜宸辫璁′竴涓墽鏈惂锛�
           </p>
           <p class="text">
-            鎴戞槸铓傝殎 <input v-model="questionData.warnUp.three" class="input-bottom-border fz-18" style=" width: 10%;"
+            鎴戞槸铓傝殎 <input v-model="questionData.warnUp.one" class="input-bottom-border fz-18" style=" width: 13%;"
               @change="setBookQuestion" />锛堝悕瀛楋級锛屼粖澶╂槸
-            <input v-model="questionData.warnUp.four" class="input-bottom-border fz-18" style=" width: 10%;"
-              @change="setBookQuestion" />锛堝ぉ姘旓級锛屾垜鐨勫ザ閰壒鍒� <input v-model="questionData.warnUp.five"
-              class="input-bottom-border fz-18" style=" width: 10%;" @change="setBookQuestion" />锛堣交/閲嶏級锛屾垜鎰熻濂� <input
-              v-model="questionData.warnUp.six" class="input-bottom-border fz-18" style=" width: 10%;"
+            <input v-model="questionData.warnUp.two" class="input-bottom-border fz-18" style=" width: 13%;"
+              @change="setBookQuestion" />锛堝ぉ姘旓級锛屾垜鐨勫ザ閰壒鍒� <input v-model="questionData.warnUp.three"
+              class="input-bottom-border fz-18" style=" width: 13%;" @change="setBookQuestion" />锛堣交/閲嶏級锛屾垜鎰熻濂� <input
+              v-model="questionData.warnUp.four" class="input-bottom-border fz-18" style=" width: 13%;"
               @change="setBookQuestion" />锛堣韩浣撴劅瑙夛級鍟婏紒
           </p>
           <hr style="margin-left: 9%; width: 20%;" />
@@ -307,25 +307,25 @@
           </h3>
           <p class="text ends">
             <span><span class="hs1">鈼�</span>鏀惧ぇ缂╁皬</span>
-            <span> <audio :src="auidoPathSex" controls controlslist="noplaybackrate nodownload" class="audio"
-            @play="audioPlay"></audio> </span>
-          </p> 
+            <span> <audio :src="auidoPathSex" controls controlslist="noplaybackrate nodownload" class="audio"></audio>
+            </span>
+          </p>
           <p class="text">
             璇蜂綘浜ゆ浛鈥滄斁澶р�濆拰鈥滅缉灏忊�濅簲瀹樸�傚湪鈥滄斁澶р�濇椂锛屾兂璞′簲瀹樿椋炲埌澶栧お绌猴紱鍦ㄢ�滅缉灏忊�濇椂锛屾兂璞′簲瀹樺叏閮ㄧ缉灏忓埌浜嗛蓟灏栦笂銆�
           </p>
 
           <p class="text ends">
             <span><span class="hs1">鈼�</span>鎻愬崌鑻规灉鑲�</span>
-            <span><audio :src="auidoPathSeven" controls controlslist="noplaybackrate nodownload" class="audio"
-              @play="audioPlay"></audio> </span>
+            <span><audio :src="auidoPathSeven" controls controlslist="noplaybackrate nodownload" class="audio"></audio>
+            </span>
           </p>
           <p class="text">
             鎯宠薄浣犲湪涓�涓檶鐢熺殑鍦版柟锛岃皝閮戒笉璁よ瘑锛岀獊鐒堕亣瑙佷簡濂芥湅鍙嬶紝浣犲緢楂樺叴锛屼笂鍓嶅拰浠�/濂规墦鎷涘懠銆傚仛涓�鍋氫綘姝ゆ椂鐨勮〃鎯呭惂銆�
           </p>
           <p class="text ends">
             <span><span class="hs1">鈼�</span>寰瑧璇粹�渁ng鈥�</span>
-            <span><audio :src="auidoPathEight" controls controlslist="noplaybackrate nodownload" class="audio"
-              @play="audioPlay"></audio></span>
+            <span><audio :src="auidoPathEight" controls controlslist="noplaybackrate nodownload"
+                class="audio"></audio></span>
           </p>
           <p class="text">
             璇蜂綘璇曚竴璇曞湪鎻愬崌鑻规灉鑲岀殑鍩虹涓婏紝鍙戝嚭鈥渁ng鈥濈殑闊炽�傚0闊宠灏藉彲鑳芥媺闀裤�佷繚鎸佺ǔ瀹氾紝骞跺悜杩滈�併��
@@ -333,9 +333,9 @@
 
           <p class="text ends">
             <span style="text-wrap: nowrap"><span class="hs1">鈼�</span>鍚戣繙灞卞枈鈥滈樋姣涒��</span>
-            <span style="margin-left: -4%;"><audio :src="auidoPathNine" controls controlslist="noplaybackrate nodownload" class="audio"
-              @play="audioPlay"></audio></span>
-            
+            <span style="margin-left: -4%;"><audio :src="auidoPathNine" controls
+                controlslist="noplaybackrate nodownload" class="audio"></audio></span>
+
           </p>
           <p class="text">
             鎯宠薄鑷繁绔欏湪涓�搴ч珮灞变笂锛屽ソ鏈嬪弸鈥滈樋姣涒�濈珯鍦ㄥ闈㈢殑楂樺北涓婏紝浣犺濡備綍鍠婁粬鍛紵
@@ -365,7 +365,7 @@
           <p class="center text">
             <video :src="videoPathOne" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true"
               x5-video-orientation="h5" x5-video-player-fullscreen="true" x5-playsinline="" controls
-              controlslist="nodownload" class="w100 video" @play="videoPlay"
+              controlslist="nodownload" class="w100 video"
               style="margin-top: 40px; border-radius: 10px; border: 2px solid green;"></video>
           </p>
           <p class="center videoname">
@@ -424,8 +424,9 @@
       auidoPathSeven: "",
       auidoPathEight: "",
       auidoPathNine: "",
-      accentColor:"",
-      color:"#fff",
+      accentColor: "",
+      color: "#fff",
+      isFocused: null, // 鐢ㄤ簬璺熻釜textarea鐨勮仛鐒︾姸鎬�  
       chapterData: {
         isCollectImg: false,
         isCollectVideo: false,
@@ -549,7 +550,7 @@
       questions: [
         {
           analysisCon: "undefined",
-          answer: ['A','B'],
+          answer: ['A', 'B'],
           difficulty: 0,
           id: 1,
           isCollect: false,
@@ -680,10 +681,6 @@
           two: "",
           three: "",
           four: "",
-          five: "",
-          six: "",
-          seven: "",
-          enight: "",
         },
         reading: {
           one: "",
@@ -729,7 +726,7 @@
       );
       this.auidoPathSeven = await getResourcePath(
         "27fcd83f77a10ecbf97970863e2653c3"
-      ); 
+      );
       this.auidoPathEight = await getResourcePath(
         "3d7f52cc80f8ed8994a046b418399116"
       );
@@ -737,18 +734,18 @@
         "3729175530def1b0baca68e0bd344862"
       );
     },
+    handleFocus(id) {  
+      this.isFocused = id; // 褰搕extarea鑱氱劍鏃讹紝璁剧疆涓簍rue  
+    },  
+    handleBlur(id) {  
+      this.isFocused = null; // 褰搕extarea澶卞幓鐒︾偣鏃讹紝璁剧疆涓篺alse  
+    },  
     setBookQuestion() {
       console.log("淇濆瓨");
       localStorage.setItem(
         "artAndDrama-book-question-one",
         JSON.stringify(this.questionData)
       );
-    },
-    audioPlay(e) {
-      this.$emit('closeAudio', e.srcElement.currentSrc)
-    },
-    videoPlay(e) {
-      this.$emit('closeVideo', e.srcElement.currentSrc)
     },
     handleChapterData() {
       localStorage.setItem(
@@ -772,7 +769,8 @@
 .w70 {
   width: 78%;
 }
-.choice{
+
+.choice {
   border: 1px solid green;
   border-radius: 10px;
   padding: 0 10px;
@@ -780,6 +778,7 @@
   font-family: "STkaiti";
   font-size: 19px;
 }
+
 .fw-400 {
   font-weight: 400 !important;
 }

--
Gitblit v1.9.1