初始化万家商超用户端仓库

This commit is contained in:
wangxiaowei
2025-04-30 14:04:34 +08:00
commit 022c640d89
425 changed files with 160005 additions and 0 deletions

View File

@ -0,0 +1,56 @@
<template>
<video
id="videoId"
v-if="videoplay"
object-fit="contain"
:src="videoUrl"
autoplay
></video>
</template>
<script>
export default {
components: {},
data() {
return {
videoplay: false,
videoUrl: "",
};
},
computed: {
},
watch: {},
onLoad(options) {
this.videoContext = uni.createVideoContext('videoId', this);
this.videoUrl = options&&decodeURIComponent(options.src)
this.videoContext.requestFullScreen({ direction: 90}); //direction: 90 这个是控制全屏的时候视屏旋转多少度
this.videoContext.play();
this.videoplay = true; // 显示播放盒子
},
onUnload() {
},
onReady() {
},
onShow(options) {
},
onPullDownRefresh() {
},
onReachBottom(e) {},
onPageScroll(e) {},
methods: {
back () {
uni.navigateBack()
}
}
};
</script>
<style lang="scss" scoped>
video {
height: 100vh;
width: 100vw;
}
page {
background: rgba(0,0,0,0.3);
}
</style>