user1
2024-06-28 9258654657affed07bbee9f999d1bf31ef9e6e20
src/books/artAndDrama/view/components/chapter001.vue
@@ -4,7 +4,8 @@
      <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 :src="auidoPathOne" controls controlslist="noplaybackrate nodownload" class="audio"
            @play="audioPlay"></audio>
        </h1>
        <div class="bodystyle">
          <div class="bk">
@@ -43,10 +44,11 @@
            <span class="hs1">◇</span>大声朗读下面的句子,连一连不同逻辑重音强调的意思。
          </p>
          <h1>
            <audio :src="auidoPathTwo" controls class="audio" @play="audioPlay"></audio>
            <!-- <audio :src="auidoPathTwo" controls controlslist="noplaybackrate nodownload" class="audio"
              @play="audioPlay"></audio> -->
          </h1>
          <!-- 连线题 -->
          <matching :rawData="rawData" :question="question" class="macthing" :primaryColor="'transparent'"></matching>
          <matching :rawData="rawData" :question="question" class="macthing" :primary-color="color"></matching>
          <p class="text">小提示:加点的文字为本句话中的逻辑重音,在朗读发音时请重读。</p>
        </div>
        <p><br /></p>
@@ -59,43 +61,24 @@
    </div>
    <div class="page-box" page="6">
      <div v-if="showPageList.indexOf(6) > -1">
        <img src="../../assets/images/page6-header-green.png" alt="" style="height: auto; width: 100%" />
        <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><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"
              style="margin-top: 40px; border-radius: 10px; border: 2px solid green;"></video>
          </p>
          <p class="text">蚂蚁是典型的(  )昆虫。(多选)</p>
          <p class="text">A.群居</p>
          <p class="text">B.社会性</p>
          <p class="text">C.独居</p>
          <p class="text">蚂蚁内部有(  )分工。(多选)</p>
          <p class="text">A.明确的</p>
          <p class="text">B.奇怪的</p>
          <p class="text">C.有序的</p>
          <p class="text">一个(  )群体少不了默契的配合。(多选)</p>
          <p class="text">A.团结的</p>
          <p class="text">B.优秀的</p>
          <p class="text">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 video"  @play="videoPlay"
            style="margin-top: 40px; border-radius: 10px; border: 2px solid green;"></video>
            <p class="center videoname">
          <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"
                @click="handleCollect('video')"
              />
            <el-tooltip class="item" effect="dark" :content="chapterData.isCollectVideo ? '点击取消' : '点击收藏'"
              placement="top-start">
              <img :src="chapterData.isCollectVideo ? collectCheck : collectImg" alt="" class="collect-btn"
                @click="handleCollect('video')" />
            </el-tooltip>
          </p>
        </div>
@@ -120,7 +103,8 @@
          <p class="text">
            <span class="hs1">◇</span>请将以下课文选段大声朗诵出来,加点的字请重读。
          </p>
          <h1><audio :src="auidoPathThree" controls class="audio" @play="audioPlay"></audio></h1>
          <h1><audio :src="auidoPathThree" controls controlslist="noplaybackrate nodownload" class="audio"
              @play="audioPlay"></audio></h1>
          <div class="bj3">
            <p class="center">
              <span class="hs">春<a id="w1"><sup>1</sup></a>(节选)</span>
@@ -169,7 +153,8 @@
          <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"
              @play="audioPlay"></audio></h1>
          <div class="bj3">
            <p class="center">
              <span class="hs">春<a id="w1"></a><sup>1</sup>(节选)</span>
@@ -191,12 +176,12 @@
            七年级上册》,2页,北京,人民教育出版社,2016。
          </p>
        </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 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">
@@ -212,20 +197,23 @@
            <img class="img-e" alt="" src="../../assets/images/1-4.gif" style="height: auto; width: 50%" />
          </h1>
          <p class="text">
            <span class="hs1">◇</span>生活中,我们总会遇到各种各样的诱惑。面对诱惑时,我们的内心常常会有两个不同的声音出现:一个声音要求我们严于律己,另一个声音要求我们随心所欲。请你分析一下,当蚂蚁队长面对掉落的奶酪渣的诱惑时,他内心的两个声音会说些什么呢?
            <span
              class="hs1">◇</span>生活中,我们总会遇到各种各样的诱惑。面对诱惑时,我们的内心常常会有两个不同的声音出现:一个声音要求我们严于律己,另一个声音要求我们随心所欲。请你分析一下,当蚂蚁队长面对掉落的奶酪渣的诱惑时,他内心的两个声音会说些什么呢?
          </p>
          <p class="text">正义队长:“
            <input v-model="questionData.warnUp.one" class="input-bottom-border input-w-60"  @change="setBookQuestion" />。”
            <input v-model="questionData.warnUp.one" class="input-bottom-border input-w-60"
              @change="setBookQuestion" />。”
          </p>
          <p class="text">黑暗队长:“ <input v-model="questionData.warnUp.two" class="input-bottom-border input-w-60" @change="setBookQuestion" />。”
          <p class="text">黑暗队长:“ <input v-model="questionData.warnUp.two" class="input-bottom-border input-w-60"
              @change="setBookQuestion" />。”
          </p>
        </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 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">
      <div v-if="showPageList.indexOf(10) > -1">
@@ -241,7 +229,8 @@
            <span class="hs1">◇</span>请将以下课文选段大声朗诵出来,加点的字请重读。
          </p>
          <h1>
            <audio :src="auidoPathTwo" controls class="audio" @play="audioPlay"></audio>
            <audio :src="auidoPathFive" controls controlslist="noplaybackrate nodownload" class="audio"
              @play="audioPlay"></audio>
          </h1>
          <div class="bj3">
@@ -277,12 +266,12 @@
            七年级上册》,2页,北京,人民教育出版社,2016。
          </p>
        </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 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">
      <div v-if="showPageList.indexOf(11) > -1">
@@ -299,12 +288,12 @@
            <span class="hs1">◇</span>蚂蚁队长把奶酪渣留给了年龄最小的蚂蚁,赢得了大家的认可。在生活中,你曾经像“蚂蚁队长”一样爱护弱小吗?或者像“小蚂蚁”一样得到过哥哥姐姐们的关爱吗?
          </p>
        </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 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">
      <div v-if="showPageList.indexOf(12) > -1">
@@ -316,29 +305,48 @@
          <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">
            <span><span class="hs1">◇</span>放大缩小</span>
            <span> <audio :src="auidoPathSex" controls controlslist="noplaybackrate nodownload" class="audio"
            @play="audioPlay"></audio> </span>
          </p>
          <p class="text">
            请你交替“放大”和“缩小”五官。在“放大”时,想象五官要飞到外太空;在“缩小”时,想象五官全部缩小到了鼻尖上。
          </p>
          <p class="text"><span class="hs1">◇</span>提升苹果肌</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>
          </p>
          <p class="text">
            想象你在一个陌生的地方,谁都不认识,突然遇见了好朋友,你很高兴,上前和他/她打招呼。做一做你此时的表情吧。
          </p>
          <p class="text"><span class="hs1">◇</span>微笑说“ang”</p>
          <p class="text ends">
            <span><span class="hs1">◇</span>微笑说“ang”</span>
            <span><audio :src="auidoPathEight" controls controlslist="noplaybackrate nodownload" class="audio"
              @play="audioPlay"></audio></span>
          </p>
          <p class="text">
            请你试一试在提升苹果肌的基础上,发出“ang”的音。声音要尽可能拉长、保持稳定,并向远送。
          </p>
          <p class="text"><span class="hs1">◇</span>向远山喊“阿毛”</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"
              @play="audioPlay"></audio></span>
          </p>
          <p class="text">
            想象自己站在一座高山上,好朋友“阿毛”站在对面的高山上,你要如何喊他呢?
          </p>
        </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>
    <div class="page-box" page="13">
      <div v-if="showPageList.indexOf(13) > -1">
