闫增涛
2024-05-15 2e664020f32a0eda87139bc1363fa34b7b5697ba
src/books/childHealth/view/content/components/chapter002.vue
@@ -203,7 +203,7 @@
          </div>
          <div class="right" style="width: 60%">
            <video
              :src="config.resourceCtx + '/video/chapterTwo/专题二:儿童各阶段的特点和保健要点.mp4'"
              :src="pathOne"
              poster="../../../assets/images/chapterTwo/people-video-img.png"
              webkit-playsinline="true"
              x-webkit-airplay="true"
@@ -275,7 +275,7 @@
          云测试
        </h6>
        <p class="blockh6-c">
          <examinations :cardList="questionData[2][46]" />
          <examinations :cardList="questionData[46]" />
          <!-- <span class="img">专题二 学习主题一</span> -->
        </p>
        <h2 class="module_block" id="b011">
@@ -438,7 +438,7 @@
          </div>
          <div class="right" style="width: 60%">
            <video
              :src=" config.resourceCtx + '/video/chapterTwo/专题二:生长发育的“铁”规律.mp4'"
              :src="pathTwo"
              poster="../../../assets/images/chapterTwo/people-video-img.png"
              webkit-playsinline="true"
              x-webkit-airplay="true"
@@ -573,7 +573,7 @@
        <p class="blockh6-c">
          <!-- <img class="img-g" alt="" src="image/0062-1.jpg" /><br /> -->
          <!-- <span class="img">专题二 学习主题二</span> -->
          <examinations :cardList="questionData[2][49]" />
          <examinations :cardList="questionData[49]" />
        </p>
        <p class="custom_tag"><b>•资料链接•</b></p>
        <div class="fieldset">
@@ -742,7 +742,7 @@
          </div>
          <div v-if="videoState">
            <video
              :src="config.resourceCtx + ' /video/chapterTwo/专题二:影响儿童生长发育的因素.mp4'"
              :src="pathThree"
              poster="../../../assets/images/chapterTwo/people-video-img.png"
              webkit-playsinline="true"
              x-webkit-airplay="true"
@@ -846,7 +846,7 @@
        <p class="blockh6-c center">
          <!-- <img class="img-g" alt="" src="image/0065-1.jpg" /><br /> -->
          <!-- <span class="img">专题二 学习主题三</span> -->
          <examinations :cardList="questionData[2][52]" />
          <examinations :cardList="questionData[52]" />
        </p>
      </div>
    </div>
@@ -983,9 +983,10 @@
        <p class="blockh6-c">
          学习完本专题,你的学习效果如何呢?咱们一起来扫码测一测吧!<br />
          <span class="img">过关检测(资格考试模拟题)1</span><br />
          <examinations :cardList="questionData[2][541]" />
          <span class="img">过关检测(资格考试模拟题)2</span>
          <examinations :cardList="questionData[2][542]" />
          <examinations :cardList="questionData[541]" />
          <span class="span-border"></span>
          <span class="img mt-20 dl-bl">过关检测(资格考试模拟题)2</span>
          <examinations :cardList="questionData[542]" />
        </p>
        <h6 class="Conclusion-title4">•学习反思•</h6>
        <p class="blockh6 m0-t0 fl fl-di fl-cn">
@@ -1003,6 +1004,9 @@
import evenHeaderVue from '../../components/pageHeader/evenHeader.vue';
import oddHeaderVue from '../../components/pageHeader/oddHeader.vue';
import examinations from "@/components/examinations/index.vue";
import getQuestionData from '@/assets/methods/examination'
import testData from '../../../assets/examinationList'
import getResourcePath from '@/assets/methods/resources'
import {mapState} from 'vuex'
export default {
  name: "chapterTwo",
@@ -1019,12 +1023,19 @@
      learnTableOne: true,
      learnTableTwo: true,
      learnTableThree: true,
      questionData:{}
      questionData:{},
      pathOne:'',
      pathTwo:'',
      pathThree:'',
    };
  },
  mounted() {
    this.$data.questionData = this.$store.state.questionData
    console.log('数据',testData[2]);
    this.$data.questionData = getQuestionData(testData[2])
    this.$data.pathOne = getResourcePath('e2b2b610e8b77c82bad7cf94c7986646')
    this.$data.pathTwo = getResourcePath('b11b51863da2a4e7e21c73358fa96c1e')
    this.$data.pathThree = getResourcePath('67cf97bd8295dc3aeb46982c574df8d0')
  },
  methods: {
    changeResources(type) {