downLoadImage(){
uni.canvasToTempFilePath({
x: 0,
y: 0,
width: this.canvasW,
height: this.canvasH,
destWidth: 375,
destHeight: 375,
canvasId: 'mycanvas1',
success: (res) => {
uniCloud.uploadFile({
filePath:res.tempFilePath,
cloudPath:'3.jpg'
})
}
})
}
如果使用uni.canvasToTempFilePath返回的tempFilePath作为参数的结果如图