小程序wx.chooseImage拍照drawImage 微信闪退
发布于 5 年前 作者 byang 6093 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

小程序wx.chooseImage拍照,drawImage绘图 微信闪退

  • 预期表现

可以正常绘图到页面

  • 复现路径
  • 提供一个最简复现 Demo

chooseImage: function (successfunc) {

let that = this;

// ‘original’,

wx.chooseImage({

count: 1,

sizeType: [‘original’],

sourceType: [‘camera’],

success(res) {

!!successfunc && successfunc(res)

}

})

},

that.canvas = wx.createCanvasContext(‘image-canvas’, that)

that.canvas.drawImage(tempImagePath, 0, 0, width, canvasHeight)

that.canvas.draw()

2 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

我也遇到这个问题  安卓手机,点击拍照之后 点击使用照片 然后就闪退并跳转到其他页面了。。

回到顶部