From d740dd9553830adb8195619fee3d3e87b82442a4 Mon Sep 17 00:00:00 2001 From: banche Date: Wed, 8 Dec 2021 15:03:54 +0800 Subject: [PATCH] 商品详情页分享 --- packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) diff --git a/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js b/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js index 012270e..e0c70f9 100644 --- a/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js +++ b/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js @@ -2384,54 +2384,19 @@ Page({ } var title = th.data.sele_g.goods_name; var img = th.data.sele_g.original_img; - if (th.data.prom_type == 6 || th.data.prom_type == 1 || th.data.prom_type == 4) { - title = th.data.prom_act.share_title; - if (!title) title = th.data.prom_act.title; - if (th.data.prom_type == 4) title = th.data.prom_act.name; - if (th.data.prom_act.share_imgurl) - img = th.data.iurl + th.data.prom_act.share_imgurl; - } - - - var url = "/pages/goods/goodsInfo/goodsInfo?goods_id=" - + th.data.sele_g.goods_id+"&prom_type="+th.data.sele_g.prom_type+"&prom_id="+th.data.sele_g.prom_id; + 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 if (getApp().globalData.user_id) { url += "&first_leader=" + getApp().globalData.user_id; } - //-- 如果房间分享,且不是会员分享的 -- - if (getApp().globalData.room_id && - th.data.sele_g.goods_id == getApp().globalData.room_goods_id && - !getApp().globalData.room_user_share - ) { - url += "&room_id=" + getApp().globalData.room_id + "&room_user_share=1"; - } + console.log(url) var ob = { title: price + "元 " + title, path: url, imageUrl: img, }; - if (th.data.prom_type == 6) { - title += '\n' + th.data.prom_act.share_remark; - ob.title = title; - ob.desc = th.data.prom_act.share_remark; - } - - //如果是积分购的时候 - if (th.data.prom_type == 4) { - var name = th.data.prom_act.name; - //-- 积分购的 -- - var pri0 = th.data.prom_act.addmoney; - var integral = th.data.prom_act.integral; - var text = ""; - if (integral) { text = integral + "积分"; } - if (pri0 && integral) { text += "+"; } - if (pri0) { text += "¥" + pri0; } - - ob.title = text + " " + name; - } //-- 页面不能刷新 -- this.data.show_prew_img=1; -- libgit2 0.21.4