diff --git a/pages/joinFrDpell/index.js b/pages/joinFrDpell/index.js index 1b91b8e..b0ce06f 100644 --- a/pages/joinFrDpell/index.js +++ b/pages/joinFrDpell/index.js @@ -222,9 +222,7 @@ Page({ /** * 拼团订单 */ - if (orderGroupId == 0) { - data.orderGroupId = orderGroupId - } + data.orderGroupId = orderGroupId var that = this; Http.post({ url: config.api.checkPhoneStatus, diff --git a/pages/spellDetail/index.js b/pages/spellDetail/index.js index 31678cd..fcb434f 100644 --- a/pages/spellDetail/index.js +++ b/pages/spellDetail/index.js @@ -30,7 +30,9 @@ Page({ this.setData({ paramData:options }) - this.getDetail(options) + this.getDetail(options); + // 关闭来自于左上角的分享 + wx.hideShareMenu() }, /** * 拼团状态字段转换 @@ -158,7 +160,25 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { - + // paramData + onShareAppMessage: function (res) { + if (res.from === 'button') { + console.log(res, 3333333333333333333333) + // 来自页面内转发按钮 + let _this = this; + return { + title: '拼团', + path: `/pages/index/index?couponId=${this.data.couponId}&orderGroupId=${this.data.orderGroupId}&couponChannelId=${this.data.couponChannelId}`, + imageUrl: this.data.data.coverImg, + success: function (res) { + // 转发成功 + }, + fail: function (res) { + // 转发失败 + } + } + } else { + console.log(res, 444444444444444444) + } } }) \ No newline at end of file