// 生成图片
getJpg(ctx, height){
console.log('66666',ctx)
ctx.draw(false,()=>{
const wxCanvasToTempFilePath = utils.wxPromisify(wx.canvasToTempFilePath);
wxCanvasToTempFilePath({
canvasId: 'shareCanvas',
fileType: 'jpg',
quality: 1,
height: height,
success(res) {
console.log(res.tempFilePath,'0000',res)
},
fail(res) {
console.log(res.tempFilePath,'63444',res)
},
}).then(res=>{
this.setData({
imageSrc:res.tempFilePath
})
console.log(res.tempFilePath,'0000',res)
})
wx.hideLoading();
},this)
},
报啥错?大家举手来猜?