From 4ba83eed3108476a4c5f6907398d17466a82a438 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Thu, 29 Feb 2024 17:12:11 +0800 Subject: [PATCH] 分享的优化 --- packageA/pages/goodsInfo/goodsInfo.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packageA/pages/goodsInfo/goodsInfo.js b/packageA/pages/goodsInfo/goodsInfo.js index e58b483..6a052b8 100644 --- a/packageA/pages/goodsInfo/goodsInfo.js +++ b/packageA/pages/goodsInfo/goodsInfo.js @@ -3711,7 +3711,16 @@ Page({ }; //类型 0普通商品 1秒杀商品 2商家和会员团 3阶梯团 4阶梯团 - var type = 8; + var type = this.data.prom_type || 0; + console.log('商品类型-----'); + console.log(type); + // if (type == 2) type = -1; + if (type == 4) type = 0; + if (type == 8) type = 0; + if (type == 2) type = 0; + if (type == 6) type = 2; // 6拼团 2团购 + if (type == 10) type = -1; + wx.showLoading({ title: '生成中...', }) @@ -3920,6 +3929,13 @@ Page({ break; case 1: + + //画秒杀的图片 + if (th.data.is_share_text) { + var miaos_path = '../../../images/share/miao_share.png'; + context.drawImage(miaos_path, 43 * unit, 690 * unit, 222 * unit, 40 * unit); + } + context.setFillStyle("black") context.setFontSize(24 * unit) context.fillText(th.data.sto_sele_name_1, 40 * unit, 770 * unit); -- libgit2 0.21.4