zhongshujie
2024-08-08 3c3336804abaee7ce364cfb7be10d3849f6dd9cc
src/books/artAndDrama/view/components/chapter001.vue
@@ -3,9 +3,8 @@
    <div class="page-box" page="4">
      <div v-if="showPageList.indexOf(4) > -1">
        <h1 id="a004">
          <!-- 这里的动图有问题,没有背景图片 -->
          <img class="img-0" alt="" src="../../assets/images/dy1.jpg" />
          <audio :src="auidoPathOne" class="audio" controls></audio>
          <audio :src="auidoPathOne" controls controlslist="noplaybackrate nodownload" class="audio"></audio>
        </h1>
        <div class="bodystyle">
          <div class="bk">
@@ -14,14 +13,12 @@
                <img class="img-gn" alt="" src="../../assets/images/dydd.jpg" />
              </p>
            </div>
            <p class="block">
            <p class="block" style="margin:  8% 5% 5% 7%">
              在故事《一块奶酪》中,蚂蚁家庭的每一位成员都为了共同的目标分工协作、努力奋斗,在面对诱惑和挑战时更是严于律己、遵守团队纪律。本单元,让我们读一读《一块奶酪》的故事,学习蚂蚁们的优秀品格吧!
            </p>
          </div>
        </div>
        <p><br /></p>
        <!-- 此次为页脚部分(需要设置页码) -->
        <div class="page-footer">
          <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
          <div class="page-footer-number-right">1</div>
@@ -30,27 +27,29 @@
    </div>
    <div class="page-box" page="5">
      <div v-if="showPageList.indexOf(5) > -1">
        <h1>
        <h1 style="margin-bottom: 0%">
          <img src="../../assets/images/header-green.png" alt="" style="width: 100%; height: auto" />
        </h1>
        <div class="bodystyle">
          <img src="../../assets/images/page5.png" alt="" />
          <h2 id="b001">第一课 齐心协力</h2>
        <img class="headerimg" src="../../assets/images/page5.png" alt="" />
        <div class="bodystyle" style="margin-top: 3%">
          <h2 id="b001" class="problem">第一课 齐心协力</h2>
          <h3 class="lefth3" id="c001">
            <img class="img-gn1" alt="" src="../../assets/images/rhybx.jpg" />
          </h3>
          <p>
          <p class="text">
            在语言表述中,为了突出或强调某些意思,我们会使用“逻辑重音”这一技巧。同样一句话,不同的逻辑重音可以表达出不一样的意思。
          </p>
          <p>
          <p class="text">
            <span class="hs1">◇</span>大声朗读下面的句子,连一连不同逻辑重音强调的意思。
          </p>
          <h1>
            <audio :src="auidoPathTwo" class="audio" controls></audio>
            <!-- <audio :src="auidoPathTwo" controls controlslist="noplaybackrate nodownload" class="audio"
            ></audio> -->
          </h1>
          <p>小提示:加点的文字为本句话中的逻辑重音,在朗读发音时请重读。</p>
          <!-- 连线题 -->
          <matching :rawData="rawData" :item="question"></matching>
          <matching :rawData="rawData" :question="question" class="macthing" :primary-color="color"
            :bordercolor="'#fff'"></matching>
          <p class="text">小提示:加点的文字为本句话中的逻辑重音,在朗读发音时请重读。</p>
        </div>
        <p><br /></p>
        <!-- 此次为页脚部分(需要设置页码) -->
