diff --git a/pages/passCar/passCar.js b/pages/passCar/passCar.js index 2dbdd9d..e7f50bf 100644 --- a/pages/passCar/passCar.js +++ b/pages/passCar/passCar.js @@ -578,19 +578,5 @@ Page({ let that = this; that.initUsrCarList("flags"); wx.stopPullDownRefresh(); - }, - // 用户点击右上角分享 - onShareAppMessage: function() { - return { - title: this.data.title, - desc: this.data.desc, - success: function(res) { - wx.showToast({ - title: "分享成功", - duration: 1000, - icon: "success" - }) - } - } } }); \ No newline at end of file diff --git a/pages/spellGroup/spellGroup.js b/pages/spellGroup/spellGroup.js index 7be5375..bda751a 100644 --- a/pages/spellGroup/spellGroup.js +++ b/pages/spellGroup/spellGroup.js @@ -182,31 +182,6 @@ Page({ }) }) }, - /** - * 用户点击右上角分享 - */ - // paramData - onShareAppMessage: function (res) { - if (res.from === 'button') { - console.log(res, 3333333333333333333333) - // 来自页面内转发按钮 - let _this = this; - let data = res.target.dataset.data - return { - title: data.nickName + '超值推荐的' + data.title, - path: `/pages/index/index?couponId=${data.couponId}&orderGroupId=${data.orderGroupId}&couponChannelId=${data.couponChannelId}&orderId=${data.orderId}&avatarUrl=${_this.data.avatarUrl}&nickName=${_this.data.nickName}`, - imageUrl: data.coverImg, - success: function (res) { - // 转发成功 - }, - fail: function (res) { - // 转发失败 - } - } - } else { - console.log(res, 444444444444444444) - } - }, getList(pageNum, flag) { var that = this; console.log(pageNum)