浏览代码

关闭订单详情页面转发按钮

tags/富茂链客4.1.0
刘晖 6 年前
父节点
当前提交
6ff393a6a1
共有 1 个文件被更改,包括 17 次插入10 次删除
  1. +17
    -10
      pages/order/detail/index.js

+ 17
- 10
pages/order/detail/index.js 查看文件

@@ -56,17 +56,23 @@ Page({
})
},
onShareAppMessage: function (res) {
let _this = this;
return {
title: '领取卡',
path: '/pages/index/index?couponChannelId=' + this.data.order.couponChannelId + '&cuserId=' + this.data.order.cuserId + '&couponId=' + this.data.order.productId + '&coverImg=' + this.data.order.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.order.couponOrderId + '&updateDate=' + this.data.order.updateDate,
imageUrl: this.data.order.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.order.couponChannelId + '&cuserId=' + this.data.order.cuserId + '&couponId=' + this.data.order.productId + '&coverImg=' + this.data.order.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.order.couponOrderId + '&updateDate=' + this.data.order.updateDate,
imageUrl: this.data.order.coverImg,
success: function (res) {
// 转发成功
},
fail: function (res) {
// 转发失败
}
}
} else {
console.log(res, 444444444444444444)
}
},
powerDrawer: function (e) {
@@ -141,6 +147,7 @@ Page({
this.setData({
orderId: options.orderId
});
wx.hideShareMenu()
if(options.cardIf){
this.setData({
cardIf:true


正在加载...
取消
保存