@@ -62,34 +61,28 @@
    </div>
    <div class="page-box" page="6">
      <div v-if="showPageList.indexOf(6) > -1">
        <h1>
          <img src="../../assets/images/page6-header-green.png" alt="" style="height: auto; width: 100%" />
        </h1>
        <img src="../../assets/images/page6-header-green.png" alt="" style="height: auto; width: 100%" />
        <div class="bodystyle">
          <h1 class="lefth3" id="c002">
            <img class="img-gn1" alt="" src="../../assets/images/czysj.jpg" />
          </h1>
          <p><span class="hs1">◇</span>请选出你认为正确的答案。</p>
          <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>
          <p class="center openImgBox">
            <img class="img-e" alt="" src="../../assets/images/1-2蚂蚁举大树.gif" />
          </p>
          <p>蚂蚁是典型的(  )昆虫。(多选)</p>
          <p>A.群居</p>
          <p>B.社会性</p>
          <p>C.独居</p>
          <p>蚂蚁内部有(  )分工。(多选)</p>
          <p>A.明确的</p>
          <p>B.奇怪的</p>
          <p>C.有序的</p>
          <p>一个(  )群体少不了默契的配合。(多选)</p>
          <p>A.团结的</p>
          <p>B.优秀的</p>
          <p>C.松散的</p>
          <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"
            style="margin-top: 40px; border-radius: 10px; border: 2px solid green;"></video>
          <h2>视频: 我们是一家人</h2>
          <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 "
              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="collectResourceList.findIndex(item => item.id == '691cbd2c13198d04afc7800d0f2cafb0') > -1 ? collectCheck : collectImg" alt="" class="collect-btn"
                @click="handleCollect('video')" />
            </el-tooltip>
          </p>
        </div>
        <!-- 此次为页脚部分(需要设置页码) -->
        <div class="page-footer">
@@ -100,20 +93,19 @@
    </div>
    <div class="page-box" page="7">
      <div v-if="showPageList.indexOf(7) > -1">
        <h1>
        <h1 style="margin-bottom: 0%">
          <img src="../../assets/images/header-green.png" alt="" style="width: 100%; height: auto" />
        </h1>
        <div class="bodystyle">
          <img src="../../assets/images/page5.png" alt="" />
          <h2 id="b002">第二课 津津乐道</h2>
        <img class="headerimg" src="../../assets/images/page5.png" alt="" />
        <div class="bodystyle" style="margin-top: 3%">
          <h2 id="b002" class="problem">第二课 津津乐道</h2>
          <h3 class="lefth3" id="c003">
            <img class="img-gn1" alt="" src="../../assets/images/rhybx.jpg" />
          </h3>
          <p>
          <p class="text">
            <span class="hs1">◇</span>请将以下课文选段大声朗诵出来,加点的字请重读。
          </p>
          <h1><audio :src="auidoPathThree" class="audio" controls></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>
@@ -130,14 +122,13 @@
          <h3 class="lefth3" id="c004">
            <img class="img-gn1" alt="" src="../../assets/images/czysj.jpg" />
          </h3>
          <p>
          <p class="text">
            <span class="hs1">◇</span>在《一块奶酪》的故事中,小蚂蚁们都有各自的立场,你能理解他们的想法吗?请你和同伴根据故事内容讨论一下。
          </p>
          <hr />
          <p class="note">
          <hr style="margin-left: 9%; margin-top: 10%; width: 25%;" />
          <p class="note left1 references">
            <a id="m1">1</a>
            朱自清:《春》,见温儒敏等:《义务教育教科书 语文
            七年级上册》,2页,北京,人民教育出版社,2016。
            朱自清:《春》,见温儒敏等:《义务教育教科书语文七年级上册》,2页,北京,人民教育出版社,2016。
          </p>
        </div>
        <!-- 此次为页脚部分(需要设置页码) -->
@@ -150,18 +141,20 @@
    <div class="page-box" page="8">
      <div v-if="showPageList.indexOf(8) > -1">
        <h1>
          <img src="../../assets/images/header-green.png" alt="" style="width: 100%; height: auto" />
          <img src="../../assets/images/page6-header-green.png" alt="" style="width: 100%; height: auto" />
        </h1>
        <div class="bodystyle">
          <img src="../../assets/images/page5.png" alt="" />
          <h2 id="b003">第三课 内心的声音</h2>
        <div class="bodystyle" style="margin-top: 3%">
          <h2 id="b003" class="problem">第三课 内心的声音</h2>
          <h3 class="lefth3" id="c006">
            <img class="img-gn1" alt="" src="../../assets/images/rhybx.jpg" />
          </h3>
          <p class="text">
            <span class="hs1">◇</span>请将以下课文选段大声朗诵出来,加点的字请重读。
          </p>
          <h1 class="lefth3 openImgBox" id="c005">
            <img class="img-gn1" alt="" src="../../assets/images/1-3.gif" style="height: auto; width: 50%" />
          </h1>
          <p>
            <span class="hs1">◇</span>请将以下课文选段大声朗诵出来,加点的字请重读。
          </p>
          <h1><audio :src="auidoPathTwo" class="audio" controls></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>
