分享海报更换

This commit is contained in:
GaoHao
2024-12-09 13:31:37 +08:00
parent bd98f12d4d
commit ff44f08b93
7 changed files with 786 additions and 18 deletions

View File

@@ -543,10 +543,9 @@
let textTop = 0;
ctx.setFontSize(19);
ctx.setFillStyle('#333');
ctx.fillText("长按识别图中二维码", 17, textTop + 590);
// ctx.fillText("长按识别图中二维码", 17, textTop + 590);
// 二维码
ctx.drawImage(res2.tempFilePath, 238, textTop +
526, 120, 120);
// ctx.drawImage(res2.tempFilePath, 238, textTop + 526, 120, 120);
ctx.draw(true, () => {
// canvas画布转成图片并返回图片地址
uni.canvasToTempFilePath({