Commit 936600b2f731b4df516e76c2af9e1d839ab40a96

Authored by yvan.ni
1 parent f8ade779

1。 分享海报默认海报时的bug修复

pages/goods/goodsInfo/goodsInfo.js
... ... @@ -3279,7 +3279,7 @@ Page({
3279 3279 }
3280 3280 })
3281 3281 },
3282   -
  3282 +
3283 3283 //--定义的保存图片方法,分享团---
3284 3284 saveImageToPhotosAlbum: function() {
3285 3285 //--先判断会员状态--
... ... @@ -3338,7 +3338,7 @@ Page({
3338 3338 context.drawImage(pg_path, 0, 0, 554 * unit, 899 * unit);
3339 3339  
3340 3340 //-- 是自定义海报的情况下 --
3341   - if(th.data.poster){
  3341 + if(th.data.poster && parseInt(th.data.poster.style)==2){
3342 3342 //在线上分享人的情况下
3343 3343 if(parseInt(th.data.poster.show_headpic)){
3344 3344 //获取坐标
... ... @@ -3358,7 +3358,7 @@ Page({
3358 3358 context.setLineJoin('round'); //交点设置成圆角
3359 3359 context.setFillStyle("white")
3360 3360 context.fillText('强烈推荐', x1 + width+8*unit, y1-1*unit);
3361   - }
  3361 + }
3362 3362 }else{
3363 3363 //--昵称---
3364 3364 context.setFontSize(24 * unit)
... ... @@ -3408,8 +3408,7 @@ Page({
3408 3408 switch (type) {
3409 3409 case 0: //普通商品的展示
3410 3410 //中间的几个字
3411   - if(th.data.poster ){
3412   -
  3411 + if(th.data.poster && parseInt(th.data.poster.style)==2 ){
3413 3412 if(parseInt(th.data.poster.show_quality)){
3414 3413 var g_path = "../../../images/share/s_gou.png";
3415 3414 context.drawImage(g_path, 56 * unit, 670 * unit, 22 * unit, 22 * unit);
... ... @@ -3592,7 +3591,7 @@ Page({
3592 3591  
3593 3592  
3594 3593 //--- 如果是自定义海报的时候 ---
3595   - if(th.data.poster){
  3594 + if(th.data.poster && parseInt(th.data.poster.style)==2){
3596 3595  
3597 3596 //如果显示会员信息的话
3598 3597 if(parseInt(th.data.poster.show_headpic)){
... ...
pages/team/team_success/team_success.js
... ... @@ -413,7 +413,7 @@ Page({
413 413 context.drawImage(pg_path, 0, 0, 554 * unit, 899 * unit);
414 414  
415 415 //-- 是自定义海报的情况下 --
416   - if(th.data.poster){
  416 + if(th.data.poster && parseInt(th.data.poster.style)==2){
417 417 //在线上分享人的情况下
418 418 if(parseInt(th.data.poster.show_headpic)){
419 419 //获取坐标
... ... @@ -585,8 +585,8 @@ Page({
585 585 }
586 586  
587 587 //--- 如果是自定义海报的时候 ---
588   - if(th.data.poster){
589   -
  588 + if(th.data.poster && parseInt(th.data.poster.style)==2){
  589 +
590 590 //如果显示会员信息的话
591 591 if(parseInt(th.data.poster.show_headpic)){
592 592 //获取坐标
... ...