|
@@ -1,8 +1,24 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
- <v-container fill-height fluid style="padding-bottom: 0px;">
|
|
|
|
|
|
|
+ <v-container>
|
|
|
|
|
+ <v-col>
|
|
|
|
|
+ <v-row>
|
|
|
|
|
+ <v-col>
|
|
|
|
|
+ <h3 v-text="videoData.title" />
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ </v-row>
|
|
|
|
|
+ <v-row>
|
|
|
|
|
+ <v-col style="color: #999;font-size: 12px;padding-top: 0px;">
|
|
|
|
|
+ <span v-html="' '" />
|
|
|
|
|
+ <span v-text="videoData.viewCount" /> 次观看 <span v-html="' '" />
|
|
|
|
|
+ <span v-text="TimeUtil.renderTime(videoData.pubDate)" />
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ </v-row>
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ </v-container>
|
|
|
|
|
+ <v-container>
|
|
|
<v-row>
|
|
<v-row>
|
|
|
- <v-col style="padding-bottom: 0px;">
|
|
|
|
|
|
|
+ <v-col>
|
|
|
<VideoPlayer />
|
|
<VideoPlayer />
|
|
|
</v-col>
|
|
</v-col>
|
|
|
</v-row>
|
|
</v-row>
|
|
@@ -11,13 +27,137 @@
|
|
|
<v-row v-resize="onResize" no-gutters>
|
|
<v-row v-resize="onResize" no-gutters>
|
|
|
<v-col :cols="colsWidth">
|
|
<v-col :cols="colsWidth">
|
|
|
<v-row>
|
|
<v-row>
|
|
|
- <v-col>
|
|
|
|
|
- <h3 v-text="videoData.title"></h3>
|
|
|
|
|
|
|
+ <v-col cols="4">
|
|
|
|
|
+ <v-btn icon @click="collectVideo">
|
|
|
|
|
+ <v-icon>mdi-thumb-up</v-icon>
|
|
|
|
|
+ <span v-text="isCollected"></span>
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+ <v-dialog
|
|
|
|
|
+ v-model="collectionDialog"
|
|
|
|
|
+ persistent
|
|
|
|
|
+ max-width="600px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <v-card>
|
|
|
|
|
+ <v-card-title>
|
|
|
|
|
+ <span class="text-h5">问题或建议</span>
|
|
|
|
|
+ </v-card-title>
|
|
|
|
|
+ <v-card-text>
|
|
|
|
|
+ <v-container>
|
|
|
|
|
+ <v-row>
|
|
|
|
|
+ <v-col
|
|
|
|
|
+ cols="12"
|
|
|
|
|
+ sm="6"
|
|
|
|
|
+ >
|
|
|
|
|
+ <v-select
|
|
|
|
|
+ :items="['视频封面', '视频播放', '视频内容']"
|
|
|
|
|
+ label="问题分类"
|
|
|
|
|
+ required
|
|
|
|
|
+ />
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ <v-col
|
|
|
|
|
+ cols="24"
|
|
|
|
|
+ sm="6"
|
|
|
|
|
+ md="4"
|
|
|
|
|
+ >
|
|
|
|
|
+ <v-text-field
|
|
|
|
|
+ label="问题或建议"
|
|
|
|
|
+ required
|
|
|
|
|
+ />
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ </v-row>
|
|
|
|
|
+ </v-container>
|
|
|
|
|
+ </v-card-text>
|
|
|
|
|
+ <v-card-actions>
|
|
|
|
|
+ <v-spacer />
|
|
|
|
|
+ <v-btn
|
|
|
|
|
+ color="blue darken-1"
|
|
|
|
|
+ text
|
|
|
|
|
+ @click="collectionDialog = false"
|
|
|
|
|
+ >
|
|
|
|
|
+ 关闭
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+ <v-btn
|
|
|
|
|
+ color="blue darken-1"
|
|
|
|
|
+ text
|
|
|
|
|
+ @click="collectVideo"
|
|
|
|
|
+ >
|
|
|
|
|
+ 提交
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+ </v-card-actions>
|
|
|
|
|
+ </v-card>
|
|
|
|
|
+ </v-dialog>
|
|
|
|
|
+
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+
|
|
|
|
|
+ <v-col cols="4">
|
|
|
|
|
+ <v-btn icon @click="showErrDialog">
|
|
|
|
|
+ <v-icon>mdi-thumb-up</v-icon>
|
|
|
|
|
+ <span>反馈</span>
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+ <v-dialog
|
|
|
|
|
+ v-model="showDialog"
|
|
|
|
|
+ persistent
|
|
|
|
|
+ max-width="600px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <v-card>
|
|
|
|
|
+ <v-card-title>
|
|
|
|
|
+ <span class="text-h5">问题或建议</span>
|
|
|
|
|
+ </v-card-title>
|
|
|
|
|
+ <v-card-text>
|
|
|
|
|
+ <v-container>
|
|
|
|
|
+ <v-row>
|
|
|
|
|
+ <v-col
|
|
|
|
|
+ cols="12"
|
|
|
|
|
+ sm="6"
|
|
|
|
|
+ >
|
|
|
|
|
+ <v-select
|
|
|
|
|
+ :items="['视频封面', '视频播放', '视频内容']"
|
|
|
|
|
+ label="问题分类"
|
|
|
|
|
+ required
|
|
|
|
|
+ />
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ <v-col
|
|
|
|
|
+ cols="24"
|
|
|
|
|
+ sm="6"
|
|
|
|
|
+ md="4"
|
|
|
|
|
+ >
|
|
|
|
|
+ <v-text-field
|
|
|
|
|
+ label="问题或建议"
|
|
|
|
|
+ required
|
|
|
|
|
+ />
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ </v-row>
|
|
|
|
|
+ </v-container>
|
|
|
|
|
+ </v-card-text>
|
|
|
|
|
+ <v-card-actions>
|
|
|
|
|
+ <v-spacer />
|
|
|
|
|
+ <v-btn
|
|
|
|
|
+ color="blue darken-1"
|
|
|
|
|
+ text
|
|
|
|
|
+ @click="showDialog = false"
|
|
|
|
|
+ >
|
|
|
|
|
+ 关闭
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+ <v-btn
|
|
|
|
|
+ color="blue darken-1"
|
|
|
|
|
+ text
|
|
|
|
|
+ @click="submitVideoErr"
|
|
|
|
|
+ >
|
|
|
|
|
+ 提交
|
|
|
|
|
+ </v-btn>
|
|
|
|
|
+ </v-card-actions>
|
|
|
|
|
+ </v-card>
|
|
|
|
|
+ </v-dialog>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
- <v-row>
|
|
|
|
|
|
|
+ <!--<v-row>
|
|
|
|
|
+ <v-col>
|
|
|
|
|
+ <h3 v-text="videoData.title" />
|
|
|
|
|
+ </v-col>
|
|
|
|
|
+ </v-row>-->
|
|
|
|
|
+ <!--<v-row>
|
|
|
<v-col style="color: #999;font-size: 12px;padding-top: 0px;">
|
|
<v-col style="color: #999;font-size: 12px;padding-top: 0px;">
|
|
|
- <!--
|
|
|
|
|
|
|
+ <!–
|
|
|
TODO 视频分类待完成
|
|
TODO 视频分类待完成
|
|
|
<router-link v-if="videoData.childrenCategory.fatherId !== 0" :to="`/v/${videoData.fatherCategory.id}`" class="category-link">
|
|
<router-link v-if="videoData.childrenCategory.fatherId !== 0" :to="`/v/${videoData.fatherCategory.id}`" class="category-link">
|
|
|
<span v-text="videoData.fatherCategory.name" />
|
|
<span v-text="videoData.fatherCategory.name" />
|
|
@@ -25,12 +165,12 @@
|
|
|
/
|
|
/
|
|
|
<router-link :to="`/v/${videoData.childrenCategory.id}`" class="category-link">
|
|
<router-link :to="`/v/${videoData.childrenCategory.id}`" class="category-link">
|
|
|
<span v-text="videoData.childrenCategory.name" />
|
|
<span v-text="videoData.childrenCategory.name" />
|
|
|
- </router-link>-->
|
|
|
|
|
- <span v-html="' '"></span>
|
|
|
|
|
- <span v-text="videoData.viewCount"></span> 次观看 <span v-html="' '" />
|
|
|
|
|
- <span v-text="TimeUtil.renderTime(videoData.pubDate)"></span>
|
|
|
|
|
|
|
+ </router-link>–>
|
|
|
|
|
+ <span v-html="' '" />
|
|
|
|
|
+ <span v-text="videoData.viewCount" /> 次观看 <span v-html="' '" />
|
|
|
|
|
+ <span v-text="TimeUtil.renderTime(videoData.pubDate)" />
|
|
|
</v-col>
|
|
</v-col>
|
|
|
- </v-row>
|
|
|
|
|
|
|
+ </v-row>-->
|
|
|
<v-divider />
|
|
<v-divider />
|
|
|
<v-row>
|
|
<v-row>
|
|
|
<v-col>
|
|
<v-col>
|
|
@@ -57,40 +197,17 @@
|
|
|
</v-col>
|
|
</v-col>
|
|
|
<v-col>
|
|
<v-col>
|
|
|
<router-link :to="`/u/${videoData.userId}`">
|
|
<router-link :to="`/u/${videoData.userId}`">
|
|
|
- <span v-text="videoData.username"></span>
|
|
|
|
|
|
|
+ <span v-text="videoData.username" />
|
|
|
</router-link>
|
|
</router-link>
|
|
|
- <span v-html="' '"></span>
|
|
|
|
|
|
|
+ <span v-html="' '" />
|
|
|
<v-btn small outlined color="primary">
|
|
<v-btn small outlined color="primary">
|
|
|
<span>关注</span>
|
|
<span>关注</span>
|
|
|
- <span v-html="' '"></span>
|
|
|
|
|
- <span v-text="videoData.followerCount"></span>
|
|
|
|
|
|
|
+ <span v-html="' '" />
|
|
|
|
|
+ <span v-text="videoData.followerCount" />
|
|
|
</v-btn>
|
|
</v-btn>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
</v-row>
|
|
</v-row>
|
|
|
</v-col>
|
|
</v-col>
|
|
|
- <v-col cols="4">
|
|
|
|
|
- <v-btn icon @click="showErrDialog">
|
|
|
|
|
- <v-icon>mdi-thumb-up</v-icon>
|
|
|
|
|
- <span>问题或建议</span>
|
|
|
|
|
- </v-btn>
|
|
|
|
|
-
|
|
|
|
|
- <v-dialog v-model="showDialog" max-width="500" persistent>
|
|
|
|
|
- <v-card>
|
|
|
|
|
- <v-toolbar dense dark color="primary">
|
|
|
|
|
- <v-toolbar-title>视频问题或建议</v-toolbar-title>
|
|
|
|
|
- </v-toolbar>
|
|
|
|
|
-
|
|
|
|
|
- <form @submit.prevent="submitVideoErr">
|
|
|
|
|
- <v-textarea
|
|
|
|
|
- placeholder="问题或建议"
|
|
|
|
|
- rows="2"
|
|
|
|
|
- :no-resize="true"
|
|
|
|
|
- />
|
|
|
|
|
- <button type="submit"><span>提交</span></button>
|
|
|
|
|
- </form>
|
|
|
|
|
- </v-card>
|
|
|
|
|
- </v-dialog>
|
|
|
|
|
- </v-col>
|
|
|
|
|
</v-row>
|
|
</v-row>
|
|
|
<v-row>
|
|
<v-row>
|
|
|
<v-col :cols="colsWidth">
|
|
<v-col :cols="colsWidth">
|
|
@@ -137,7 +254,9 @@ export default {
|
|
|
},
|
|
},
|
|
|
colsWidth: 8,
|
|
colsWidth: 8,
|
|
|
showDialog: false,
|
|
showDialog: false,
|
|
|
- formData: {}
|
|
|
|
|
|
|
+ formData: {},
|
|
|
|
|
+ collectionDialog: false,
|
|
|
|
|
+ isCollected: '收藏'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -178,7 +297,7 @@ export default {
|
|
|
similarVideo(videoId)
|
|
similarVideo(videoId)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
- this.videoList = res.data.list
|
|
|
|
|
|
|
+ this.videoList = res.data
|
|
|
} else {
|
|
} else {
|
|
|
console.error(res.msg)
|
|
console.error(res.msg)
|
|
|
}
|
|
}
|
|
@@ -190,9 +309,13 @@ export default {
|
|
|
showErrDialog() {
|
|
showErrDialog() {
|
|
|
this.showDialog = true
|
|
this.showDialog = true
|
|
|
},
|
|
},
|
|
|
|
|
+ collectVideo() {
|
|
|
|
|
+ this.collectionDialog = false
|
|
|
|
|
+ console.log('收藏 ' + this.videoId)
|
|
|
|
|
+ },
|
|
|
submitVideoErr() {
|
|
submitVideoErr() {
|
|
|
- console.log('提交视频错误')
|
|
|
|
|
this.showDialog = false
|
|
this.showDialog = false
|
|
|
|
|
+ console.log('提交视频错误')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|