wxml
<camera device-position="back" flash="off" binderror="error" id="camera" style="height:{{camera_height}}px"></camera> |
.js
onShow:function(){ var view_height = wx.getSystemInfoSync().windowHeight this.setData({camera_height: view_height})} |
结果:

跟新到微信最新版后这个问题还存在么,应该已经修过了
高度设置为100vh可以解决
提供的代码片段没有内容哦,试试延时处理一下
您好,https://developers.weixin.qq.com/s/RF4PF9mc7h5Q这个代码片段可以的,刚刚的有些错误,不好意思。问题中的代码片段链接已经更新正常。麻烦您指导一下
好的,这个问题后续修复
嗯嗯,谢谢,加班辛苦了^^
哈哈哈 我们都一样
还没修复好吗?