@@ -176,48 +169,55 @@
                class="un1">轻悄悄</span>的,草<span class="un1">软绵绵</span>的。
            </p>
          </div>
          <hr />
          <p class="note">
          <hr style="margin-left: 9%; width: 20%;" />
          <p class="note left1 references">
            <a id="m1">1</a>
            朱自清:《春》,见温儒敏等:《义务教育教科书 语文
            七年级上册》,2页,北京,人民教育出版社,2016。
          </p>
        </div>
      </div>
      <!-- 此次为页脚部分(需要设置页码) -->
      <div class="page-footer">
        <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
        <div class="page-footer-number-right">5</div>
        <!-- 此次为页脚部分(需要设置页码) -->
        <div class="page-footer">
          <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
          <div class="page-footer-number-right">5</div>
        </div>
      </div>
    </div>
    <div class="page-box" page="9">
      <div v-if="showPageList.indexOf(9) > -1">
        <h1>
        <h1 style="margin-bottom: 0%;">
          <img src="../../assets/images/header-green.png" alt="" style="width: 100%; height: auto" />
        </h1>
        <img class="headerimg" src="../../assets/images/page5.png" alt="" />
        <div class="bodystyle">
          <img src="../../assets/images/page5.png" alt="" />
          <h3 class="lefth3" id="c006">
            <img class="img-gn1" alt="" src="../../assets/images/czysj.jpg" />
          </h3>
          <h1 class="center openImgBox">
            <img class="img-e" alt="" src="../../assets/images/1-4.gif" style="height: auto; width: 50%" />
          </h1>
          <p>
          <p class="text">
            <span
              class="hs1">◇</span>生活中,我们总会遇到各种各样的诱惑。面对诱惑时,我们的内心常常会有两个不同的声音出现:一个声音要求我们严于律己,另一个声音要求我们随心所欲。请你分析一下,当蚂蚁队长面对掉落的奶酪渣的诱惑时,他内心的两个声音会说些什么呢?
          </p>
          <p>正义队长:“
            <input v-model="questionData.warnUp.one" class="input-bottom-border fz-18" @change="setBookQuestion" />”
          <p class="text t-l">正义队长:
            <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>黑暗队长:“ <input v-model="questionData.warnUp.two" class="input-bottom-border fz-18"
              @change="setBookQuestion" />”</p>
          <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>
      </div>
      <!-- 此次为页脚部分(需要设置页码) -->
      <div class="page-footer">
        <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
        <div class="page-footer-number-left">6</div>
        <!-- 此次为页脚部分(需要设置页码) -->
        <div class="page-footer">
          <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
          <div class="page-footer-number-left">6</div>
        </div>
      </div>
    </div>
    <div class="page-box" page="10">
@@ -225,16 +225,16 @@
        <h1>
          <img src="../../assets/images/page6-header-green.png" alt="" style="width: 100%; height: auto" />
        </h1>
        <div class="bodystyle">
          <h2 id="b004">第四课 身临其境</h2>
        <div class="bodystyle" style="margin-top: 3%">
          <h2 id="b004" class="problem">第四课 身临其境</h2>
          <h3 class="lefth3" id="c007">
            <img class="img-gn1" alt="" src="../../assets/images/rhybx.jpg" />
          </h3>
          <p>
          <p class="text">
            <span class="hs1">◇</span>请将以下课文选段大声朗诵出来,加点的字请重读。
          </p>
          <h1>
            <audio :src="auidoPathTwo" class="audio" controls></audio>
            <audio :src="auidoPathFive" controls controlslist="noplaybackrate nodownload" class="audio"></audio>
          </h1>
          <div class="bj3">
