wx.canvasToTempFilePath({
x: 0,
y: 0,
width: 300,
height: 480,
destWidth: 300 * wx.getSystemInfoSync().pixelRatio,
destHeight: 480 * wx.getSystemInfoSync().pixelRatio,
canvasId: 'bigCode',
success(res) {
that.setData({
shareImgSrc: res.tempFilePath
}, () => {
console.log(that.data.shareImgSrc)
})
}
})