Commit a4d37c486254f8c86e827329376da740727c9610
1 parent
daed5850
分享的优化,商家名称
Showing
1 changed file
with
41 additions
and
41 deletions
pages/goods/goodsInfo/goodsInfo.js
| @@ -3872,22 +3872,22 @@ Page({ | @@ -3872,22 +3872,22 @@ Page({ | ||
| 3872 | context.setFontSize(22 * unit) | 3872 | context.setFontSize(22 * unit) |
| 3873 | 3873 | ||
| 3874 | if(type==0){ | 3874 | if(type==0){ |
| 3875 | - // 原来start ---> | 3875 | + // 原来start ---> |
| 3876 | + context.setFontSize(24 * unit) | ||
| 3877 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 766 * unit); | ||
| 3876 | 3878 | ||
| 3877 | - context.fillText("优惠乐翻天,精彩就在你身边", 40 * unit, 806 * unit); | ||
| 3878 | - context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 846 * unit); | ||
| 3879 | - context.setFillStyle("black") | ||
| 3880 | - context.setFontSize(28 * unit) | ||
| 3881 | - context.fillText(th.data.sto_sele_name_1, 40 * unit, 766 * unit); | ||
| 3882 | - }else{ | ||
| 3883 | - // 原来start ---> | ||
| 3884 | - // context.fillText("长按识别二维码", 40 * unit, 776 * unit); | ||
| 3885 | - // context.fillText("立即开始兑换", 40 * unit, 826 * unit); | 3879 | + context.setFontSize(22 * unit) |
| 3880 | + context.fillText("优惠乐翻天,精彩就在你身边", 40 * unit, 806 * unit); | ||
| 3881 | + context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 846 * unit); | ||
| 3882 | + | ||
| 3883 | + }else{ | ||
| 3884 | + context.setFontSize(24 * unit) | ||
| 3885 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 766 * unit); | ||
| 3886 | + context.setFontSize(22 * unit) | ||
| 3886 | context.fillText("长按识别二维码", 40 * unit, 806 * unit); | 3887 | context.fillText("长按识别二维码", 40 * unit, 806 * unit); |
| 3887 | context.fillText("立即开始兑换", 40 * unit, 846 * unit); | 3888 | context.fillText("立即开始兑换", 40 * unit, 846 * unit); |
| 3888 | - context.setFillStyle("black") | ||
| 3889 | - context.setFontSize(28 * unit) | ||
| 3890 | - context.fillText(th.data.sto_sele_name_1, 40 * unit, 766 * unit); | 3889 | + |
| 3890 | + | ||
| 3891 | } | 3891 | } |
| 3892 | 3892 | ||
| 3893 | //---二维吗图--- | 3893 | //---二维吗图--- |
| @@ -3912,15 +3912,17 @@ Page({ | @@ -3912,15 +3912,17 @@ Page({ | ||
| 3912 | //画秒杀的图片 | 3912 | //画秒杀的图片 |
| 3913 | var miaos_path = '../../../images/share/miao_share.png'; | 3913 | var miaos_path = '../../../images/share/miao_share.png'; |
| 3914 | context.drawImage(miaos_path, 43 * unit, 700 * unit, 222 * unit, 40 * unit); | 3914 | context.drawImage(miaos_path, 43 * unit, 700 * unit, 222 * unit, 40 * unit); |
| 3915 | - | 3915 | + |
| 3916 | + context.setFillStyle("black") | ||
| 3917 | + context.setFontSize(24 * unit) | ||
| 3918 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 786 * unit); | ||
| 3916 | //---文字--- | 3919 | //---文字--- |
| 3917 | context.setFontSize(22 * unit) | 3920 | context.setFontSize(22 * unit) |
| 3918 | context.setFillStyle("black") | 3921 | context.setFillStyle("black") |
| 3919 | context.fillText("特惠好物,限时秒杀", 40 * unit, 826 * unit); | 3922 | context.fillText("特惠好物,限时秒杀", 40 * unit, 826 * unit); |
| 3920 | context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 866 * unit); | 3923 | context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 866 * unit); |
| 3921 | - context.setFillStyle("black") | ||
| 3922 | - context.setFontSize(28 * unit) | ||
| 3923 | - context.fillText(th.data.sto_sele_name_1, 40 * unit, 786 * unit); | 3924 | + |
| 3925 | + | ||
| 3924 | //---二维吗图--- | 3926 | //---二维吗图--- |
| 3925 | //-- 自定义海报 -- | 3927 | //-- 自定义海报 -- |
| 3926 | if(th.data.poster){ | 3928 | if(th.data.poster){ |
| @@ -3940,10 +3942,10 @@ Page({ | @@ -3940,10 +3942,10 @@ Page({ | ||
| 3940 | context.lineTo(520 * unit, 670 * unit) | 3942 | context.lineTo(520 * unit, 670 * unit) |
| 3941 | context.stroke(); | 3943 | context.stroke(); |
| 3942 | //---文字--- | 3944 | //---文字--- |
| 3943 | - context.setFontSize(22 * unit) | ||
| 3944 | - context.font = 'normal bold'; | ||
| 3945 | - context.setFillStyle("black") | ||
| 3946 | - context.fillText("好物拼起来,拼拼更划算", 40 * unit, 726 * unit); | 3945 | + |
| 3946 | + context.setFillStyle("black") | ||
| 3947 | + context.setFontSize(24 * unit) | ||
| 3948 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 720 * unit); | ||
| 3947 | 3949 | ||
| 3948 | //绘制成团图片 | 3950 | //绘制成团图片 |
| 3949 | var ct_img = "../../../images/share/ct_num.png"; | 3951 | var ct_img = "../../../images/share/ct_num.png"; |
| @@ -3959,15 +3961,15 @@ Page({ | @@ -3959,15 +3961,15 @@ Page({ | ||
| 3959 | } | 3961 | } |
| 3960 | context.setFontSize(22 * unit) | 3962 | context.setFontSize(22 * unit) |
| 3961 | context.fillText("已拼" + th.data.prom_act.buy_num + "份", 166 * unit, 763 * unit); | 3963 | context.fillText("已拼" + th.data.prom_act.buy_num + "份", 166 * unit, 763 * unit); |
| 3962 | - context.setFillStyle("gray") | ||
| 3963 | - context.fillText("快来和我一起拼团吧!", 40 * unit, 836 * unit); | 3964 | + |
| 3965 | + context.setFillStyle("gray") | ||
| 3966 | + context.fillText("快来和我一起拼团吧!", 40 * unit, 806 * unit); | ||
| 3964 | context.setFillStyle("black") | 3967 | context.setFillStyle("black") |
| 3965 | context.font = 'normal bold 18px sans-serif'; | 3968 | context.font = 'normal bold 18px sans-serif'; |
| 3966 | context.setFontSize(21.3 * unit) | 3969 | context.setFontSize(21.3 * unit) |
| 3967 | - context.fillText("长按识别二维码,立即参团", 40 * unit, 866 * unit); | ||
| 3968 | - context.setFillStyle("black") | ||
| 3969 | - context.setFontSize(26 * unit) | ||
| 3970 | - context.fillText(th.data.sto_sele_name_1, 40 * unit, 806 * unit); | 3970 | + context.fillText("长按识别二维码,立即参团", 40 * unit, 836 * unit); |
| 3971 | + | ||
| 3972 | + | ||
| 3971 | //---二维吗图--- | 3973 | //---二维吗图--- |
| 3972 | //-- 自定义海报 -- | 3974 | //-- 自定义海报 -- |
| 3973 | if(th.data.poster){ | 3975 | if(th.data.poster){ |
| @@ -3986,10 +3988,11 @@ Page({ | @@ -3986,10 +3988,11 @@ Page({ | ||
| 3986 | context.lineTo(520 * unit, 670 * unit) | 3988 | context.lineTo(520 * unit, 670 * unit) |
| 3987 | context.stroke(); | 3989 | context.stroke(); |
| 3988 | //---文字--- | 3990 | //---文字--- |
| 3989 | - context.setFontSize(22 * unit) | ||
| 3990 | - context.font = 'normal bold'; | ||
| 3991 | - context.setFillStyle("black") | ||
| 3992 | - context.fillText("好物拼起来,拼拼更划算", 40 * unit, 726 * unit); | 3991 | + |
| 3992 | + context.setFillStyle("black") | ||
| 3993 | + context.setFontSize(24 * unit) | ||
| 3994 | + context.fillText(th.data.sto_sele_name_1, 40 * unit, 720 * unit); | ||
| 3995 | + | ||
| 3993 | //---绘制中间阶梯的价格--- | 3996 | //---绘制中间阶梯的价格--- |
| 3994 | var list = th.data.prom_act.ct_rylist; | 3997 | var list = th.data.prom_act.ct_rylist; |
| 3995 | for (var i = 0; i < list.length; i++) { | 3998 | for (var i = 0; i < list.length; i++) { |
| @@ -4012,16 +4015,13 @@ Page({ | @@ -4012,16 +4015,13 @@ Page({ | ||
| 4012 | // context.font = 'normal bold 18px sans-serif'; | 4015 | // context.font = 'normal bold 18px sans-serif'; |
| 4013 | // context.setFontSize(22 * unit) | 4016 | // context.setFontSize(22 * unit) |
| 4014 | // context.fillText("长按识别二维码,立即参团", 40 * unit, 860 * unit); | 4017 | // context.fillText("长按识别二维码,立即参团", 40 * unit, 860 * unit); |
| 4015 | - context.setFillStyle("gray") | ||
| 4016 | - context.fillText("快来和我一起拼团吧!", 40 * unit, 810 * unit); | ||
| 4017 | - context.setFillStyle("black") | ||
| 4018 | - context.font = 'normal bold 18px sans-serif'; | 4018 | + //context.setFillStyle("gray") |
| 4019 | + context.setFillStyle("black") | ||
| 4020 | + context.fillText("快来和我一起拼团吧!", 40 * unit, 820 * unit); | ||
| 4021 | + //context.font = 'normal bold 18px sans-serif'; | ||
| 4019 | context.setFontSize(22 * unit) | 4022 | context.setFontSize(22 * unit) |
| 4020 | - context.fillText("长按识别二维码,立即参团", 40 * unit, 840 * unit); | ||
| 4021 | - | ||
| 4022 | - context.setFillStyle("black") | ||
| 4023 | - context.setFontSize(26 * unit) | ||
| 4024 | - context.fillText(th.data.sto_sele_name_1, 40 * unit, 876 * unit); | 4023 | + context.fillText("长按识别二维码,立即参团", 40 * unit, 850 * unit); |
| 4024 | + | ||
| 4025 | 4025 | ||
| 4026 | //-- 自定义海报 -- | 4026 | //-- 自定义海报 -- |
| 4027 | if(th.data.poster){ | 4027 | if(th.data.poster){ |
| @@ -4034,7 +4034,7 @@ Page({ | @@ -4034,7 +4034,7 @@ Page({ | ||
| 4034 | } | 4034 | } |
| 4035 | break | 4035 | break |
| 4036 | 4036 | ||
| 4037 | - case 3: //阶梯团的展示 | 4037 | + |
| 4038 | } | 4038 | } |
| 4039 | 4039 | ||
| 4040 | 4040 |