|
@@ -8,9 +8,9 @@
|
|
|
<h3 v-html="video.title" />
|
|
<h3 v-html="video.title" />
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row style="color: #999;font-size: 16px;padding-top: 0px;">
|
|
<el-row style="color: #999;font-size: 16px;padding-top: 0px;">
|
|
|
- <span><i class="el-icon-video-play">{{ video.viewCount }}</i></span>
|
|
|
|
|
|
|
+ <span><i class="el-icon-video-play">{{ video.view }}</i></span>
|
|
|
<span v-html="' '" />
|
|
<span v-html="' '" />
|
|
|
- <span><i class="el-icon-s-comment">{{ video.commentCount }}</i></span>
|
|
|
|
|
|
|
+ <span><i class="el-icon-s-comment">{{ video.comment }}</i></span>
|
|
|
<span v-html="' '" />
|
|
<span v-html="' '" />
|
|
|
<span><i class="el-icon-watch">{{ video.pubDate }}</i></span>
|
|
<span><i class="el-icon-watch">{{ video.pubDate }}</i></span>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -31,7 +31,7 @@
|
|
|
:disabled="isCollected"
|
|
:disabled="isCollected"
|
|
|
@click="collection(video.videoId)"
|
|
@click="collection(video.videoId)"
|
|
|
>
|
|
>
|
|
|
- <span>收藏 {{ video.collectCount }}</span>
|
|
|
|
|
|
|
+ <span>收藏 {{ video.favorite }}</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
type="danger"
|
|
type="danger"
|
|
@@ -40,7 +40,7 @@
|
|
|
:disabled="isCollected"
|
|
:disabled="isCollected"
|
|
|
@click="collection(video.videoId)"
|
|
@click="collection(video.videoId)"
|
|
|
>
|
|
>
|
|
|
- <span>喜欢 {{ video.collectCount }}</span>
|
|
|
|
|
|
|
+ <span>喜欢 {{ video.thumbUp }}</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
type="danger"
|
|
type="danger"
|
|
@@ -49,7 +49,7 @@
|
|
|
:disabled="isCollected"
|
|
:disabled="isCollected"
|
|
|
@click="collection(video.videoId)"
|
|
@click="collection(video.videoId)"
|
|
|
>
|
|
>
|
|
|
- <span>分享 {{ video.collectCount }}</span>
|
|
|
|
|
|
|
+ <span>分享 {{ video.share }}</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
type="danger"
|
|
type="danger"
|
|
@@ -59,6 +59,14 @@
|
|
|
>
|
|
>
|
|
|
<span>下载</span>
|
|
<span>下载</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ icon="el-icon-download"
|
|
|
|
|
+ @click="cacheBiliVideo(video.videoId)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <span>缓存</span>
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
type="danger"
|
|
type="danger"
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -196,7 +204,7 @@ import Comment from 'components/comment/Comment'
|
|
|
import VideoCard from 'components/card/VideoCard'
|
|
import VideoCard from 'components/card/VideoCard'
|
|
|
import UserAvatarCard from '@/components/card/UserAvatarCard'
|
|
import UserAvatarCard from '@/components/card/UserAvatarCard'
|
|
|
|
|
|
|
|
-import {similarVideo, videoInfo, videoErrorReport, downloadVideo} from '@/api/video'
|
|
|
|
|
|
|
+import {similarVideo, videoInfo, videoErrorReport, downloadVideo, cacheBiliVideo} from '@/api/video'
|
|
|
import { collectVideo } from "@/api/collect";
|
|
import { collectVideo } from "@/api/collect";
|
|
|
import {getUserInfo} from "@/api/user";
|
|
import {getUserInfo} from "@/api/user";
|
|
|
|
|
|
|
@@ -360,6 +368,18 @@ export default {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ cacheBiliVideo(bvId) {
|
|
|
|
|
+ cacheBiliVideo(bvId).then(res => {
|
|
|
|
|
+ if (res.code === 0) {
|
|
|
|
|
+ this.$notify({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ message: 'bili 视频正在缓存中',
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ duration: 3000
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
displayErrorReportDialog() {
|
|
displayErrorReportDialog() {
|
|
|
this.errorReportForm.videoId = this.video.videoId
|
|
this.errorReportForm.videoId = this.video.videoId
|
|
|
this.showErrorReportDialog = true
|
|
this.showErrorReportDialog = true
|