|
|
@@ -75,17 +75,23 @@ Page({ |
|
|
|
// }) |
|
|
|
}, |
|
|
|
onShareAppMessage: function (res) { |
|
|
|
let _this = this; |
|
|
|
return { |
|
|
|
title: '领取卡', |
|
|
|
path: '/pages/index/index?couponChannelId=' + this.data.cardDetail.couponChannelId + '&cuserId=' + this.data.cardDetail.ownerId + '&couponId=' + this.data.cardDetail.couponId + '&coverImg=' + this.data.cardDetail.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.cardDetail.id + '&updateDate=' + this.data.cardDetail.updateDate, |
|
|
|
imageUrl: this.data.cardDetail.coverImg, |
|
|
|
success: function (res) { |
|
|
|
// 转发成功 |
|
|
|
}, |
|
|
|
fail: function (res) { |
|
|
|
// 转发失败 |
|
|
|
if (res.from === 'button') { |
|
|
|
console.log(res,3333333333333333333333) |
|
|
|
// 来自页面内转发按钮 |
|
|
|
let _this = this; |
|
|
|
return { |
|
|
|
title: '领取卡', |
|
|
|
path: '/pages/index/index?couponChannelId=' + this.data.cardDetail.couponChannelId + '&cuserId=' + this.data.cardDetail.ownerId + '&couponId=' + this.data.cardDetail.couponId + '&coverImg=' + this.data.cardDetail.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.cardDetail.id + '&updateDate=' + this.data.cardDetail.updateDate, |
|
|
|
imageUrl: this.data.cardDetail.coverImg, |
|
|
|
success: function (res) { |
|
|
|
// 转发成功 |
|
|
|
}, |
|
|
|
fail: function (res) { |
|
|
|
// 转发失败 |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
console.log(res, 444444444444444444) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 点击查看更多 |
|
|
@@ -118,6 +124,7 @@ Page({ |
|
|
|
showIndexReuturn:true |
|
|
|
}) |
|
|
|
} |
|
|
|
wx.hideShareMenu() |
|
|
|
}, |
|
|
|
cardpayList: function(cardId) { |
|
|
|
let that = this; |
|
|
|