diff --git a/packageA/pages/activity_share/activity_share.js b/packageA/pages/activity_share/activity_share.js index 4f668a3..205de3b 100644 --- a/packageA/pages/activity_share/activity_share.js +++ b/packageA/pages/activity_share/activity_share.js @@ -329,7 +329,21 @@ Page({ th.setData({share_hidden:1,share_good:null}); var ind=0;//促销 - if(th.data.currentIndex==2){ ind=5;} + if(th.data.currentIndex==2){ + ind=5; + //优惠促销单独处理 + if (th.data.currentIndex2==2) { + let yh_url = `/pages/goods/goodsList/goodsList?prom_type=3&prom_id=${hui_active.id}` + if(getApp().globalData.user_id){ + yh_url+="?first_leader="+getApp().globalData.user_id; + } + ob.path = yh_url + if (hui_active.img_url) { + ob.imageUrl = th.data.url + hui_active.img_url + } + + } + } //插入活动 th.insert_act_share(title,hui_active.id,ind,null,null);