Commit 37b8fc3baeb3283fa86dfb89de05120f0cf766a8
1 parent
06dd7e9c
活动专区-分享
Showing
1 changed file
with
15 additions
and
1 deletions
packageA/pages/activity_share/activity_share.js
| @@ -329,7 +329,21 @@ Page({ | @@ -329,7 +329,21 @@ Page({ | ||
| 329 | th.setData({share_hidden:1,share_good:null}); | 329 | th.setData({share_hidden:1,share_good:null}); |
| 330 | 330 | ||
| 331 | var ind=0;//促销 | 331 | var ind=0;//促销 |
| 332 | - if(th.data.currentIndex==2){ ind=5;} | 332 | + if(th.data.currentIndex==2){ |
| 333 | + ind=5; | ||
| 334 | + //优惠促销单独处理 | ||
| 335 | + if (th.data.currentIndex2==2) { | ||
| 336 | + let yh_url = `/pages/goods/goodsList/goodsList?prom_type=3&prom_id=${hui_active.id}` | ||
| 337 | + if(getApp().globalData.user_id){ | ||
| 338 | + yh_url+="?first_leader="+getApp().globalData.user_id; | ||
| 339 | + } | ||
| 340 | + ob.path = yh_url | ||
| 341 | + if (hui_active.img_url) { | ||
| 342 | + ob.imageUrl = th.data.url + hui_active.img_url | ||
| 343 | + } | ||
| 344 | + | ||
| 345 | + } | ||
| 346 | + } | ||
| 333 | 347 | ||
| 334 | //插入活动 | 348 | //插入活动 |
| 335 | th.insert_act_share(title,hui_active.id,ind,null,null); | 349 | th.insert_act_share(title,hui_active.id,ind,null,null); |