闫增涛
2024-10-25 d6cc07d3e9c19a4f97f770581bc85ee3550a22ba
src/books/mathBook/view/components/chapter003.vue
@@ -1540,23 +1540,17 @@
          </p>
          <p class="img fl fl-cn ju-cn">
            <span>图3-15</span>
            <el-tooltip class="item" effect="dark" :content="chapterData.isCollectImg ? '点击取消' : '点击收藏'"
              placement="top-start">
              <img :src="collectResourceList.findIndex(item => item.id == '722FE833') > -1 ? collectCheck : collectImg"
                alt="" class="collect-btn" @click="handleCollect('img')" />
            </el-tooltip>
          </p>
          <video :src="videoPath" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true"
            x5-video-orientation="h5" x5-video-player-fullscreen="true" x5-playsinline="" controls
            controlslist="nodownload" class="video-border w100"></video>
          <p class="img fl fl-cn ju-cn">
            <span>视频:判数函数奇偶性的方法和步骤 </span>
            <el-tooltip class="item" effect="dark" :content="chapterData.isCollectVideo ? '点击取消' : '点击收藏'"
              placement="top-start">
              <img
                :src="collectResourceList.findIndex(item => item.id == 'a28cd862d61b5df2201406b76e9f01b0') > -1 ? collectCheck : collectImg"
                alt="" class="collect-btn" @click="handleCollect('video')" />
            </el-tooltip>
          </p>
          <p class="fl">
            <span>
@@ -1799,6 +1793,12 @@
                  this.config.activeBook.resourceUrl + '/images/0103-2.jpg'
                "
              />
              <!-- <graffiti
                :page="99"
                :bcImg="this.config.activeBook.resourceUrl + '/images/0103-2.jpg'"
                :imgWidth="400"
                :imgHeight="380"
              /> -->
            </div>
          </div>
        </div>
@@ -2899,6 +2899,7 @@
<script>
import paint from '@/components/paint/index.vue'
import graffiti from '@/components/graffiti/index.vue'
import examinations from '@/components/examinations/index.vue'
import { getResourcePath } from "@/assets/methods/resources";
import { getCollectResource, setCollectResource } from "@/assets/methods/resources";
@@ -2921,7 +2922,7 @@
      type: Object,
    },
  },
  components: {examinations,paint},
  components: {examinations,paint,graffiti},
  data() {
    return {
      ...showObj,
@@ -3017,7 +3018,6 @@
    },
    //资源收藏事件
    handleCollectResource(id, md5, resourcePath, resourceType, source, resourceName) {
      console.log(this.collectResourceList);
      let list = this.collectResourceList
      if (list.findIndex(item => item.id == id) > -1) {
        list = list.filter(item => item.id != id)