<template>
|
<div class="data-detail-video">
|
<div class="videos">
|
<video poster="" :src="video.patch" controls="controls">
|
您的浏览器不支持 video 标签。
|
</video>
|
</div>
|
<div class="content">
|
<mt-navbar v-model="navIndex">
|
<mt-tab-item id="1">关键词</mt-tab-item>
|
<mt-tab-item id="2">简介</mt-tab-item>
|
</mt-navbar>
|
<mt-tab-container v-model="navIndex">
|
<mt-tab-container-item id="1">
|
{{ video.keyWord == ""?"暂无内容": video.keyWord}}
|
</mt-tab-container-item>
|
<mt-tab-container-item id="2">
|
{{ video.introduction == ""?"暂无内容": video.introduction}}
|
</mt-tab-container-item>
|
</mt-tab-container>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import {GetVideoDetail as Api_GetVideoDetail} from "@/api/apilist";
|
|
export default {
|
name: "detailVideo",
|
data() {
|
return {
|
navIndex: "1",
|
video: {
|
id: "",
|
name: "",
|
path: "",
|
keyWord: "",
|
introduction: "",
|
},
|
}
|
},
|
methods: {
|
|
},
|
created() {
|
let id = this.$route.query.id;
|
Api_GetVideoDetail(id).then(res => {
|
this.video = res;
|
}, rej => {
|
alert(rej);
|
}).catch(err => {
|
console.log(err);
|
alert('错误的请求!');
|
});
|
}
|
}
|
</script>
|
|
<style scoped>
|
.data-detail-video {
|
width: 100%;
|
}
|
|
.videos {
|
width: 100%;
|
height: 31.5vh;
|
}
|
|
.videos video {
|
width: 100%;
|
height: 100%;
|
background: black;
|
}
|
|
.content {
|
width: 100%;
|
height: 66vh;
|
box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
|
opacity: 1;
|
border-radius: 10px;
|
|
padding-top: 1vh;
|
}
|
|
.content > div{
|
width: 90%;
|
margin-left: 5%;
|
}
|
|
.mint-navbar{
|
margin-bottom: 4vh;
|
}
|
|
.mint-navbar .mint-tab-item /deep/ .mint-tab-item-label {
|
font-size: 2rem;
|
font-family: Source Han Sans CN;
|
font-weight: 500;
|
line-height: 3rem;
|
color: #767676;
|
opacity: 1;
|
}
|
|
.mint-navbar .is-selected {
|
border-bottom: 0.3rem solid #BC0000;
|
}
|
|
.mint-navbar .is-selected /deep/ .mint-tab-item-label {
|
color: #BC0000;
|
font-weight: bold;
|
}
|
|
.mint-tab-container {
|
text-align: left;
|
font-size: 1.87rem;
|
font-family: Source Han Serif CN;
|
font-weight: 400;
|
line-height: 3rem;
|
color: #585858;
|
opacity: 1;
|
}
|
</style>
|