Commit f89865a68bf3983734f18258a717ca64fbb592c4

Authored by WXD-SEASON\season
2 parents e682e1c9 edf14969

Merge branch 'dev_oa_luo12' into dev

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