|
|
@@ -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) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |