You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.1 KiB

<template>
<view>
<topnav title="视频详情" @tohome="tohome"></topnav>
<view class="content">
<video :src="host+item.video" :poster="host+item.poster" style="width:720rpx;height:330rpx"
object-fit="fill"></video>
<view class="videotitle">{{item.title}}</view>
</view>
</view>
</template>
<script>
var util = require("../../../../utils/util.js");
export default {
data() {
return {
item: {},
host: ""
}
},
onLoad: function(option) {
this.loadInfo(option.id);
this.host = util.HOST;
},
methods: {
tohome:function(){
uni.navigateTo({
url:"../../../../pages/index/index"
})
},
loadInfo: function(id) {
var that = this;
util.request({
bindThis: that,
api: 'manager/get-video/' + id,
customLoading: false,
utilSuccess: function(r) {
that.item = r;
},
utilFail: function(res) {}
});
},
}
}
</script>
<style>
page {
padding-top: 160rpx;
}
.content{
padding: 20rpx;
}
.videotitle{
margin-top: 20rpx;
}
</style>