camera无法被遮罩的问题
发布于 6 年前 作者 xiuying41 11848 次浏览 来自 问答

<camera device-position=“front” flash=“auto” binderror=“error” style=“width: 100%; height: 310px;”>

<cover-view class=“controls” wx:if="{{style1==1}}" >

<cover-image   src="{{src}}"></cover-image></cover-view>

</camera>

这个代码,我确认,已经将style1置为了1,但是,手机端还是能动的摄像状态,但是电脑端的开发工具,是可以的。

2 回复

谢谢你的回答,我已经找打问题了,是因为缺少class=“controls” 的css

麻烦给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题

回到顶部