36 lines
526 B
Vue
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>
|