Commit a1be49929d9646e9d2e79bae59d328df028e24ac

Authored by 前端开发-罗建龙
1 parent 01648a78

优化服务项目分享盆友圈图片

packageA/pages/goodsInfo/goodsInfo.js
@@ -3189,7 +3189,8 @@ Page({ @@ -3189,7 +3189,8 @@ Page({
3189 3189
3190 } 3190 }
3191 var title= th.data.data.goods_name; 3191 var title= th.data.data.goods_name;
3192 - var img=th.data.data.original_img; 3192 + // var img=th.data.data.original_img;
  3193 + var img=th.data.iurl+th.data.data.image_url;
3193 if(th.data.prom_type==6){ 3194 if(th.data.prom_type==6){
3194 title=th.data.prom_act.share_title; 3195 title=th.data.prom_act.share_title;
3195 img=th.data.iurl+th.data.prom_act.share_imgurl; 3196 img=th.data.iurl+th.data.prom_act.share_imgurl;
@@ -3208,6 +3209,13 @@ Page({ @@ -3208,6 +3209,13 @@ Page({
3208 url+="&room_id="+getApp().globalData.room_id+"&room_user_share=1"; 3209 url+="&room_id="+getApp().globalData.room_id+"&room_user_share=1";
3209 } 3210 }
3210 3211
  3212 + // 如果服务卡参加秒杀活动,且后台设置了分享标题和分享图片
  3213 + if(th.data.prom_type == 1) {
  3214 + if(th.data.sele_g && th.data.sele_g.share_imgurl) {
  3215 + img = th.data.iurl + th.data.sele_g.share_imgurl;
  3216 + };
  3217 + };
  3218 +
3211 return { 3219 return {
3212 title:price + "元 " +title, 3220 title:price + "元 " +title,
3213 imageUrl:img, 3221 imageUrl:img,