Commit f89865a68bf3983734f18258a717ca64fbb592c4
Merge branch 'dev_oa_luo12' into dev
Showing
1 changed file
with
14 additions
and
1 deletions
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -272,6 +272,7 @@ Page({ |
272 | 272 | sec_i: -1, //选中分类门店 下标 |
273 | 273 | cx_prom_group: [], //促销活动,用于显示和判断默认要用什么促销活动 |
274 | 274 | showFold:true, |
275 | + new_share_imgurl:'', //普通商品分享图片 | |
275 | 276 | }, |
276 | 277 | |
277 | 278 | //------初始化加载---------- |
... | ... | @@ -2926,8 +2927,12 @@ Page({ |
2926 | 2927 | price = th.data.prom_act.price; |
2927 | 2928 | |
2928 | 2929 | } |
2930 | + | |
2929 | 2931 | var title = th.data.sele_g.goods_name; |
2930 | 2932 | var img = th.data.sele_g.original_img; |
2933 | + if(th.data.new_share_imgurl){ | |
2934 | + img = th.data.iurl + th.data.new_share_imgurl | |
2935 | + } | |
2931 | 2936 | if (th.data.prom_type == 6 || th.data.prom_type == 1 || th.data.prom_type == 4) { |
2932 | 2937 | title = th.data.prom_act.share_title; |
2933 | 2938 | if (!title) title = th.data.prom_act.title; |
... | ... | @@ -3035,7 +3040,11 @@ Page({ |
3035 | 3040 | if (e.data.code == 0) arrdata = e.data.data.pageData; |
3036 | 3041 | }) |
3037 | 3042 | if (!arrdata) return false; |
3038 | - | |
3043 | + if(arrdata[0]){ | |
3044 | + tt.setData({ | |
3045 | + new_share_imgurl:arrdata[0].share_imgurl | |
3046 | + }) | |
3047 | + } | |
3039 | 3048 | var arrsku = new Array(); |
3040 | 3049 | var gitem = null; |
3041 | 3050 | var gb = 1, |
... | ... | @@ -6650,6 +6659,9 @@ Page({ |
6650 | 6659 | if ((this.data.prom_type == 1 || this.data.prom_type == 6) && this.data.prom_act.share_imgurl) { |
6651 | 6660 | img_url = this.data.iurl + this.data.prom_act.share_imgurl; |
6652 | 6661 | } |
6662 | + if (this.data.new_share_imgurl) { | |
6663 | + img_url=this.data.iurl + this.data.new_share_imgurl | |
6664 | + } | |
6653 | 6665 | |
6654 | 6666 | //获取商品是分享图信息 |
6655 | 6667 | wx.getImageInfo({ |
... | ... | @@ -7894,6 +7906,7 @@ Page({ |
7894 | 7906 | }, |
7895 | 7907 | |
7896 | 7908 | send() { |
7909 | + | |
7897 | 7910 | this.setData({ |
7898 | 7911 | share_hidden: false, |
7899 | 7912 | }); | ... | ... |