@@ -251,30 +251,30 @@
          <h3 class="lefth3" id="c008">
            <img class="img-gn1" alt="" src="../../assets/images/czysj.jpg" />
          </h3>
          <p>
          <p class="text">
            <span class="hs1">◇</span>假如你是搬运奶酪的蚂蚁,你要怎么搬运不同形状、大小的奶酪呢?请先为自己设计一个剧本吧:
          </p>
          <p>
            我是蚂蚁 <input v-model="questionData.warnUp.three" class="input-bottom-border fz-18" style=" width: 10%;"
          <p class="text">
            我是蚂蚁 <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 />
          <p class="note">
          <hr style="margin-left: 9%; width: 20%;" />
          <p class="note references">
            <a id="m1">1</a>
            朱自清:《春》,见温儒敏等:《义务教育教科书 语文
            七年级上册》,2页,北京,人民教育出版社,2016。
          </p>
        </div>
      </div>
      <!-- 此次为页脚部分(需要设置页码) -->
      <div class="page-footer">
        <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
        <div class="page-footer-number-right">7</div>
        <!-- 此次为页脚部分(需要设置页码) -->
        <div class="page-footer">
          <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
          <div class="page-footer-number-right">7</div>
        </div>
      </div>
    </div>
    <div class="page-box" page="11">
@@ -282,20 +282,21 @@
        <h1>
          <img src="../../assets/images/header-green.png" alt="" style="width: 100%; height: auto" />
        </h1>
        <div class="bodystyle">
          <img src="../../assets/images/page5.png" alt="" />
        <img class="headerimg" src="../../assets/images/page5.png" alt="" />
        <div class="bodystyle" style="margin-top: 3%;">
          <p class="center openImgBox">
            <img class="img-e" alt="" src="../../assets/images/1-5.gif" />
          </p>
          <p>
          <p class="text">
            <span class="hs1">◇</span>蚂蚁队长把奶酪渣留给了年龄最小的蚂蚁,赢得了大家的认可。在生活中,你曾经像“蚂蚁队长”一样爱护弱小吗?或者像“小蚂蚁”一样得到过哥哥姐姐们的关爱吗?
          </p>
        </div>
      </div>
      <!-- 此次为页脚部分(需要设置页码) -->
      <div class="page-footer">
        <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
        <div class="page-footer-number-left">8</div>
        <!-- 此次为页脚部分(需要设置页码) -->
        <div class="page-footer">
          <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
          <div class="page-footer-number-left">8</div>
        </div>
      </div>
    </div>
    <div class="page-box" page="12">
@@ -303,33 +304,52 @@
        <h1>
          <img src="../../assets/images/page6-header-green.png" alt="" style="width: 100%; height: auto" />
        </h1>
        <div class="bodystyle">
          <h2 id="b005">单元活动任务</h2>
        <div class="bodystyle" style="margin-top: 3%">
          <h2 id="b005" class="problem">单元活动任务</h2>
          <h3 class="lefth3" id="c009">
            <img class="img-gn1" alt="" src="../../assets/images/xsyty.jpg" />
          </h3>
          <p><span class="hs1">◇</span>放大缩小</p>
          <p>
          <p class="text ends">
            <span><span class="hs1">◇</span>放大缩小</span>
            <span> <audio :src="auidoPathSex" controls controlslist="noplaybackrate nodownload" class="audio"></audio>
            </span>
          </p>
          <p class="text">
            请你交替“放大”和“缩小”五官。在“放大”时,想象五官要飞到外太空;在“缩小”时,想象五官全部缩小到了鼻尖上。
          </p>
          <p><span class="hs1">◇</span>提升苹果肌</p>
          <p>
          <p class="text ends">
            <span><span class="hs1">◇</span>提升苹果肌</span>
            <span><audio :src="auidoPathSeven" controls controlslist="noplaybackrate nodownload" class="audio"></audio>
            </span>
          </p>
          <p class="text">
            想象你在一个陌生的地方,谁都不认识,突然遇见了好朋友,你很高兴,上前和他/她打招呼。做一做你此时的表情吧。
          </p>
          <p><span class="hs1">◇</span>微笑说“ang”</p>
          <p>
          <p class="text ends">
            <span><span class="hs1">◇</span>微笑说“ang”</span>
            <span><audio :src="auidoPathEight" controls controlslist="noplaybackrate nodownload"
                class="audio"></audio></span>
          </p>
          <p class="text">
            请你试一试在提升苹果肌的基础上,发出“ang”的音。声音要尽可能拉长、保持稳定,并向远送。
          </p>
          <p><span class="hs1">◇</span>向远山喊“阿毛”</p>
          <p>
          <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"></audio></span>
          </p>
          <p class="text">
            想象自己站在一座高山上,好朋友“阿毛”站在对面的高山上,你要如何喊他呢?
          </p>
        </div>
      </div>
      <!-- 此次为页脚部分(需要设置页码) -->
      <div class="page-footer">
        <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
        <div class="page-footer-number-right">9</div>
        <!-- 此次为页脚部分(需要设置页码) -->
        <div class="page-footer">
          <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
          <div class="page-footer-number-right">9</div>
        </div>
      </div>
    </div>
    <div class="page-box" page="13">
