Commit bc6de975b5e8948c7ce1cf742b4d5426b40adfc7
1 parent
5b3f6fea
商品详情分享海报增加店铺名称
Showing
1 changed file
with
32 additions
and
16 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -3846,20 +3846,20 @@ Page({ |
3846 | 3846 | if(type==0){ |
3847 | 3847 | // 原来start ---> |
3848 | 3848 | |
3849 | - context.fillText("优惠乐翻天,精彩就在你身边", 40 * unit, 776 * unit); | |
3850 | - context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 826 * unit); | |
3851 | - // context.setFillStyle("black") | |
3852 | - // context.setFontSize(28 * unit) | |
3853 | - // context.fillText(th.data.sto_sele_name, 40 * unit, 776 * unit); | |
3849 | + context.fillText("优惠乐翻天,精彩就在你身边", 40 * unit, 806 * unit); | |
3850 | + context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 846 * unit); | |
3851 | + context.setFillStyle("black") | |
3852 | + context.setFontSize(28 * unit) | |
3853 | + context.fillText(th.data.sto_sele_name, 40 * unit, 766 * unit); | |
3854 | 3854 | }else{ |
3855 | 3855 | // 原来start ---> |
3856 | 3856 | // context.fillText("长按识别二维码", 40 * unit, 776 * unit); |
3857 | 3857 | // context.fillText("立即开始兑换", 40 * unit, 826 * unit); |
3858 | - context.fillText("长按识别二维码", 40 * unit, 776 * unit); | |
3859 | - context.fillText("立即开始兑换", 40 * unit, 826 * unit); | |
3860 | - // context.setFillStyle("black") | |
3861 | - // context.setFontSize(28 * unit) | |
3862 | - // context.fillText(th.data.sto_sele_name, 40 * unit, 776 * unit); | |
3858 | + context.fillText("长按识别二维码", 40 * unit, 806 * unit); | |
3859 | + context.fillText("立即开始兑换", 40 * unit, 846 * unit); | |
3860 | + context.setFillStyle("black") | |
3861 | + context.setFontSize(28 * unit) | |
3862 | + context.fillText(th.data.sto_sele_name, 40 * unit, 766 * unit); | |
3863 | 3863 | } |
3864 | 3864 | |
3865 | 3865 | //---二维吗图--- |
... | ... | @@ -3888,8 +3888,11 @@ Page({ |
3888 | 3888 | //---文字--- |
3889 | 3889 | context.setFontSize(22 * unit) |
3890 | 3890 | context.setFillStyle("black") |
3891 | - context.fillText("特惠好物,限时秒杀", 40 * unit, 806 * unit); | |
3892 | - context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 846 * unit); | |
3891 | + context.fillText("特惠好物,限时秒杀", 40 * unit, 826 * unit); | |
3892 | + context.fillText("长按识别二维码,立即开始抢购", 40 * unit, 866 * unit); | |
3893 | + context.setFillStyle("black") | |
3894 | + context.setFontSize(28 * unit) | |
3895 | + context.fillText(th.data.sto_sele_name, 40 * unit, 786 * unit); | |
3893 | 3896 | //---二维吗图--- |
3894 | 3897 | //-- 自定义海报 -- |
3895 | 3898 | if(th.data.poster){ |
... | ... | @@ -3929,11 +3932,14 @@ Page({ |
3929 | 3932 | context.setFontSize(22 * unit) |
3930 | 3933 | context.fillText("已拼" + th.data.prom_act.buy_num + "份", 166 * unit, 763 * unit); |
3931 | 3934 | context.setFillStyle("gray") |
3932 | - context.fillText("快来和我一起拼团吧!", 40 * unit, 826 * unit); | |
3935 | + context.fillText("快来和我一起拼团吧!", 40 * unit, 836 * unit); | |
3933 | 3936 | context.setFillStyle("black") |
3934 | 3937 | context.font = 'normal bold 18px sans-serif'; |
3935 | 3938 | context.setFontSize(21.3 * unit) |
3936 | - context.fillText("长按识别二维码,立即参团", 40 * unit, 856 * unit); | |
3939 | + context.fillText("长按识别二维码,立即参团", 40 * unit, 866 * unit); | |
3940 | + context.setFillStyle("black") | |
3941 | + context.setFontSize(26 * unit) | |
3942 | + context.fillText(th.data.sto_sele_name, 40 * unit, 806 * unit); | |
3937 | 3943 | //---二维吗图--- |
3938 | 3944 | //-- 自定义海报 -- |
3939 | 3945 | if(th.data.poster){ |
... | ... | @@ -3972,12 +3978,22 @@ Page({ |
3972 | 3978 | context.fillText("满" + item.rynum + "人", 40 * unit + wi, 786 * unit); |
3973 | 3979 | } |
3974 | 3980 | //----------------下面部分---------------- |
3981 | + // context.setFillStyle("gray") | |
3982 | + // context.fillText("快来和我一起拼团吧!", 40 * unit, 830 * unit); | |
3983 | + // context.setFillStyle("black") | |
3984 | + // context.font = 'normal bold 18px sans-serif'; | |
3985 | + // context.setFontSize(22 * unit) | |
3986 | + // context.fillText("长按识别二维码,立即参团", 40 * unit, 860 * unit); | |
3975 | 3987 | context.setFillStyle("gray") |
3976 | - context.fillText("快来和我一起拼团吧!", 40 * unit, 830 * unit); | |
3988 | + context.fillText("快来和我一起拼团吧!", 40 * unit, 810 * unit); | |
3977 | 3989 | context.setFillStyle("black") |
3978 | 3990 | context.font = 'normal bold 18px sans-serif'; |
3979 | 3991 | context.setFontSize(22 * unit) |
3980 | - context.fillText("长按识别二维码,立即参团", 40 * unit, 860 * unit); | |
3992 | + context.fillText("长按识别二维码,立即参团", 40 * unit, 840 * unit); | |
3993 | + | |
3994 | + context.setFillStyle("black") | |
3995 | + context.setFontSize(26 * unit) | |
3996 | + context.fillText(th.data.sto_sele_name, 40 * unit, 876 * unit); | |
3981 | 3997 | |
3982 | 3998 | //-- 自定义海报 -- |
3983 | 3999 | if(th.data.poster){ | ... | ... |