this.ctx = wx.createCanvasContext('myCanvas');
this.ctx.font = '20px SimSun';
this.ctx.fillStyle = '#704AF2';
this.ctx.fillText('AI集合站·您身边的AI助手!', 60, 40);
this.ctx.draw()
// this.ctx.drawImage(ewmfilePath, 50, 60, 180, 180);
this.ctx.font = '14px SimSun';
this.ctx.fillStyle = '#00007f';
this.ctx.fillText('(扫一扫或长按上方二维码进入)', 50, 280);
this.ctx.draw(true);
this.flag = true;
uni.hideLoading()
我之前也碰到过,可以参考 https://blog.csdn.net/weixin_73077230/article/details/135521340?spm=1001.2014.3001.5502
这个Canvas有好多问题,我已经彻底放弃了,改为后端生成