Commit d740dd9553830adb8195619fee3d3e87b82442a4

Authored by 泉州测试
1 parent 0a4144f1

商品详情页分享

packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
... ... @@ -2384,54 +2384,19 @@ Page({
2384 2384 }
2385 2385 var title = th.data.sele_g.goods_name;
2386 2386 var img = th.data.sele_g.original_img;
2387   - if (th.data.prom_type == 6 || th.data.prom_type == 1 || th.data.prom_type == 4) {
2388   - title = th.data.prom_act.share_title;
2389   - if (!title) title = th.data.prom_act.title;
2390   - if (th.data.prom_type == 4) title = th.data.prom_act.name;
2391 2387  
2392   - if (th.data.prom_act.share_imgurl)
2393   - img = th.data.iurl + th.data.prom_act.share_imgurl;
2394   - }
2395   -
2396   -
2397   - var url = "/pages/goods/goodsInfo/goodsInfo?goods_id="
2398   - + th.data.sele_g.goods_id+"&prom_type="+th.data.sele_g.prom_type+"&prom_id="+th.data.sele_g.prom_id;
  2388 + var url = `packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=${th.data.sele_g.goods_id}&prom_type=9&group_id=${th.data.group_id}`; //当前页面url
2399 2389 if (getApp().globalData.user_id) {
2400 2390 url += "&first_leader=" + getApp().globalData.user_id;
2401 2391 }
2402 2392  
2403   - //-- 如果房间分享,且不是会员分享的 --
2404   - if (getApp().globalData.room_id &&
2405   - th.data.sele_g.goods_id == getApp().globalData.room_goods_id &&
2406   - !getApp().globalData.room_user_share
2407   - ) {
2408   - url += "&room_id=" + getApp().globalData.room_id + "&room_user_share=1";
2409   - }
  2393 + console.log(url)
2410 2394  
2411 2395 var ob = {
2412 2396 title: price + "元 " + title,
2413 2397 path: url,
2414 2398 imageUrl: img,
2415 2399 };
2416   - if (th.data.prom_type == 6) {
2417   - title += '\n' + th.data.prom_act.share_remark;
2418   - ob.title = title;
2419   - ob.desc = th.data.prom_act.share_remark;
2420   - }
2421   -
2422   - //如果是积分购的时候
2423   - if (th.data.prom_type == 4) {
2424   - var name = th.data.prom_act.name;
2425   - //-- 积分购的 --
2426   - var pri0 = th.data.prom_act.addmoney;
2427   - var integral = th.data.prom_act.integral;
2428   - var text = "";
2429   - if (integral) { text = integral + "积分"; }
2430   - if (pri0 && integral) { text += "+"; }
2431   - if (pri0) { text += "¥" + pri0; }
2432   -
2433   - ob.title = text + " " + name;
2434   - }
2435 2400  
2436 2401 //-- 页面不能刷新 --
2437 2402 this.data.show_prew_img=1;
... ...