| | |
| | | </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> |
| | |
| | | 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> |
| | |
| | | |
| | | <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"; |
| | |
| | | type: Object, |
| | | }, |
| | | }, |
| | | components: {examinations,paint}, |
| | | components: {examinations,paint,graffiti}, |
| | | data() { |
| | | return { |
| | | ...showObj, |
| | |
| | | }, |
| | | //资源收藏事件 |
| | | 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) |