雄风
雄风
  • 发布:2021-12-03 16:42
  • 更新:2021-12-03 16:42
  • 阅读:397

video视频播放在APP有一层灰,在小程序则正常显示

分类:uni-app


这是小程序


这是APP

<template>  
    <view>  
        <video :style="{'width':`${widht}px`,'height':`${height}px`}"  
            src="https://dingxin-prod-1300739938.cos.ap-guangzhou.myqcloud.com/static/video/2021-12/goods/202112031638515633054.mp4" />  
    </view>  
</template>  

<script>  
    export default {  
        data() {  
            return {  
                widht: 0,  
                height: 0,  
            }  
        },  
        onLoad() {  
            uni.getSystemInfo({  
                success: data => {  
                    this.widht = data.windowWidth  
                    this.height = data.windowHeight  
                },  
            })  
        },  
    }  
</script>

这是为什么呢?

2021-12-03 16:42 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复