this.prizeList.forEach(function (item, index) {
_that.initMask(index);
});
uni.canvasToTempFilePath({
destWidth: this.higtCanvasSize / 2,
destHeight: this.higtCanvasSize / 2 ,
canvasId: this.maskId,
success: (res) => {
// 在 H5 平台下,tempFilePath 为 base64
//console.log(res.tempFilePath)
// this.handleMaskImg({
// ok: true,
// data: res.tempFilePath,
// msg: '画布导出生成图片成功'
// })
this.prizeList[index].maskImg = res.tempFilePath;
//console.log('mask:'+res.tempFilePath)
},
越王够贱 (作者)
谢谢 用这方法解决了
2022-06-18 12:55