From f77e02b69e4512f00251929b14888f3e6bbac37f Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期一, 09 九月 2024 10:41:19 +0800 Subject: [PATCH] 艺术戏剧(bug解决) --- src/books/artAndDrama/view/components/chapter001.vue | 307 ++++++++++++++++++++++++++++++++------------------ 1 files changed, 194 insertions(+), 113 deletions(-) diff --git a/src/books/artAndDrama/view/components/chapter001.vue b/src/books/artAndDrama/view/components/chapter001.vue index 581c9d6..cee59a7 100644 --- a/src/books/artAndDrama/view/components/chapter001.vue +++ b/src/books/artAndDrama/view/components/chapter001.vue @@ -4,7 +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 class="audio" @play="audioPlay"></audio> + <audio style="margin-top: 1em" :src="auidoPathOne" controls controlslist="noplaybackrate nodownload" class="audio"></audio> </h1> <div class="bodystyle"> <div class="bk"> @@ -36,17 +36,19 @@ <h3 class="lefth3" id="c001"> <img class="img-gn1" alt="" src="../../assets/images/rhybx.jpg" /> </h3> - <p class="text"> + <p class="text "> 鍦ㄨ瑷�琛ㄨ堪涓紝涓轰簡绐佸嚭鎴栧己璋冩煇浜涙剰鎬濓紝鎴戜滑浼氫娇鐢ㄢ�滈�昏緫閲嶉煶鈥濊繖涓�鎶�宸с�傚悓鏍蜂竴鍙ヨ瘽锛屼笉鍚岀殑閫昏緫閲嶉煶鍙互琛ㄨ揪鍑轰笉涓�鏍风殑鎰忔�濄�� </p> - <p class="text"> - <span class="hs1">鈼�</span>澶у0鏈楄涓嬮潰鐨勫彞瀛愶紝杩炰竴杩炰笉鍚岄�昏緫閲嶉煶寮鸿皟鐨勬剰鎬濄�� + <p class="text rhombusFather"> + <span class="hs1 rhombus">鈼�</span>澶у0鏈楄涓嬮潰鐨勫彞瀛愶紝杩炰竴杩炰笉鍚岄�昏緫閲嶉煶寮鸿皟鐨勬剰鎬濄�� </p> <h1> - <audio :src="auidoPathTwo" controls class="audio" @play="audioPlay"></audio> + <!-- <audio :src="auidoPathTwo" controls controlslist="noplaybackrate nodownload" class="audio" + ></audio> --> </h1> <!-- 杩炵嚎棰� --> - <matching :rawData="rawData" :question="question" class="macthing" :primaryColor="'transparent'"></matching> + <matching :rawData="rawData" :question="question" class="macthing" :primary-color="color" + :bordercolor="'#fff'"></matching> <p class="text">灏忔彁绀猴細鍔犵偣鐨勬枃瀛椾负鏈彞璇濅腑鐨勯�昏緫閲嶉煶锛屽湪鏈楄鍙戦煶鏃惰閲嶈銆�</p> </div> <p><br /></p> @@ -62,22 +64,22 @@ <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> - <p class="text"><span class="hs1">鈼�</span>璇烽�夊嚭浣犺涓烘纭殑绛旀銆�</p> + <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> - <choice class="text" :questions="questions" :primaryColor="accentColor" hoverBackgroundColor="#F58200" hoverColor="white"></choice> <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"> <span>瑙嗛锛氭垜浠槸涓�瀹朵汉 </span> <el-tooltip class="item" effect="dark" :content="chapterData.isCollectVideo ? '鐐瑰嚮鍙栨秷' : '鐐瑰嚮鏀惰棌'" placement="top-start"> - <img :src="chapterData.isCollectVideo ? collectCheck : collectImg" alt="" class="collect-btn" + <img :src="collectResourceList.findIndex(item => item.id == '691cbd2c13198d04afc7800d0f2cafb0') > -1 ? collectCheck : collectImg" alt="" class="collect-btn" @click="handleCollect('video')" /> </el-tooltip> </p> @@ -100,10 +102,10 @@ <h3 class="lefth3" id="c003"> <img class="img-gn1" alt="" src="../../assets/images/rhybx.jpg" /> </h3> - <p class="text"> - <span class="hs1">鈼�</span>璇峰皢浠ヤ笅璇炬枃閫夋澶у0鏈楄鍑烘潵锛屽姞鐐圭殑瀛楄閲嶈銆� + <p class="text rhombusFather"> + <span class="hs1 rhombus" style="">鈼�</span>璇峰皢浠ヤ笅璇炬枃閫夋澶у0鏈楄鍑烘潵锛屽姞鐐圭殑瀛楄閲嶈銆� </p> - <h1><audio :src="auidoPathThree" controls 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> @@ -120,8 +122,8 @@ <h3 class="lefth3" id="c004"> <img class="img-gn1" alt="" src="../../assets/images/czysj.jpg" /> </h3> - <p class="text"> - <span class="hs1">鈼�</span>鍦ㄣ�婁竴鍧楀ザ閰�嬬殑鏁呬簨涓紝灏忚殏铓佷滑閮芥湁鍚勮嚜鐨勭珛鍦猴紝浣犺兘鐞嗚В浠栦滑鐨勬兂娉曞悧锛熻浣犲拰鍚屼即鏍规嵁鏁呬簨鍐呭璁ㄨ涓�涓嬨�� + <p class="text rhombusFather"> + <span class="hs1 rhombus">鈼�</span>鍦ㄣ�婁竴鍧楀ザ閰�嬬殑鏁呬簨涓紝灏忚殏铓佷滑閮芥湁鍚勮嚜鐨勭珛鍦猴紝浣犺兘鐞嗚В浠栦滑鐨勬兂娉曞悧锛熻浣犲拰鍚屼即鏍规嵁鏁呬簨鍐呭璁ㄨ涓�涓嬨�� </p> <hr style="margin-left: 9%; margin-top: 10%; width: 25%;" /> <p class="note left1 references"> @@ -146,13 +148,13 @@ <h3 class="lefth3" id="c006"> <img class="img-gn1" alt="" src="../../assets/images/rhybx.jpg" /> </h3> - <p class="text"> - <span class="hs1">鈼�</span>璇峰皢浠ヤ笅璇炬枃閫夋澶у0鏈楄鍑烘潵锛屽姞鐐圭殑瀛楄閲嶈銆� + <p class="text rhombusFather"> + <span class="hs1 rhombus">鈼�</span>璇峰皢浠ヤ笅璇炬枃閫夋澶у0鏈楄鍑烘潵锛屽姞鐐圭殑瀛楄閲嶈銆� </p> <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="auidoPathTwo" controls 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> @@ -194,16 +196,21 @@ <h1 class="center openImgBox"> <img class="img-e" alt="" src="../../assets/images/1-4.gif" style="height: auto; width: 50%" /> </h1> - <p class="text"> + <p class="text rhombusFather"> <span - class="hs1">鈼�</span>鐢熸椿涓紝鎴戜滑鎬讳細閬囧埌鍚勭鍚勬牱鐨勮鎯戙�傞潰瀵硅鎯戞椂锛屾垜浠殑鍐呭績甯稿父浼氭湁涓や釜涓嶅悓鐨勫0闊冲嚭鐜帮細涓�涓0闊宠姹傛垜浠弗浜庡緥宸憋紝鍙︿竴涓0闊宠姹傛垜浠殢蹇冩墍娆层�傝浣犲垎鏋愪竴涓嬶紝褰撹殏铓侀槦闀块潰瀵规帀钀界殑濂堕叒娓g殑璇辨儜鏃讹紝浠栧唴蹇冪殑涓や釜澹伴煶浼氳浜涗粈涔堝憿锛� + class="hs1 rhombus">鈼�</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> <!-- 姝ゆ涓洪〉鑴氶儴鍒嗭紙闇�瑕佽缃〉鐮侊級 --> @@ -223,11 +230,11 @@ <h3 class="lefth3" id="c007"> <img class="img-gn1" alt="" src="../../assets/images/rhybx.jpg" /> </h3> - <p class="text"> - <span class="hs1">鈼�</span>璇峰皢浠ヤ笅璇炬枃閫夋澶у0鏈楄鍑烘潵锛屽姞鐐圭殑瀛楄閲嶈銆� + <p class="text rhombusFather"> + <span class="hs1 rhombus">鈼�</span>璇峰皢浠ヤ笅璇炬枃閫夋澶у0鏈楄鍑烘潵锛屽姞鐐圭殑瀛楄閲嶈銆� </p> <h1> - <audio :src="auidoPathTwo" controls class="audio" @play="audioPlay"></audio> + <audio :src="auidoPathFive" controls controlslist="noplaybackrate nodownload" class="audio"></audio> </h1> <div class="bj3"> @@ -244,16 +251,16 @@ <h3 class="lefth3" id="c008"> <img class="img-gn1" alt="" src="../../assets/images/czysj.jpg" /> </h3> - <p class="text"> - <span class="hs1">鈼�</span>鍋囧浣犳槸鎼繍濂堕叒鐨勮殏铓侊紝浣犺鎬庝箞鎼繍涓嶅悓褰㈢姸銆佸ぇ灏忕殑濂堕叒鍛紵璇峰厛涓鸿嚜宸辫璁′竴涓墽鏈惂锛� + <p class="text rhombusFather"> + <span class="hs1 rhombus">鈼�</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%;" /> @@ -281,8 +288,8 @@ <p class="center openImgBox"> <img class="img-e" alt="" src="../../assets/images/1-5.gif" /> </p> - <p class="text"> - <span class="hs1">鈼�</span>铓傝殎闃熼暱鎶婂ザ閰福鐣欑粰浜嗗勾榫勬渶灏忕殑铓傝殎锛岃耽寰椾簡澶у鐨勮鍙�傚湪鐢熸椿涓紝浣犳浘缁忓儚鈥滆殏铓侀槦闀库�濅竴鏍风埍鎶ゅ急灏忓悧锛熸垨鑰呭儚鈥滃皬铓傝殎鈥濅竴鏍峰緱鍒拌繃鍝ュ摜濮愬浠殑鍏崇埍鍚楋紵 + <p class="text rhombusFather"> + <span class="hs1 rhombus">鈼�</span>铓傝殎闃熼暱鎶婂ザ閰福鐣欑粰浜嗗勾榫勬渶灏忕殑铓傝殎锛岃耽寰椾簡澶у鐨勮鍙�傚湪鐢熸椿涓紝浣犳浘缁忓儚鈥滆殏铓侀槦闀库�濅竴鏍风埍鎶ゅ急灏忓悧锛熸垨鑰呭儚鈥滃皬铓傝殎鈥濅竴鏍峰緱鍒拌繃鍝ュ摜濮愬浠殑鍏崇埍鍚楋紵 </p> </div> <!-- 姝ゆ涓洪〉鑴氶儴鍒嗭紙闇�瑕佽缃〉鐮侊級 --> @@ -302,19 +309,38 @@ <h3 class="lefth3" id="c009"> <img class="img-gn1" alt="" src="../../assets/images/xsyty.jpg" /> </h3> - <p class="text"><span class="hs1">鈼�</span>鏀惧ぇ缂╁皬</p> + <p class="text ends rhombusFather"> + <span><span class="hs1 rhombuSpecial">鈼�</span>鏀惧ぇ缂╁皬</span> + <span> <audio :src="auidoPathSex" controls controlslist="noplaybackrate nodownload" class="audio"></audio> + </span> + </p> <p class="text"> 璇蜂綘浜ゆ浛鈥滄斁澶р�濆拰鈥滅缉灏忊�濅簲瀹樸�傚湪鈥滄斁澶р�濇椂锛屾兂璞′簲瀹樿椋炲埌澶栧お绌猴紱鍦ㄢ�滅缉灏忊�濇椂锛屾兂璞′簲瀹樺叏閮ㄧ缉灏忓埌浜嗛蓟灏栦笂銆� </p> - <p class="text"><span class="hs1">鈼�</span>鎻愬崌鑻规灉鑲�</p> + + <p class="text ends rhombusFather"> + <span><span class="hs1 rhombuSpecial">鈼�</span>鎻愬崌鑻规灉鑲�</span> + <span><audio :src="auidoPathSeven" controls controlslist="noplaybackrate nodownload" class="audio"></audio> + </span> + </p> <p class="text"> 鎯宠薄浣犲湪涓�涓檶鐢熺殑鍦版柟锛岃皝閮戒笉璁よ瘑锛岀獊鐒堕亣瑙佷簡濂芥湅鍙嬶紝浣犲緢楂樺叴锛屼笂鍓嶅拰浠�/濂规墦鎷涘懠銆傚仛涓�鍋氫綘姝ゆ椂鐨勮〃鎯呭惂銆� </p> - <p class="text"><span class="hs1">鈼�</span>寰瑧璇粹�渁ng鈥�</p> + <p class="text ends rhombusFather"> + <span style="text-wrap: nowrap"><span class="hs1 rhombuSpecial">鈼�</span>寰瑧璇粹�渁ng鈥�</span> + <span><audio :src="auidoPathEight" controls controlslist="noplaybackrate nodownload" + class="audio"></audio></span> + </p> <p class="text"> 璇蜂綘璇曚竴璇曞湪鎻愬崌鑻规灉鑲岀殑鍩虹涓婏紝鍙戝嚭鈥渁ng鈥濈殑闊炽�傚0闊宠灏藉彲鑳芥媺闀裤�佷繚鎸佺ǔ瀹氾紝骞跺悜杩滈�併�� </p> - <p class="text"><span class="hs1">鈼�</span>鍚戣繙灞卞枈鈥滈樋姣涒��</p> + + <p class="text ends rhombusFather"> + <span style="text-wrap: nowrap"><span class="hs1 rhombuSpecial">鈼�</span>鍚戣繙灞卞枈鈥滈樋姣涒��</span> + <span style="margin-left: -4%;"><audio :src="auidoPathNine" controls + controlslist="noplaybackrate nodownload" class="audio"></audio></span> + + </p> <p class="text"> 鎯宠薄鑷繁绔欏湪涓�搴ч珮灞变笂锛屽ソ鏈嬪弸鈥滈樋姣涒�濈珯鍦ㄥ闈㈢殑楂樺北涓婏紝浣犺濡備綍鍠婁粬鍛紵 </p> @@ -336,21 +362,21 @@ <h3 class="lefth3" id="c010"> <img class="img-gn1" alt="" src="../../assets/images/tzyys.jpg" /> </h3> - <p class="text"><span class="hs1">鈼�</span>鎺掍竴鎺捖锋紨涓�婕旓細瀛旇瀺璁╂ⅷ</p> + <p class="text rhombusFather"><span class="hs1 rhombus">鈼�</span>鎺掍竴鎺捖锋紨涓�婕旓細瀛旇瀺璁╂ⅷ</p> <p class="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"> <span>瑙嗛锛氭垜浠槸涓�瀹朵汉 </span> <el-tooltip class="item" effect="dark" :content="chapterData.isCollectVideo ? '鐐瑰嚮鍙栨秷' : '鐐瑰嚮鏀惰棌'" placement="top-start"> - <img :src="chapterData.isCollectVideo ? collectCheck : collectImg" alt="" class="collect-btn" + <img :src="collectResourceList.findIndex(item => item.id == '691cbd2c13198d04afc7800d0f2cafb0') > -1 ? collectCheck : collectImg" alt="" class="collect-btn" @click="handleCollect('video')" /> </el-tooltip> </p> @@ -369,6 +395,7 @@ import matching from "@/components/matching/matching.vue"; import choice from "@/components/choice/choice.vue" import { getResourcePath } from "@/assets/methods/resources"; +import { getCollectResource, setCollectResource } from "@/assets/methods/resources"; export default { name: "chapterOne", components: { @@ -381,12 +408,18 @@ }, }, //鍦ㄨ繖閲屽璋冪敤鐨勬柟娉曡繘琛屾寕杞� - mounted() { - this.getVidoePath(); + async mounted() { const bookQuestion = localStorage.getItem("artAndDrama-book-question-one"); if (bookQuestion) { this.questionData = JSON.parse(bookQuestion); } + this.getVidoePath(); + const data = localStorage.getItem("artAndDrama-chapter01-Data"); + if (data) { + this.chapterData = JSON.parse(data); + } + this.collectResourceList = await getCollectResource(this.config.activeBook.bookId) + }, data() { return { @@ -396,11 +429,21 @@ auidoPathOne: "", auidoPathTwo: "", auidoPathThree: "", + auidoPathFour: "", + auidoPathFive: "", + auidoPathSex: "", + auidoPathSeven: "", + auidoPathEight: "", + auidoPathNine: "", + accentColor: "", + color: "#fff", + isFocused: null, // 鐢ㄤ簬璺熻釜textarea鐨勮仛鐒︾姸鎬� + collectResourceList:[], chapterData: { - isCollectImg: false, - isCollectVideo: false, - txtOne: "", - txtTwo: "", + isCollectImg: false, + isCollectVideo: false, + txtOne: "", + txtTwo: "", }, rawData: { left: [ @@ -521,7 +564,7 @@ analysisCon: "undefined", answer: ['A', 'B'], difficulty: 0, - id: 47772, + id: 1, isCollect: false, isComplete: false, isRight: null, @@ -530,22 +573,22 @@ number: 1, options: [ { - "img": "", - "index": "3CA6", - "txt": "缇ゅ眳", - "value": "A" + img: "", + index: "3CA6", + txt: "缇ゅ眳", + value: "A" }, { - "img": "", - "index": "73EE", - "txt": "绀句細鎬�", - "value": "B" + img: "", + index: "73EE", + txt: "绀句細鎬�", + value: "B" }, { - "img": "", - "index": "6AEF", - "txt": "鐙眳", - "value": "C" + img: "", + index: "6AEF", + txt: "鐙眳", + value: "C" }, ], optionStyle: "Image", @@ -563,7 +606,7 @@ analysisCon: "undefined", answer: ['A', 'C'], difficulty: 0, - id: 47773, + id: 2, isCollect: false, isComplete: false, isRight: null, @@ -572,22 +615,22 @@ number: 1, options: [ { - "img": "", - "index": "3CA6", - "txt": "鏄庣‘鐨�", - "value": "A" + img: "", + index: "3CA6", + txt: "鏄庣‘鐨�", + value: "A" }, { - "img": "", - "index": "73EE", - "txt": "濂囨�殑", - "value": "B" + img: "", + index: "73EE", + txt: "濂囨�殑", + value: "B" }, { - "img": "", - "index": "6AEF", - "txt": "鏈夊簭鐨�", - "value": "C" + img: "", + index: "6AEF", + txt: "鏈夊簭鐨�", + value: "C" }, ], optionStyle: "Image", @@ -605,7 +648,7 @@ analysisCon: "undefined", answer: ['A', 'B'], difficulty: 0, - id: 47774, + id: 3, isCollect: false, isComplete: false, isRight: null, @@ -614,22 +657,22 @@ number: 1, options: [ { - "img": "", - "index": "3CA6", - "txt": "鍥㈢粨鐨�", - "value": "A" + img: "", + index: "3CA6", + txt: "鍥㈢粨鐨�", + value: "A" }, { - "img": "", - "index": "73EE", - "txt": "浼樼鐨�", - "value": "B" + img: "", + index: "73EE", + txt: "浼樼鐨�", + value: "B" }, { - "img": "", - "index": "6AEF", - "txt": "鏉炬暎鐨�", - "value": "C" + img: "", + index: "6AEF", + txt: "鏉炬暎鐨�", + value: "C" }, ], optionStyle: "Image", @@ -650,10 +693,6 @@ two: "", three: "", four: "", - five: "", - six: "", - seven: "", - enight: "", }, reading: { one: "", @@ -679,43 +718,76 @@ this.videoPathOne = await getResourcePath( "691cbd2c13198d04afc7800d0f2cafb0" ); - // this.auidoPathOne = await getResourcePath( - // "2c5f6c69b0f9f7a3c03e473cb8c977f5" - // ); + this.auidoPathOne = await getResourcePath( + "a8778fb480281170f6c421b57694d4ef" + ); // this.auidoPathTwo = await getResourcePath( - // "e93c0fdde08be5a4386c8c863892a287" + // "1089676a40bedbe85a12db86199c3615" // ); - // this.auidoPathThree = await getResourcePath( - // "e93c0fdde08be5a4386c8c863892a287" - // ); + this.auidoPathThree = await getResourcePath( + "1089676a40bedbe85a12db86199c3615" + ); + this.auidoPathFour = await getResourcePath( + "abbb24d6a0f1de8c08462c3d4b68f575" + ); + this.auidoPathFive = await getResourcePath( + "abce7305a3e3c22b686af3a395575411" + ); + this.auidoPathSex = await getResourcePath( + "66b8f2c7f953556400367a89e0af8321" + ); + this.auidoPathSeven = await getResourcePath( + "27fcd83f77a10ecbf97970863e2653c3" + ); + this.auidoPathEight = await getResourcePath( + "3d7f52cc80f8ed8994a046b418399116" + ); + this.auidoPathNine = await getResourcePath( + "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( - "math-chapterData", + "artAndDrama-chapter01-Data", JSON.stringify(this.chapterData) ); }, handleCollect(type) { - if (type == "img") { - this.chapterData.isCollectImg = !this.chapterData.isCollectImg; - } else if (type == "video") { - this.chapterData.isCollectVideo = !this.chapterData.isCollectVideo; - } + if (type == "video") { + this.handleCollectResource("691cbd2c13198d04afc7800d0f2cafb0","691cbd2c13198d04afc7800d0f2cafb0",'',"瑙嗛","bits",'瑙嗛锛氭垜浠槸涓�瀹朵汉') + } this.handleChapterData(); }, + //璧勬簮鏀惰棌浜嬩欢 + handleCollectResource(id, md5, resourcePath, resourceType, source, resourceName) { + let list = this.collectResourceList + if (list.findIndex(item => item.id == id) > -1) { + list = list.filter(item => item.id != id) + } else { + list.push({ + id, + md5, + resourcePath, + resourceType, + source, + resourceName, + }) + } + this.collectResourceList = list + setCollectResource(this.config.activeBook.bookId, this.collectResourceList) + } }, }; </script> @@ -725,6 +797,15 @@ width: 78%; } +.choice { + border: 1px solid green; + border-radius: 10px; + padding: 0 10px; + box-sizing: border-box; + font-family: "STkaiti"; + font-size: 19px; +} + .fw-400 { font-weight: 400 !important; } -- Gitblit v1.9.1