<!-- camera.wxml -->
<camera device-position="back" flash="off" binderror="error" style="width: 100%; height: 300px;"></camera>
<button type="primary" bindtap="takePhoto">拍照</button>
<view>预览</view>
<image mode="widthFix" src="{{src}}"></image>
框架类型 | 问题类型 | 操作系统 | 工具版本 |
---|---|---|---|
小程序 | Bug | macOS | 1.04.2007062 |
<!-- camera.wxml -->
<camera device-position="back" flash="off" binderror="error" style="width: 100%; height: 300px;"></camera>
<button type="primary" bindtap="takePhoto">拍照</button>
<view>预览</view>
<image mode="widthFix" src="{{src}}"></image>
6 个回答
这都2年了,这问题还在
马上一年了,这个问题还是存在,打开就闪退
一年了bug还在...
您好,最后好了吗
跟楼主一个版本测试无闪退:
不过我是先检查有没授权的
wx.authorize({
scope: 'scope.camera',
success: function(res) {
console.log('已经授权过了', res);