From 38c860ac5fcc1840c7af96ac45dd351c7bc8aa3d Mon Sep 17 00:00:00 2001 From: luqc Date: Sun, 26 May 2019 22:05:41 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=95=86=E6=88=B7=E8=AF=A6=E6=83=85=E5=92=8C?= =?UTF-8?q?=E5=8A=B5=E8=AF=A6=E6=83=85][=E6=96=B0=E5=A2=9E][=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E7=94=9F=E6=88=90=E6=B5=B7=E6=8A=A5]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/canvas/index.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pages/canvas/index.js b/pages/canvas/index.js index dc6ab7f..04a795a 100644 --- a/pages/canvas/index.js +++ b/pages/canvas/index.js @@ -115,6 +115,7 @@ Page({ success: function(res) { ctx.drawImage(res.path, 0, 0, wW-20, wH); that.drawshopimg(ctx, scale,options); + ctx.draw(true) } }) @@ -155,22 +156,19 @@ Page({ src: src2, success: function(res) { if(options && options.merchantId){ - that.drawOtherImage(ctx, scale) - that.drawOtherContent(ctx, scale) - // 绘制白色背景 + // 绘制白色背景 ctx.setFillStyle('#fff') ctx.fillRect(15, 45, topImageWidth + 10, topImageHeight + 10) ctx.drawImage(res.path, 20, 50, topImageWidth, topImageHeight) - ctx.draw() + that.drawOtherImage(ctx, scale) + that.drawOtherContent(ctx, scale) }else if((options && options.couponChannelId)){ ctx.setFillStyle('#fff') ctx.fillRect(15, 95, topImageWidth + 10, topImageHeight + 10) ctx.drawImage(res.path, 20, 100, topImageWidth, topImageHeight) - ctx.draw() that.drawCouponContent(ctx, scale) that.drawqrCode(ctx, scale); } - wx.hideLoading() } })