diff --git a/manifest.json b/manifest.json index 584ecdc..81a9949 100644 --- a/manifest.json +++ b/manifest.json @@ -10,6 +10,13 @@ "usingComponents" : true, "nvueStyleCompiler" : "uni-app", "compilerVersion" : 3, + "screenOrientation" : [ + //可选,字符串数组类型,应用支持的横竖屏 + "portrait-primary", //可选,字符串类型,支持竖屏 + "portrait-secondary", //可选,字符串类型,支持反向竖屏 + "landscape-primary", //可选,字符串类型,支持横屏 + "landscape-secondary" //可选,字符串类型,支持反向横屏 + ], "compatible" : { "ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 }, diff --git a/pages.json b/pages.json index b63a79f..e50a10a 100644 --- a/pages.json +++ b/pages.json @@ -596,6 +596,12 @@ "navigationStyle": "custom" } }, + { + "path": "pages/shop/photoAlbum/videoplayer", + "style": { + "navigationStyle": "custom" + } + }, { "path": "pages/shop/photoAlbum/videoList", "style": { diff --git a/pages/shop/photoAlbum/addPhoto.vue b/pages/shop/photoAlbum/addPhoto.vue index 6c36e5c..f813e08 100644 --- a/pages/shop/photoAlbum/addPhoto.vue +++ b/pages/shop/photoAlbum/addPhoto.vue @@ -220,14 +220,16 @@ // uni.navigateTo({ // url: `/pages/album/list?urls=${encodeURIComponent(JSON.stringify(urls))}` // }); - this.videoPlay = true; // 显示播放盒子 - this.videoContext = uni.createVideoContext("myvideo", this); // this这个是实例对象 必传 - this.videoUrl = this.formData.url; - this.videoContext.requestFullScreen({ - direction: 90 - }); - this.videoContext.play(); - + // this.videoPlay = true; // 显示播放盒子 + // this.videoContext = uni.createVideoContext("myvideo", this); // this这个是实例对象 必传 + // this.videoUrl = this.formData.url; + // this.videoContext.requestFullScreen({ + // direction: 90 + // }); + // this.videoContext.play(); + uni.navigateTo({ + url: '/pages/shop/photoAlbum/videoplayer?url=' + this.formData.url + }) }, async submitPhoto() { diff --git a/pages/shop/photoAlbum/videoplayer.vue b/pages/shop/photoAlbum/videoplayer.vue new file mode 100644 index 0000000..9ae18ef --- /dev/null +++ b/pages/shop/photoAlbum/videoplayer.vue @@ -0,0 +1,106 @@ + + + + + \ No newline at end of file