安卓手机,拍摄照片后,显示图片发蓝,iOS正常
* 如何复现?代码如下
<!-- camera.wxml -->
<camera flash=“off” style=“width: 100%; height: 463rpx;”>
<cover-image style=“width:100%;height:100%;” src=’{{photo_path}}’></cover-image>
</camera>
<button type=“primary” bindtap=“takePhoto”>拍照</button>
takePhoto: function () {
console.log(“开始拍照”);
const ctx = wx.createCameraContext()
ctx.takePhoto({
quality: ‘normal’,
success: (res) => {
this.setData({
photo_path: res.tempImagePath,
})
console.log(“拍摄成功”);
},
fail: function (e) {
console.log(“拍摄失败”);
console.log(e);
}
})
}
将高camera高度-1就正常了 height: 462rpx;。
正常情况