普兆健康管家前端代码仓库
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.
 
 
 

48 lines
866 B

<template>
<uv-popup
ref="popup"
:overlayOpacity="0.8"
:customStyle="{
backgroundColor: 'transparent',
}"
>
<view>
<video class="video"
id="video"
:src="videoUrl"
autoplay
play-btn-position="center"
controls
:show-fullscreen-btn="false"
:show-center-play-btn="true"
></video>
</view>
</uv-popup>
</template>
<script>
export default {
data() {
return {
videoUrl: '',
}
},
methods: {
open(uvideoUrlrl) {
this.videoUrl = videoUrl
this.$refs.popup.open();
},
close() {
this.$refs.popup.close();
this.videoUrl = ''
},
},
}
</script>
<style scoped lang="scss">
.video {
width: 100vw;
height: calc(100vh - #{$navbar-height} - var(--status-bar-height) - 20rpx);
}
</style>