app_tree_planting/pages/duty/prevideo/prevideo.vue
2023-03-03 19:29:04 +08:00

36 lines
526 B
Vue

<template>
<view class="page">
<video :src="videoSrc" style="width: 100%; height: 500rpx;"></video>
</view>
</template>
<script>
export default {
onLoad(res) {
this.videoSrc = res.src
},
data() {
return {
videoSrc: ''
};
}
}
</script>
<style lang="scss">
page {
height: 100%;
}
.page {
display: flex;
flex: 1;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: auto;
height: 100%;
background: black;
}
</style>