| | |
| | | <el-tooltip class="item" effect="dark" :content="localIsCollectVideo ? '点击取消' : '点击收藏'" |
| | | placement="top-start"> |
| | | <svgIcon class="collect-btn " :icon-file-name="collectResourceList.findIndex( |
| | | (item) => item.id == videoPath |
| | | ) > -1 |
| | | ? collectCheck |
| | | : collectImg |
| | | " @click="handleCollect()"></svgIcon> |
| | | (item) => item.id == videoPath |
| | | ) > -1 |
| | | ? collectCheck |
| | | : collectImg |
| | | " @click="handleCollect()"></svgIcon> |
| | | </el-tooltip> |
| | | </p> |
| | | </div> |
| | |
| | | videoPathSrc: "", |
| | | collectResourceList: [], |
| | | localIsCollectVideo: false, |
| | | isDisplay: true, |
| | | videoName: this.videoInfo.resourceName |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | methods: { |
| | | async getVidoePath() { |
| | | console.log(this.videoInfo, "this.videoInfo.md5"); |
| | | this.videoPathSrc = await getResourcePath( |
| | | this.videoInfo.md5 |
| | | ); |
| | | }, |
| | | |
| | | handleCollect() { |
| | | debugger |
| | | this.handleCollectResource( |
| | | this.videoPath, |
| | | this.videoPath, |