diff --git a/packageB/pages/zuhegou/index/index.js b/packageB/pages/zuhegou/index/index.js index 5bb4960..6caec3f 100644 --- a/packageB/pages/zuhegou/index/index.js +++ b/packageB/pages/zuhegou/index/index.js @@ -124,6 +124,9 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { + + console.log(options,111); + self = this; var the_id = options.id; if(options.title) { @@ -131,7 +134,8 @@ Page({ title: options.title, }); }; - var first_leader=''; + var first_leader=options.first_leader; + //--如果tg_id是空的话,分享回来-- if (the_id == undefined || the_id == null || the_id == "") { var gid_str = decodeURIComponent(options.scene); @@ -422,6 +426,18 @@ Page({ * 用户点击右上角分享 */ onShareAppMessage: function () { + var title = this.data.act.name; + var url= "/packageB/pages/zuhegou/index/index?id="+this.data.act.id; + if (getApp().globalData.user_id) { + url += "&first_leader=" + getApp().globalData.user_id; + } + var ob = { + title:title, + path: url, + }; + if(this.data.act.img_url) + ob.imageUrl=this.data.iurl+this.data.act.img_url; + return ob; }, /** diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 527dfd7..ad88c50 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -5873,8 +5873,6 @@ Page({ getApp().request.promiseGet(url, {data:req_data}).then(res=>{ if(res.data.code==0 && res.data.data && res.data.data.length){ th.setData({more_flash:res.data.data}); - }else{ - func(false); } }) },