diff --git a/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js b/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js index f810665..4c45a9f 100644 --- a/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js +++ b/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js @@ -5288,20 +5288,20 @@ Page({ //---自定义海报 产品质量保证 if(th.data.share_b_img && th.data.poster.show_quality==1 ){ var g_path = "../../../../images/share/s_gou.png"; - context.drawImage(g_path, 56 * unit, 650 * unit, 22 * unit, 22 * unit); + context.drawImage(g_path, 56 * unit, 658 * unit, 22 * unit, 22 * unit); context.setFillStyle("red") context.setFontSize(18 * unit) - context.fillText("正品保证", 84 * unit, 670 * unit); + context.fillText("正品保证", 84 * unit, 678 * unit); - context.drawImage(g_path, 218 * unit, 650 * unit, 22 * unit, 22 * unit); + context.drawImage(g_path, 218 * unit, 658 * unit, 22 * unit, 22 * unit); context.setFillStyle("red") context.setFontSize(18 * unit) - context.fillText("纯实体店", 246 * unit, 670 * unit); + context.fillText("纯实体店", 246 * unit, 678 * unit); - context.drawImage(g_path, 388 * unit, 650 * unit, 22 * unit, 22 * unit); + context.drawImage(g_path, 388 * unit, 658 * unit, 22 * unit, 22 * unit); context.setFillStyle("red") context.setFontSize(18 * unit) - context.fillText("官方验证", 420 * unit, 670 * unit); + context.fillText("官方验证", 420 * unit, 678 * unit); } @@ -5312,10 +5312,10 @@ Page({ //---画线--- - context.setLineWidth(1 * unit) - context.moveTo(32 * unit, 680 * unit) - context.lineTo(520 * unit, 680 * unit) - context.stroke(); + // context.setLineWidth(1 * unit) + // context.moveTo(32 * unit, 680 * unit) + // context.lineTo(520 * unit, 680 * unit) + // context.stroke(); //---文字--- context.setFillStyle("black") @@ -5431,7 +5431,7 @@ Page({ }; - if(th.data.poster.show_time==1){ + if(th.data.poster && th.data.poster.show_time==1){ var act_time = ''; act_time="截止时间:"+ ut.formatTime(th.data.luckGoInfo.end_time); context.setFillStyle("red") diff --git a/packageC/pages/presell/goodsInfo/goodsInfo.js b/packageC/pages/presell/goodsInfo/goodsInfo.js index 5394814..2cfab4c 100644 --- a/packageC/pages/presell/goodsInfo/goodsInfo.js +++ b/packageC/pages/presell/goodsInfo/goodsInfo.js @@ -2986,7 +2986,7 @@ Page({ } var share_title = th.data.presellForm.share_title; - share_title ? share_title : th.data.data.goods_name; + share_title=share_title ? share_title : th.data.data.goods_name; //---产品名称--- //文本换行 参数:1、canvas对象,2、文本 3、距离左侧的距离 4、距离顶部的距离 5、6、文本的宽度 @@ -3062,10 +3062,10 @@ Page({ } //---画线--- - context.setLineWidth(1 * unit) - context.moveTo(32 * unit, 662 * unit) - context.lineTo(520 * unit, 662 * unit) - context.stroke(); + // context.setLineWidth(1 * unit) + // context.moveTo(32 * unit, 662 * unit) + // context.lineTo(520 * unit, 662 * unit) + // context.stroke(); //---文字--- context.setFillStyle("black") diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 255145f..89c3d43 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -6113,20 +6113,20 @@ Page({ //---自定义海报 产品质量保证 if(th.data.share_b_img && th.data.poster.show_quality==1 && type!=4){ var g_path = "../../../images/share/s_gou.png"; - context.drawImage(g_path, 56 * unit, 640 * unit, 22 * unit, 22 * unit); + context.drawImage(g_path, 56 * unit, 644 * unit, 22 * unit, 22 * unit); context.setFillStyle("red") context.setFontSize(18 * unit) - context.fillText("正品保证", 84 * unit, 660 * unit); + context.fillText("正品保证", 84 * unit, 664 * unit); - context.drawImage(g_path, 218 * unit, 640 * unit, 22 * unit, 22 * unit); + context.drawImage(g_path, 218 * unit, 644 * unit, 22 * unit, 22 * unit); context.setFillStyle("red") context.setFontSize(18 * unit) - context.fillText("纯实体店", 246 * unit, 660 * unit); + context.fillText("纯实体店", 246 * unit, 664 * unit); - context.drawImage(g_path, 388 * unit, 640 * unit, 22 * unit, 22 * unit); + context.drawImage(g_path, 388 * unit, 644 * unit, 22 * unit, 22 * unit); context.setFillStyle("red") context.setFontSize(18 * unit) - context.fillText("官方验证", 420 * unit, 660 * unit); + context.fillText("官方验证", 420 * unit, 664 * unit); } //-------大图后面就不一样了----------- @@ -6136,10 +6136,11 @@ Page({ break } //---画线--- - context.setLineWidth(1 * unit) - context.moveTo(32 * unit, 710 * unit) - context.lineTo(520 * unit, 710 * unit) - context.stroke(); + // context.setLineWidth(1 * unit) + // context.moveTo(32 * unit, 710 * unit) + // context.lineTo(520 * unit, 710 * unit) + // context.stroke(); + //---文字--- context.setFillStyle("black") context.setFontSize(22 * unit) @@ -6214,10 +6215,10 @@ Page({ //---画线--- - context.setLineWidth(1 * unit) - context.moveTo(32 * unit, 710 * unit) - context.lineTo(520 * unit, 710 * unit) - context.stroke(); + // context.setLineWidth(1 * unit) + // context.moveTo(32 * unit, 710 * unit) + // context.lineTo(520 * unit, 710 * unit) + // context.stroke(); //---文字--- context.setFillStyle("black") @@ -6259,10 +6260,10 @@ Page({ break } //---画线--- - context.setLineWidth(1 * unit) - context.moveTo(32 * unit, 670 * unit) - context.lineTo(520 * unit, 670 * unit) - context.stroke(); + // context.setLineWidth(1 * unit) + // context.moveTo(32 * unit, 670 * unit) + // context.lineTo(520 * unit, 670 * unit) + // context.stroke(); //画秒杀的图片 if(th.data.is_share_text){ @@ -6300,10 +6301,11 @@ Page({ break } //---画线--- - context.setLineWidth(1 * unit) - context.moveTo(32 * unit, 690 * unit) - context.lineTo(520 * unit, 690 * unit) - context.stroke(); + // context.setLineWidth(1 * unit) + // context.moveTo(32 * unit, 690 * unit) + // context.lineTo(520 * unit, 690 * unit) + // context.stroke(); + //---文字--- context.setFillStyle("black") context.setFontSize(24 * unit) @@ -6348,10 +6350,10 @@ Page({ break } //---画线--- - context.setLineWidth(1 * unit) - context.moveTo(32 * unit, 690 * unit) - context.lineTo(520 * unit, 690 * unit) - context.stroke(); + // context.setLineWidth(1 * unit) + // context.moveTo(32 * unit, 690 * unit) + // context.lineTo(520 * unit, 690 * unit) + // context.stroke(); //---文字--- context.setFillStyle("black") context.setFontSize(24 * unit) @@ -6395,10 +6397,10 @@ Page({ case -1: //秒杀商品的展示 //---画线--- - context.setLineWidth(1 * unit) - context.moveTo(32 * unit, 670 * unit) - context.lineTo(520 * unit, 670 * unit) - context.stroke(); + // context.setLineWidth(1 * unit) + // context.moveTo(32 * unit, 670 * unit) + // context.lineTo(520 * unit, 670 * unit) + // context.stroke(); context.setFillStyle("black")