takePhoto() {
// wx.navigateTo({
// url: '../testResult/testResult'
// });
const ctx = wx.createCameraContext()
ctx.takePhoto({
quality: 'high',
success: (res) => {
console.log(res)
this.setData({
src: res.tempImagePath
})
app.globalData.src = res.tempImagePath;
wx.navigateTo({
url: '../testResult/testResult'
});
},
complete: (res) => {
}
})
}
我已经解决这个问题了,因为样式都是一样的,在项目中我用的是一个template。应该是两个页面调用不同的tamplate,那么问题也就解决了。
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
拍照检测demo问题机型:OPPO R11 微信版本:6.7.2 我将项目中的图片删掉了,但是能够看到运行效果。