Commit fb0550972fc8f94fe027c84909cadc359a47faa8
1 parent
2cf04b9f
去掉画线
Showing
3 changed files
with
48 additions
and
46 deletions
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
... | ... | @@ -5288,20 +5288,20 @@ Page({ |
5288 | 5288 | //---自定义海报 产品质量保证 |
5289 | 5289 | if(th.data.share_b_img && th.data.poster.show_quality==1 ){ |
5290 | 5290 | var g_path = "../../../../images/share/s_gou.png"; |
5291 | - context.drawImage(g_path, 56 * unit, 650 * unit, 22 * unit, 22 * unit); | |
5291 | + context.drawImage(g_path, 56 * unit, 658 * unit, 22 * unit, 22 * unit); | |
5292 | 5292 | context.setFillStyle("red") |
5293 | 5293 | context.setFontSize(18 * unit) |
5294 | - context.fillText("正品保证", 84 * unit, 670 * unit); | |
5294 | + context.fillText("正品保证", 84 * unit, 678 * unit); | |
5295 | 5295 | |
5296 | - context.drawImage(g_path, 218 * unit, 650 * unit, 22 * unit, 22 * unit); | |
5296 | + context.drawImage(g_path, 218 * unit, 658 * unit, 22 * unit, 22 * unit); | |
5297 | 5297 | context.setFillStyle("red") |
5298 | 5298 | context.setFontSize(18 * unit) |
5299 | - context.fillText("纯实体店", 246 * unit, 670 * unit); | |
5299 | + context.fillText("纯实体店", 246 * unit, 678 * unit); | |
5300 | 5300 | |
5301 | - context.drawImage(g_path, 388 * unit, 650 * unit, 22 * unit, 22 * unit); | |
5301 | + context.drawImage(g_path, 388 * unit, 658 * unit, 22 * unit, 22 * unit); | |
5302 | 5302 | context.setFillStyle("red") |
5303 | 5303 | context.setFontSize(18 * unit) |
5304 | - context.fillText("官方验证", 420 * unit, 670 * unit); | |
5304 | + context.fillText("官方验证", 420 * unit, 678 * unit); | |
5305 | 5305 | |
5306 | 5306 | } |
5307 | 5307 | |
... | ... | @@ -5312,10 +5312,10 @@ Page({ |
5312 | 5312 | |
5313 | 5313 | |
5314 | 5314 | //---画线--- |
5315 | - context.setLineWidth(1 * unit) | |
5316 | - context.moveTo(32 * unit, 680 * unit) | |
5317 | - context.lineTo(520 * unit, 680 * unit) | |
5318 | - context.stroke(); | |
5315 | + // context.setLineWidth(1 * unit) | |
5316 | + // context.moveTo(32 * unit, 680 * unit) | |
5317 | + // context.lineTo(520 * unit, 680 * unit) | |
5318 | + // context.stroke(); | |
5319 | 5319 | |
5320 | 5320 | //---文字--- |
5321 | 5321 | context.setFillStyle("black") |
... | ... | @@ -5431,7 +5431,7 @@ Page({ |
5431 | 5431 | }; |
5432 | 5432 | |
5433 | 5433 | |
5434 | - if(th.data.poster.show_time==1){ | |
5434 | + if(th.data.poster && th.data.poster.show_time==1){ | |
5435 | 5435 | var act_time = ''; |
5436 | 5436 | act_time="截止时间:"+ ut.formatTime(th.data.luckGoInfo.end_time); |
5437 | 5437 | context.setFillStyle("red") | ... | ... |
packageC/pages/presell/goodsInfo/goodsInfo.js
... | ... | @@ -2986,7 +2986,7 @@ Page({ |
2986 | 2986 | } |
2987 | 2987 | |
2988 | 2988 | var share_title = th.data.presellForm.share_title; |
2989 | - share_title ? share_title : th.data.data.goods_name; | |
2989 | + share_title=share_title ? share_title : th.data.data.goods_name; | |
2990 | 2990 | |
2991 | 2991 | //---产品名称--- |
2992 | 2992 | //文本换行 参数:1、canvas对象,2、文本 3、距离左侧的距离 4、距离顶部的距离 5、6、文本的宽度 |
... | ... | @@ -3062,10 +3062,10 @@ Page({ |
3062 | 3062 | } |
3063 | 3063 | |
3064 | 3064 | //---画线--- |
3065 | - context.setLineWidth(1 * unit) | |
3066 | - context.moveTo(32 * unit, 662 * unit) | |
3067 | - context.lineTo(520 * unit, 662 * unit) | |
3068 | - context.stroke(); | |
3065 | + // context.setLineWidth(1 * unit) | |
3066 | + // context.moveTo(32 * unit, 662 * unit) | |
3067 | + // context.lineTo(520 * unit, 662 * unit) | |
3068 | + // context.stroke(); | |
3069 | 3069 | |
3070 | 3070 | //---文字--- |
3071 | 3071 | context.setFillStyle("black") | ... | ... |
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -6113,20 +6113,20 @@ Page({ |
6113 | 6113 | //---自定义海报 产品质量保证 |
6114 | 6114 | if(th.data.share_b_img && th.data.poster.show_quality==1 && type!=4){ |
6115 | 6115 | var g_path = "../../../images/share/s_gou.png"; |
6116 | - context.drawImage(g_path, 56 * unit, 640 * unit, 22 * unit, 22 * unit); | |
6116 | + context.drawImage(g_path, 56 * unit, 644 * unit, 22 * unit, 22 * unit); | |
6117 | 6117 | context.setFillStyle("red") |
6118 | 6118 | context.setFontSize(18 * unit) |
6119 | - context.fillText("正品保证", 84 * unit, 660 * unit); | |
6119 | + context.fillText("正品保证", 84 * unit, 664 * unit); | |
6120 | 6120 | |
6121 | - context.drawImage(g_path, 218 * unit, 640 * unit, 22 * unit, 22 * unit); | |
6121 | + context.drawImage(g_path, 218 * unit, 644 * unit, 22 * unit, 22 * unit); | |
6122 | 6122 | context.setFillStyle("red") |
6123 | 6123 | context.setFontSize(18 * unit) |
6124 | - context.fillText("纯实体店", 246 * unit, 660 * unit); | |
6124 | + context.fillText("纯实体店", 246 * unit, 664 * unit); | |
6125 | 6125 | |
6126 | - context.drawImage(g_path, 388 * unit, 640 * unit, 22 * unit, 22 * unit); | |
6126 | + context.drawImage(g_path, 388 * unit, 644 * unit, 22 * unit, 22 * unit); | |
6127 | 6127 | context.setFillStyle("red") |
6128 | 6128 | context.setFontSize(18 * unit) |
6129 | - context.fillText("官方验证", 420 * unit, 660 * unit); | |
6129 | + context.fillText("官方验证", 420 * unit, 664 * unit); | |
6130 | 6130 | |
6131 | 6131 | } |
6132 | 6132 | //-------大图后面就不一样了----------- |
... | ... | @@ -6136,10 +6136,11 @@ Page({ |
6136 | 6136 | break |
6137 | 6137 | } |
6138 | 6138 | //---画线--- |
6139 | - context.setLineWidth(1 * unit) | |
6140 | - context.moveTo(32 * unit, 710 * unit) | |
6141 | - context.lineTo(520 * unit, 710 * unit) | |
6142 | - context.stroke(); | |
6139 | + // context.setLineWidth(1 * unit) | |
6140 | + // context.moveTo(32 * unit, 710 * unit) | |
6141 | + // context.lineTo(520 * unit, 710 * unit) | |
6142 | + // context.stroke(); | |
6143 | + | |
6143 | 6144 | //---文字--- |
6144 | 6145 | context.setFillStyle("black") |
6145 | 6146 | context.setFontSize(22 * unit) |
... | ... | @@ -6214,10 +6215,10 @@ Page({ |
6214 | 6215 | |
6215 | 6216 | |
6216 | 6217 | //---画线--- |
6217 | - context.setLineWidth(1 * unit) | |
6218 | - context.moveTo(32 * unit, 710 * unit) | |
6219 | - context.lineTo(520 * unit, 710 * unit) | |
6220 | - context.stroke(); | |
6218 | + // context.setLineWidth(1 * unit) | |
6219 | + // context.moveTo(32 * unit, 710 * unit) | |
6220 | + // context.lineTo(520 * unit, 710 * unit) | |
6221 | + // context.stroke(); | |
6221 | 6222 | |
6222 | 6223 | //---文字--- |
6223 | 6224 | context.setFillStyle("black") |
... | ... | @@ -6259,10 +6260,10 @@ Page({ |
6259 | 6260 | break |
6260 | 6261 | } |
6261 | 6262 | //---画线--- |
6262 | - context.setLineWidth(1 * unit) | |
6263 | - context.moveTo(32 * unit, 670 * unit) | |
6264 | - context.lineTo(520 * unit, 670 * unit) | |
6265 | - context.stroke(); | |
6263 | + // context.setLineWidth(1 * unit) | |
6264 | + // context.moveTo(32 * unit, 670 * unit) | |
6265 | + // context.lineTo(520 * unit, 670 * unit) | |
6266 | + // context.stroke(); | |
6266 | 6267 | |
6267 | 6268 | //画秒杀的图片 |
6268 | 6269 | if(th.data.is_share_text){ |
... | ... | @@ -6300,10 +6301,11 @@ Page({ |
6300 | 6301 | break |
6301 | 6302 | } |
6302 | 6303 | //---画线--- |
6303 | - context.setLineWidth(1 * unit) | |
6304 | - context.moveTo(32 * unit, 690 * unit) | |
6305 | - context.lineTo(520 * unit, 690 * unit) | |
6306 | - context.stroke(); | |
6304 | + // context.setLineWidth(1 * unit) | |
6305 | + // context.moveTo(32 * unit, 690 * unit) | |
6306 | + // context.lineTo(520 * unit, 690 * unit) | |
6307 | + // context.stroke(); | |
6308 | + | |
6307 | 6309 | //---文字--- |
6308 | 6310 | context.setFillStyle("black") |
6309 | 6311 | context.setFontSize(24 * unit) |
... | ... | @@ -6348,10 +6350,10 @@ Page({ |
6348 | 6350 | break |
6349 | 6351 | } |
6350 | 6352 | //---画线--- |
6351 | - context.setLineWidth(1 * unit) | |
6352 | - context.moveTo(32 * unit, 690 * unit) | |
6353 | - context.lineTo(520 * unit, 690 * unit) | |
6354 | - context.stroke(); | |
6353 | + // context.setLineWidth(1 * unit) | |
6354 | + // context.moveTo(32 * unit, 690 * unit) | |
6355 | + // context.lineTo(520 * unit, 690 * unit) | |
6356 | + // context.stroke(); | |
6355 | 6357 | //---文字--- |
6356 | 6358 | context.setFillStyle("black") |
6357 | 6359 | context.setFontSize(24 * unit) |
... | ... | @@ -6395,10 +6397,10 @@ Page({ |
6395 | 6397 | |
6396 | 6398 | case -1: //秒杀商品的展示 |
6397 | 6399 | //---画线--- |
6398 | - context.setLineWidth(1 * unit) | |
6399 | - context.moveTo(32 * unit, 670 * unit) | |
6400 | - context.lineTo(520 * unit, 670 * unit) | |
6401 | - context.stroke(); | |
6400 | + // context.setLineWidth(1 * unit) | |
6401 | + // context.moveTo(32 * unit, 670 * unit) | |
6402 | + // context.lineTo(520 * unit, 670 * unit) | |
6403 | + // context.stroke(); | |
6402 | 6404 | |
6403 | 6405 | |
6404 | 6406 | context.setFillStyle("black") | ... | ... |