feat: 更新iconfont

This commit is contained in:
2025-06-05 17:31:13 +08:00
parent a12107da40
commit 13a0afe97e
21 changed files with 2990 additions and 76 deletions
+28
View File
@@ -122,4 +122,32 @@ Page({
// this.renderCanvas();
this.textDrawService?.draw(updatedCardList);
},
/** 下载打印 */
exportToPrint() {
console.log('this.canvas:', this.canvas);
if (this.canvas) {
wx.canvasToTempFilePath({
canvas: this.canvas,
fileType: 'png',
quality: 1,
success: (res) => {
wx.getImageInfo({
src: res.tempFilePath,
success: (res) =>
console.log(
'getImageInfo image size :',
res.width,
res.height,
), // 应输出2480x3508
});
wx.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
success: () => wx.showToast({ title: '保存成功' }),
});
},
});
return;
}
},
});