...
|
...
|
@@ -129,14 +129,14 @@ Page({ |
|
|
defaultImage = defaultImage.replace('http://', 'https://');
|
|
|
}
|
|
|
|
|
|
that.drawLongText('你的好友邀你为ta助力,购买限定商品', pCtx, 187.5 * scale, 50 * scale, 'black', 18, 20);
|
|
|
that.drawLongText('你的好友邀你为ta助力,购买限定商品', pCtx, 187.5 * scale, 50 * scale, 'black', 17, 20);
|
|
|
|
|
|
wx.getImageInfo({
|
|
|
src: defaultImage,
|
|
|
success: function(res) {
|
|
|
pCtx.drawImage(res.path, 27 * scale, 60 * scale, 320 * scale, 279 * scale);
|
|
|
pCtx.drawImage(res.path, 27 * scale, 70 * scale, 320 * scale, 279 * scale);
|
|
|
pCtx.setFillStyle('white');
|
|
|
that.drawLongText(that.data.product_name, pCtx, 187.5 * scale, 352 * scale, 'black', 14, 20);
|
|
|
that.drawLongText(that.data.product_name, pCtx, 187.5 * scale, 382 * scale, 'black', 14, 20);
|
|
|
pCtx.setTextAlign('center');
|
|
|
pCtx.setFontSize(18 * scale);
|
|
|
pCtx.draw(true);
|
...
|
...
|
|