Commit 5b7042f55d6d8b04d68bca143da15047d5cde053
1 parent
b59a2af0
oa单朋友圈分享
Showing
3 changed files
with
23 additions
and
5 deletions
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
... | ... | @@ -6857,10 +6857,11 @@ Page({ |
6857 | 6857 | if (getApp().globalData.groupchat_id) { |
6858 | 6858 | pagePath+="&groupchat_id="+getApp().globalData.groupchat_id |
6859 | 6859 | } |
6860 | - | |
6860 | + let imgPath = this.data.iurl + this.data.luckGoInfo.original_img; | |
6861 | 6861 | return { |
6862 | 6862 | title: this.data.data.goods_name + '-' + store_name, |
6863 | - imageUrl: this.data.gallery[0].image_url, | |
6863 | + // imageUrl: this.data.gallery[0].image_url, | |
6864 | + imageUrl: imgPath, | |
6864 | 6865 | query: pagePath |
6865 | 6866 | } |
6866 | 6867 | }, | ... | ... |
packageC/pages/presell/goodsInfo/goodsInfo.js
... | ... | @@ -4492,11 +4492,12 @@ Page({ |
4492 | 4492 | if (getApp().globalData.groupchat_id) { |
4493 | 4493 | url+="&groupchat_id="+getApp().globalData.groupchat_id |
4494 | 4494 | } |
4495 | - | |
4495 | + let img = this.data.data.original_img; | |
4496 | 4496 | return { |
4497 | 4497 | title: this.data.data.goods_name + '-' + store_name, |
4498 | 4498 | query: 'first_leader='+user_id+url, |
4499 | - imageUrl: this.data.gallery[0].image_url, | |
4499 | + // imageUrl: this.data.gallery[0].image_url, | |
4500 | + imageUrl: img | |
4500 | 4501 | } |
4501 | 4502 | }, |
4502 | 4503 | ... | ... |
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -8004,9 +8004,25 @@ Page({ |
8004 | 8004 | url += "&groupchat_id=" + getApp().globalData.groupchat_id |
8005 | 8005 | } |
8006 | 8006 | |
8007 | + //获取有活动的取活动图片,没有活动的取主图 | |
8008 | + var img = th.data.sele_g.original_img; | |
8009 | + if(th.data.new_share_imgurl){ | |
8010 | + img = th.data.iurl + th.data.new_share_imgurl | |
8011 | + } | |
8012 | + if (th.data.prom_type == 6 || th.data.prom_type == 1 || th.data.prom_type == 4) { | |
8013 | + // title = th.data.prom_act.share_title; | |
8014 | + // if (!title) title = th.data.prom_act.title; | |
8015 | + // if (th.data.prom_type == 4) title = th.data.prom_act.name; | |
8016 | + | |
8017 | + if (th.data.prom_act.share_imgurl) | |
8018 | + img = th.data.iurl + th.data.prom_act.share_imgurl; | |
8019 | + } | |
8020 | + let user_id = getApp().globalData.user_id | |
8021 | + console.error(img); | |
8007 | 8022 | return { |
8008 | 8023 | title: this.data.data.goods_name + '-' + store_name, |
8009 | - imageUrl: this.data.gallery[0].image_url, | |
8024 | + // imageUrl: this.data.gallery[0].image_url, | |
8025 | + imageUrl: img, | |
8010 | 8026 | query: 'first_leader=' + user_id + url |
8011 | 8027 | } |
8012 | 8028 | }, | ... | ... |