闫增涛
2024-05-23 e5a42538eda99a4860bddc417e107ef230df8837
src/books/lifeCare/view/chapter002.vue
@@ -1,7 +1,7 @@
<template>
  <div class="page-content-box">
    <div class="page-box">
      <div class="bodystyle">
      <div class="bodystyle topImg">
        <h2 id="b002"><img class="img-0" alt="" src="../image/dy2.jpg" /></h2>
        <div class="bk">
          <div class="bj1">
@@ -1187,24 +1187,6 @@
        <h4 id="d015">
          ▶▶ 应用与实践<span class="fontsz1">>>>>>>>></span>
        </h4>
        <div class="tips-bk">
          <div class="bj-tip">
            云测试:单元二应用与实践<img
              src="../icons/sub.png"
              @click="activityThree"
              alt=""
            />
          </div>
          <div
            v-if="chapter002.idOpenThree && chapter002.qustionData[23]"
            class="tips-file"
          >
            <examinations
              :primaryColor="'#f49a4c'"
              :cardList="chapter002.qustionData[23]"
            />
          </div>
        </div>
        <p><br /></p>
        <p><b>一、单选题</b></p>
        <p>
@@ -1282,15 +1264,30 @@
            @blur="onBlurChange('desc')"
          ></textarea>
        </div>
        <div class="tips-bk">
          <div class="bj-tip">
            云测试:单元二应用与实践<img
              src="../icons/sub.png"
              @click="activityThree"
              alt=""
            />
          </div>
          <div
            v-if="chapter002.idOpenThree && chapter002.qustionData[2]"
            class="tips-file"
          >
            <examinations :cardList="chapter002.qustionData[2]" />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import getResourcePath from "@/assets/methods/resources.js";
import getQuestionData from "@/assets/methods/examination.js";
// import getResourcePath from "@/assets/methods/resources.js";
// import getQuestionData from "@/assets/methods/examination.js";
import testData from "../js/examinationList.js";
import examinations from "@/components/examinations/index.vue";
// import examinations from "@/components/examinations/index.vue";
export default {
  name: "chapter002",
@@ -1576,24 +1573,20 @@
    };
  },
  components: {
    examinations,
    // examinations,
  },
  async created() {
  created() {
    const localData = JSON.parse(localStorage.getItem("chapter002"));
    if (localData) {
      this.chapter002 = { ...Object.assign(this.chapter002, localData) };
    }
    this.chapter002.videOneUrl = getResourcePath(
      "6e471afdbeb95a8891f1551cbb0cd4fd"
    );
    this.chapter002.videOneUrl116 = getResourcePath(
      "b727b78f8036a38cbd054816a81da7f8"
    );
    // this.chapter002.videOneUrl = getResourcePath("6e471afdbeb95a8891f1551cbb0cd4fd");
    // this.chapter002.videOneUrl116 = getResourcePath('b727b78f8036a38cbd054816a81da7f8')
    this.chapter002.videOneUrl116 =
      "https:/jsek.bnuic.com/file/api/ApiDownload?md5=b727b78f8036a38cbd054816a81da7f8";
    this.chapter002.videOneUrl =
      "https:/jsek.bnuic.com/file/api/ApiDownload?md5=6e471afdbeb95a8891f1551cbb0cd4fd";
    this.chapter002.qustionData = await getQuestionData("2", testData[2]);
    // this.qustionData = await getQuestionData("2",testData[2]);
  },
  methods: {
    activityOne() {