pageOrientation 设置横屏
发布于 6 年前 作者 nazeng 8120 次浏览 来自 官方Issues

当小程序设置横屏后   previewImage这个浏览图片时还是会变成坚屏

4 回复

请问能动态控制这个属性么?

{

“navigationBarTitleText”: “识别来源”,

“pageOrientation”: “landscape”,

“usingComponents”: {

“authorize”: “/components/authorize/authorize”

}

}

打开图片

previewImage: function(e) {

var current = e.target.dataset.src

wx.previewImage({

current: current,

urls: this.imageList

})

},

wx.previewImage  这个是新页面,没法设置横屏吗?但是我整个小程序也设置横屏,图片浏览时也是变成竖屏,打开文档也是坚屏

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

你好,这些 wx.previewImage / wx.OpenDocument  目前都是不支持强转竖屏的。还在规划中,请等待后续通知。

回到顶部