导游中台-游客端
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.

54 lines
886 B

11 months ago
<template>
<view class="bg">
10 months ago
<video :src="showImg(src)" controls class="myVideo" :poster="poster"></video>
11 months ago
<!-- <view class="title">
{{title}}
</view> -->
</view>
</template>
<script>
export default {
data() {
return {
src: '',
poster: '',
title: ''
}
},
onLoad(option) {
const item = JSON.parse(decodeURIComponent(option.item));
10 months ago
this.src = this.showImg(item)
11 months ago
// this.poster = item.head_img
// this.title = item.title
}
}
</script>
<style scoped lang="scss">
.bg {
width: 100%;
height: 100vh;
position: relative;
}
.myVideo {
width: 100%;
height: 100vh;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.title {
width: 699rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 29rpx;
color: #CCCCCC;
position: fixed;
left: 25.5rpx;
bottom: 74rpx;
}
</style>