@@ -337,27 +357,35 @@
        <h1>
          <img src="../../assets/images/page6-header-green.png" alt="" style="width: 100%; height: auto" />
        </h1>
        <div class="bodystyle">
        <img class="headerimg" src="../../assets/images/page5.png" alt="" />
        <div class="bodystyle" style="margin-top: 3%">
          <h3 class="lefth3" id="c010">
            <img class="img-gn1" alt="" src="../../assets/images/tzyys.jpg" />
          </h3>
          <p><span class="hs1">◇</span>排一排·演一演:孔融让梨</p>
          <p>
          <p class="text"><span class="hs1">◇</span>排一排·演一演:孔融让梨</p>
          <p class="text">
            孔融四岁就懂礼貌、知谦让,是我们学习的好榜样,让我们运用本单元的戏剧知识,把他的故事表演出来吧!
          </p>
          <p class="center">
          <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"
              controlslist="nodownload" class="w100 video"
              style="margin-top: 40px; border-radius: 10px; border: 2px solid green;"></video>
          <h2>视频: 我们是一家人</h2>
          </p>
          <p class="center videoname">
            <span>视频:我们是一家人 </span>
            <el-tooltip class="item" effect="dark" :content="chapterData.isCollectVideo ? '点击取消' : '点击收藏'"
              placement="top-start">
              <img :src="collectResourceList.findIndex(item => item.id == '691cbd2c13198d04afc7800d0f2cafb0') > -1 ? collectCheck : collectImg" alt="" class="collect-btn"
                @click="handleCollect('video')" />
            </el-tooltip>
          </p>
        </div>
      </div>
      <!-- 此次为页脚部分(需要设置页码) -->
      <div class="page-footer">
        <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
        <div class="page-footer-number-left">10</div>
        <!-- 此次为页脚部分(需要设置页码) -->
        <div class="page-footer">
          <img class="page-footer-image" src="../../assets/images/ym.jpg" alt="Page Image" />
          <div class="page-footer-number-left">10</div>
        </div>
      </div>
    </div>
  </div>