@@ -354,53 +362,45 @@
          <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 video"  @play="videoPlay"
              controlslist="nodownload" class="w100 video" @play="videoPlay"
              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"
                @click="handleCollect('video')"
              />
            <el-tooltip class="item" effect="dark" :content="chapterData.isCollectVideo ? '点击取消' : '点击收藏'"
              placement="top-start">
              <img :src="chapterData.isCollectVideo ? collectCheck : collectImg" alt="" class="collect-btn"
                @click="handleCollect('video')" />
            </el-tooltip>
          </p>
        </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>
  </div>
</template>
<script>
import matching from "@/components/matching/matching.vue";
import choice from "@/components/choice/choice.vue"
import { getResourcePath } from "@/assets/methods/resources";
export default {
  name: "chapterOne",
  components: { matching },
  components: {
    matching,
    choice,
  },
  props: {
    showPageList: {
      type: Array,
    },
    primaryColor: {
      type: String,
      default: "red",
    }
  },
  //在这里对调用的方法进行挂载
  mounted() {
@@ -418,6 +418,14 @@
      auidoPathOne: "",
      auidoPathTwo: "",
      auidoPathThree: "",
      auidoPathFour: "",
      auidoPathFive: "",
      auidoPathSex: "",
      auidoPathSeven: "",
      auidoPathEight: "",
      auidoPathNine: "",
      accentColor:"",
      color:"#fff",
      chapterData: {
        isCollectImg: false,
        isCollectVideo: false,
@@ -470,30 +478,46 @@
        answer: [
          {
            id: "FB34",
            linkValue: "<span class='un1'>我</span>请你吃苹果吧!",
            value: "强调请客的人是“我”",
            linkValue: "强调请客的人是“我”",
            value: "<span class='un1'>我</span>请你吃苹果吧!",
          },
          {
            id: "64D6",
            linkValue: "我<span class='un1'>请</span>你吃苹果吧!",
            value: "强调是请客",
          },
            linkValue: "强调是请客",
            value: "我<span class='un1'>请</span>你吃苹果吧!",
          },
          {
            id: "2ED4",
            linkValue: "我请<span class='un1'>你</span>吃苹果吧!",
            value: "强调请的是“你”",
            linkValue: "强调请的是“你”",
            value: "我请<span class='un1'>你</span>吃苹果吧!",
          },
          {
            id: "44DE",
            linkValue: "我请你吃<span class='un1'>苹果</span>吧!",
            value: "强调吃的东西是“苹果”",
            linkValue: "强调吃的东西是“苹果”",
            value: "我请你吃<span class='un1'>苹果</span>吧!",
          },
        ],
        optionStyle: undefined,
        id: 489306,
        options: {
          linkValues: [
          linkValues: [{
            oldId: "64D6",
            txt: "强调是请客",
          },
          {
            oldId: "2ED4",
            txt: "强调请的是“你”",
          },
          {
            oldId: "44DE",
            txt: "强调吃的东西是“苹果”",
          },
          {
            oldId: "FB34",
            txt: "强调请客的人是“我”",
          },
          ],
          values: [{
            oldId: "FB34",
            txt: "<span class='un1'>我</span>请你吃苹果吧!",
@@ -511,24 +535,6 @@
            txt: "我请你吃<span class='un1'>苹果</span>吧!",
          },
          ],
          values: [
          {
            oldId: "64D6",
            txt: "强调是请客",
          },
          {
            oldId: "2ED4",
            txt: "强调请的是“你”",
          },
          {
            oldId: "44DE",
            txt: "强调吃的东西是“苹果”",
          },
          {
            oldId: "FB34",
            txt: "强调请客的人是“我”",
          },
          ],
        },
        questionType: "matching",
        stem: {
@@ -540,6 +546,134 @@
        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: "",
@@ -575,15 +709,33 @@
      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"
      );
    },
    setBookQuestion() {
      console.log("保存");
@@ -596,7 +748,7 @@
      this.$emit('closeAudio', e.srcElement.currentSrc)
    },
    videoPlay(e) {
      this.$emit('closeVideo',e.srcElement.currentSrc)
      this.$emit('closeVideo', e.srcElement.currentSrc)
    },
    handleChapterData() {
      localStorage.setItem(
@@ -620,7 +772,14 @@
.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 {
  font-weight: 400 !important;
}