liyaozhi
2025-10-28 9ad5fcb425da23ecc8f88a11604015d13c536bb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<template>
    <view class="diy-video" :style="{padding:itemData.style.paddingTop + 'px 20rpx'}">
        <video :style="{height:(itemData.style.height*2) + 'rpx'}" :src="itemData.params.videoUrl" :poster="itemData.params.poster"
         :autoplay="itemData.params.autoplay == '1'" controls objectFit="contain">
        </video>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
 
            }
        },
        props: ['itemData'],
        methods: {
 
        }
    }
</script>
 
<style>
    .diy-video uni-video,
    .diy-video video {
        width: 100%;
        border-radius: 12rpx;
    }
</style>