@@ -365,49 +393,76 @@
<script>
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: { matching },
  components: {
    matching,
    choice,
  },
  props: {
    showPageList: {
      type: Array,
    },
  },
  //在这里对调用的方法进行挂载
  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 {
      collectImg: require("../../assets/images/icon/heart.png"),
      collectCheck: require("../../assets/images/icon/heart-check.png"),
      videoPathOne: "",
      videoPathTwo: "",
      videoPathThree: "",
      videoPathFour: "",
      auidoPathOne: "",
      auidoPathTwo: "",
      auidoPathThree: "",
      auidoPathFour: "",
      auidoPathFive: "",
      auidoPathSex: "",
      auidoPathSeven: "",
      auidoPathEight: "",
      auidoPathNine: "",
      accentColor: "",
      color: "#fff",
      isFocused: null, // 用于跟踪textarea的聚焦状态
      collectResourceList:[],
      chapterData: {
        isCollectImg: false,
        isCollectVideo: false,
        txtOne: "",
        txtTwo: "",
      },
      rawData: {
        left: [
          {
            oldId: "FB34",
            txt: "我请你吃苹果吧!",
            txt: " <span class='un1'>我</span>请你吃苹果吧!",
          },
          {
            oldId: "64D6",
            txt: "我请你吃苹果吧!",
            txt: "我<span class='un1'>请</span>你吃苹果吧!",
          },
          {
            oldId: "2ED4",
            txt: "我请你吃苹果吧!",
            txt: "我请<span class='un1'>你</span>吃苹果吧!",
          },
          {
            oldId: "44DE",
            txt: "我请你吃苹果吧!",
            txt: "我请你吃<span class='un1'>苹果</span>吧!",
          },
        ],
        right: [
@@ -416,15 +471,15 @@
            txt: "强调是请客",
          },
          {
            oldId: "FB34",
            oldId: "2ED4",
            txt: "强调请的是“你”",
          },
          {
            oldId: "2ED4",
            oldId: "44DE",
            txt: "强调吃的东西是“苹果”",
          },
          {
            oldId: "44DE",
            oldId: "FB34",
            txt: "强调请客的人是“我”",
          },
        ],
@@ -432,66 +487,66 @@
      question: {
        KnowledgePoint: "123",
        analysis: "123",
        //正确答案
        answer: [
          {
            id: "FB34",
            linkValue: "我请你吃苹果吧!",
            value: "强调是请客",
            linkValue: "强调请客的人是“我”",
            value: "<span class='un1'>我</span>请你吃苹果吧!",
          },
          {
            id: "64D6",
            linkValue: "我请你吃苹果吧!",
            value: "强调请的是“你”",
            linkValue: "强调是请客",
            value: "我<span class='un1'>请</span>你吃苹果吧!",
          },
          {
            id: "2ED4",
            linkValue: "我请你吃苹果吧!",
            value: "强调吃的东西是“苹果”",
            linkValue: "强调请的是“你”",
            value: "我请<span class='un1'>你</span>吃苹果吧!",
          },
          {
            id: "44DE",
            linkValue: "我请你吃苹果吧!",
            value: "强调请客的人是“我”",
            linkValue: "强调吃的东西是“苹果”",
            value: "我请你吃<span class='un1'>苹果</span>吧!",
          },
        ],
        optionStyle: undefined,
        id: 489306,
        options: {
          linkValues: [
            {
              oldId: "64D6",
              txt: "It is one of China's must-see sights for visitors, which shows thewisdom of Chinese people.",
            },
            {
              oldId: "44DE",
              txt: "It was first discovered and drank in China and my favoriteLongjing tea is produced near the West Lake in Hangzhou.",
            },
            {
              oldId: "FB34",
              txt: "The clothing material is quite popular among Roman women inancient times.",
            },
            {
              oldId: "2ED4",
              txt: "It is very delicious and I like the hot and spicy Sichuan lavor hest.",
            },
          linkValues: [{
            oldId: "64D6",
            txt: "强调是请客",
          },
          {
            oldId: "2ED4",
            txt: "强调请的是“你”",
          },
          {
            oldId: "44DE",
            txt: "强调吃的东西是“苹果”",
          },
          {
            oldId: "FB34",
            txt: "强调请客的人是“我”",
          },
          ],
          values: [
            {
              oldId: "FB34",
              txt: "Martin  Silk",
            },
            {
              oldId: "64D6",
              txt: "The Great Wall",
            },
            {
              oldId: "2ED4",
              txt: "Chinese Food",
            },
            {
              oldId: "44DE",
              txt: "Chinese Tea",
            },
          values: [{
            oldId: "FB34",
            txt: "<span class='un1'>我</span>请你吃苹果吧!",
          },
          {
            oldId: "64D6",
            txt: "我<span class='un1'>请</span>你吃苹果吧!",
          },
          {
            oldId: "2ED4",
            txt: "我请<span class='un1'>你</span>吃苹果吧!",
          },
          {
            oldId: "44DE",
            txt: "我请你吃<span class='un1'>苹果</span>吧!",
          },
          ],
        },
        questionType: "matching",
@@ -502,15 +557,142 @@
        titleDescription: "1",
        userChoise: [],
        value: [],
        answerImg: require("../../assets/images/matching-one.png"),
      },
      questions: [
        {
          analysisCon: "undefined",
          answer: ['A', 'B'],
          difficulty: 0,
          id: 1,
          isCollect: false,
          isComplete: false,
          isRight: null,
          isUnfold: "",
          isUserAnswer: false,
          number: 1,
          options: [
            {
              img: "",
              index: "3CA6",
              txt: "群居",
              value: "A"
            },
            {
              img: "",
              index: "73EE",
              txt: "社会性",
              value: "B"
            },
            {
              img: "",
              index: "6AEF",
              txt: "独居",
              value: "C"
            },
          ],
          optionStyle: "Image",
          questionType: "singleChoice",
          score: 2,
          stem: {
            "stemTxt": "1、蚂蚁是典型的( )昆虫。(多选)"
          },
          stemStyle: "Txt",
          userAnswer: "",
          // 单选题这里的字段内容就是"单选题"
          type: 'multi'
        },
        {
          analysisCon: "undefined",
          answer: ['A', 'C'],
          difficulty: 0,
          id: 2,
          isCollect: false,
          isComplete: false,
          isRight: null,
          isUnfold: "",
          isUserAnswer: false,
          number: 1,
          options: [
            {
              img: "",
              index: "3CA6",
              txt: "明确的",
              value: "A"
            },
            {
              img: "",
              index: "73EE",
              txt: "奇怪的",
              value: "B"
            },
            {
              img: "",
              index: "6AEF",
              txt: "有序的",
              value: "C"
            },
          ],
          optionStyle: "Image",
          questionType: "singleChoice",
          score: 2,
          stem: {
            "stemTxt": "2、蚂蚁内部又( )分工。(多选)"
          },
          stemStyle: "Txt",
          userAnswer: "",
          // 单选题这里的字段内容就是"单选题"
          type: 'multi'
        },
        {
          analysisCon: "undefined",
          answer: ['A', 'B'],
          difficulty: 0,
          id: 3,
          isCollect: false,
          isComplete: false,
          isRight: null,
          isUnfold: "",
          isUserAnswer: false,
          number: 1,
          options: [
            {
              img: "",
              index: "3CA6",
              txt: "团结的",
              value: "A"
            },
            {
              img: "",
              index: "73EE",
              txt: "优秀的",
              value: "B"
            },
            {
              img: "",
              index: "6AEF",
              txt: "松散的",
              value: "C"
            },
          ],
          optionStyle: "Image",
          questionType: "singleChoice",
          score: 2,
          stem: {
            "stemTxt": "3、一个( )群体少不了默契的配合。(多选)"
          },
          stemStyle: "Txt",
          userAnswer: "",
          // 单选题这里的字段内容就是"单选题"
          type: 'multi'
        },
      ],
      questionData: {
        warnUp: {
          one: "",
          two: "",
          three: "",
          four: "",
          five: "",
          six: "",
        },
        reading: {
          one: "",
@@ -530,39 +712,82 @@
      },
    };
  },
  methods: {
    //视频和音频的MD5地址
    async getVidoePath() {
      this.videoPathOne = await getResourcePath(
        "691cbd2c13198d04afc7800d0f2cafb0"
      );
      this.videoPathTwo = await getResourcePath(
        "a3c9b55ac8227e4c885384ff2fc6c0e7"
      this.auidoPathOne = await getResourcePath(
        "a8778fb480281170f6c421b57694d4ef"
      );
      this.videoPathThree = await getResourcePath(
        "dd44a1e31b4304f50d10b2481a148411"
      );
      this.videoPathFour = await getResourcePath(
        "09de7704eeaaf3a210b8c6af0a94d545"
      );
      // this.auidoPathOne = await getResourcePath(
      //   "2c5f6c69b0f9f7a3c03e473cb8c977f5"
      // );
      // 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; // 当textarea聚焦时,设置为true
    },
    handleBlur(id) {
      this.isFocused = null; // 当textarea失去焦点时,设置为false
    },
    setBookQuestion() {
      console.log("保存");
      localStorage.setItem(
        "artAndDrama-book-question-one",
        JSON.stringify(this.questionData)
      );
    },
    handleChapterData() {
      localStorage.setItem(
        "artAndDrama-chapter01-Data",
        JSON.stringify(this.chapterData)
      );
    },
    handleCollect(type) {
      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>
@@ -570,6 +795,15 @@
<style lang="less" scoped>
.w70 {
  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 {
@@ -591,4 +825,10 @@
  height: 100%;
  background-color: red;
}
.macthing {
  background-color: rgb(188, 220, 164);
  padding: 3% 0;
  margin: 0% 8%;
}
</style>