Commit 4ba83eed3108476a4c5f6907398d17466a82a438
1 parent
d171166a
分享的优化
Showing
1 changed file
with
17 additions
and
1 deletions
packageA/pages/goodsInfo/goodsInfo.js
| ... | ... | @@ -3711,7 +3711,16 @@ Page({ |
| 3711 | 3711 | }; |
| 3712 | 3712 | |
| 3713 | 3713 | //类型 0普通商品 1秒杀商品 2商家和会员团 3阶梯团 4阶梯团 |
| 3714 | - var type = 8; | |
| 3714 | + var type = this.data.prom_type || 0; | |
| 3715 | + console.log('商品类型-----'); | |
| 3716 | + console.log(type); | |
| 3717 | + // if (type == 2) type = -1; | |
| 3718 | + if (type == 4) type = 0; | |
| 3719 | + if (type == 8) type = 0; | |
| 3720 | + if (type == 2) type = 0; | |
| 3721 | + if (type == 6) type = 2; // 6拼团 2团购 | |
| 3722 | + if (type == 10) type = -1; | |
| 3723 | + | |
| 3715 | 3724 | wx.showLoading({ |
| 3716 | 3725 | title: '生成中...', |
| 3717 | 3726 | }) |
| ... | ... | @@ -3920,6 +3929,13 @@ Page({ |
| 3920 | 3929 | break; |
| 3921 | 3930 | |
| 3922 | 3931 | case 1: |
| 3932 | + | |
| 3933 | + //画秒杀的图片 | |
| 3934 | + if (th.data.is_share_text) { | |
| 3935 | + var miaos_path = '../../../images/share/miao_share.png'; | |
| 3936 | + context.drawImage(miaos_path, 43 * unit, 690 * unit, 222 * unit, 40 * unit); | |
| 3937 | + } | |
| 3938 | + | |
| 3923 | 3939 | context.setFillStyle("black") |
| 3924 | 3940 | context.setFontSize(24 * unit) |
| 3925 | 3941 | context.fillText(th.data.sto_sele_name_1, 40 * unit, 770 * unit); | ... | ... |