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.

36 lines
632 B

4 months ago
<template>
<view class="wanlpage-video" :style="[pageData.style]">
<video
:poster="$wanlshop.oss(pageData.data[0].image, 414, 0, 1, 'transparent', 'png')"
:src="$wanlshop.oss(pageData.data[0].video, 0, 0, 0,'video')"
></video>
</view>
</template>
<script>
export default {
name: "WanlPageVideo",
props: {
pageData: {
type: Object,
default: function() {
return {
name: '视频组件',
type: 'video',
params: [],
style: [],
data: []
}
}
}
}
}
</script>
<style>
.wanlpage-video{
overflow: hidden;
}
.wanlpage-video video{
width: 100%;
}
</style>