| @@ -96,7 +96,7 @@ Page({ | |||||
| let _this = this; | let _this = this; | ||||
| return { | return { | ||||
| title: _this.data.userName + '赠送您一张' + _this.data.cardDetail.title, | title: _this.data.userName + '赠送您一张' + _this.data.cardDetail.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, | |||||
| 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 + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''), | |||||
| imageUrl: _this.data.cardDetail.coverImg, | imageUrl: _this.data.cardDetail.coverImg, | ||||
| success: function (res) { | success: function (res) { | ||||
| // 转发成功 | // 转发成功 | ||||
| @@ -534,7 +534,7 @@ Page({ | |||||
| var that = this; | var that = this; | ||||
| var shareObj = { | var shareObj = { | ||||
| title: that.data.data.title, | title: that.data.data.title, | ||||
| path: `/pages/index/index?couponChannelId=${that.data.couponChannelId}&couponId=${that.data.couponId}`, | |||||
| path: `/pages/index/index?couponChannelId=${that.data.couponChannelId}&couponId=${that.data.couponId}` + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''), | |||||
| success: function (res) { | success: function (res) { | ||||
| if (res.errMsg == 'shareAppMessage:ok') { } | if (res.errMsg == 'shareAppMessage:ok') { } | ||||
| }, | }, | ||||
| @@ -546,7 +546,7 @@ Page({ | |||||
| if (options.from == 'button') { | if (options.from == 'button') { | ||||
| var eData = options.target.dataset.id; | var eData = options.target.dataset.id; | ||||
| var couponId = options.target.dataset.couponid; | var couponId = options.target.dataset.couponid; | ||||
| shareObj.path = `/pages/index/index?couponChannelId=${eData}&couponId=${couponId}`; | |||||
| shareObj.path = `/pages/index/index?couponChannelId=${eData}&couponId=${couponId}` + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''); | |||||
| } | } | ||||
| // 返回shareObj | // 返回shareObj | ||||
| return shareObj; | return shareObj; | ||||
| @@ -66,12 +66,5 @@ Page({ | |||||
| */ | */ | ||||
| onReachBottom: function () { | onReachBottom: function () { | ||||
| }, | |||||
| /** | |||||
| * 用户点击右上角分享 | |||||
| */ | |||||
| onShareAppMessage: function () { | |||||
| } | } | ||||
| }) | }) | ||||
| @@ -958,7 +958,7 @@ Page({ | |||||
| console.log(options) | console.log(options) | ||||
| var shareObj = { | var shareObj = { | ||||
| title: that.data.data.title, | title: that.data.data.title, | ||||
| path: `/pages/index/index?couponChannelId=${that.data.couponChannelId}`, | |||||
| path: `/pages/index/index?couponChannelId=${that.data.couponChannelId}` + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''), | |||||
| success: function(res) { | success: function(res) { | ||||
| if (res.errMsg == 'shareAppMessage:ok') {} | if (res.errMsg == 'shareAppMessage:ok') {} | ||||
| }, | }, | ||||
| @@ -969,7 +969,7 @@ Page({ | |||||
| // 来自页面内的按钮的转发 | // 来自页面内的按钮的转发 | ||||
| if (options.from == 'button') { | if (options.from == 'button') { | ||||
| var eData = options.target.dataset.id; | var eData = options.target.dataset.id; | ||||
| shareObj.path = `/pages/index/index?couponChannelId=${eData}&frommd=JC`; | |||||
| shareObj.path = `/pages/index/index?couponChannelId=${eData}&frommd=JC` + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''); | |||||
| } | } | ||||
| // 返回shareObj | // 返回shareObj | ||||
| return shareObj; | return shareObj; | ||||
| @@ -10,7 +10,7 @@ Page({ | |||||
| let _this=this; | let _this=this; | ||||
| return { | return { | ||||
| title: '小游戏', | title: '小游戏', | ||||
| path: 'pages/index/index', | |||||
| path: 'pages/index/index' + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''), | |||||
| success: function (res) { | success: function (res) { | ||||
| // 转发成功 | // 转发成功 | ||||
| }, | }, | ||||
| @@ -200,7 +200,7 @@ Page({ | |||||
| let that = this; | let that = this; | ||||
| let shareObj = { | let shareObj = { | ||||
| title: that.data.data.merchantName, | title: that.data.data.merchantName, | ||||
| path: `/pages/index/index?id=${that.data.id}&frommd=md`, | |||||
| path: `/pages/index/index?id=${that.data.id}&frommd=md` + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''), | |||||
| success: function(res) { | success: function(res) { | ||||
| if (res.errMsg == 'shareAppMessage:ok') {} | if (res.errMsg == 'shareAppMessage:ok') {} | ||||
| }, | }, | ||||
| @@ -85,12 +85,5 @@ Page({ | |||||
| */ | */ | ||||
| onReachBottom: function () { | onReachBottom: function () { | ||||
| }, | |||||
| /** | |||||
| * 用户点击右上角分享 | |||||
| */ | |||||
| onShareAppMessage: function () { | |||||
| } | } | ||||
| }) | }) | ||||
| @@ -69,7 +69,7 @@ Page({ | |||||
| let _this = this; | let _this = this; | ||||
| return { | return { | ||||
| title: _this.data.userName+'赠送您一张' + _this.data.order.title, | title: _this.data.userName+'赠送您一张' + _this.data.order.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, | |||||
| 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 + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''), | |||||
| imageUrl: this.data.order.coverImg, | imageUrl: this.data.order.coverImg, | ||||
| success: function (res) { | success: function (res) { | ||||
| // 转发成功 | // 转发成功 | ||||
| @@ -106,7 +106,7 @@ Page({ | |||||
| // 来自页面内的按钮的转发 | // 来自页面内的按钮的转发 | ||||
| if (options.from == 'button') { | if (options.from == 'button') { | ||||
| var eData = options.target.dataset.id; | var eData = options.target.dataset.id; | ||||
| shareObj.path = `/pages/index/index?id=${eData}&type=ra`; | |||||
| shareObj.path = `/pages/index/index?id=${eData}&type=ra` + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''); | |||||
| } | } | ||||
| return shareObj; | return shareObj; | ||||
| }, | }, | ||||
| @@ -269,7 +269,7 @@ Page({ | |||||
| let _this = this; | let _this = this; | ||||
| return { | return { | ||||
| title: _this.data.nickName + '超值推荐的' + _this.data.data.title, | title: _this.data.nickName + '超值推荐的' + _this.data.data.title, | ||||
| path: `/pages/index/index?couponId=${_this.data.data.couponId}&orderGroupId=${_this.data.data.orderGroupId}&couponChannelId=${_this.data.paramData.couponChannelId}&orderId=${_this.data.data.orderId}&avatarUrl=${_this.data.avatarUrl}&nickName=${_this.data.nickName}`, | |||||
| path: `/pages/index/index?couponId=${_this.data.data.couponId}&orderGroupId=${_this.data.data.orderGroupId}&couponChannelId=${_this.data.paramData.couponChannelId}&orderId=${_this.data.data.orderId}&avatarUrl=${_this.data.avatarUrl}&nickName=${_this.data.nickName}` + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''), | |||||
| imageUrl: _this.data.data.coverImg, | imageUrl: _this.data.data.coverImg, | ||||
| success: function (res) { | success: function (res) { | ||||
| // 转发成功 | // 转发成功 | ||||
| @@ -754,7 +754,7 @@ Page({ | |||||
| var that = this; | var that = this; | ||||
| var shareObj = { | var shareObj = { | ||||
| title: that.data.data.title, | title: that.data.data.title, | ||||
| path: `/pages/index/index?couponChannelId=${that.data.couponChannelId}&couponId=${that.data.data.couponId}&spellGroup=spellGroup`, | |||||
| path: `/pages/index/index?couponChannelId=${that.data.couponChannelId}&couponId=${that.data.data.couponId}&spellGroup=spellGroup` + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''), | |||||
| success: function (res) { | success: function (res) { | ||||
| if (res.errMsg == 'shareAppMessage:ok') { } | if (res.errMsg == 'shareAppMessage:ok') { } | ||||
| }, | }, | ||||
| @@ -765,7 +765,7 @@ Page({ | |||||
| // 来自页面内的按钮的转发 | // 来自页面内的按钮的转发 | ||||
| if (options.from == 'button') { | if (options.from == 'button') { | ||||
| var eData = options.target.dataset.id; | var eData = options.target.dataset.id; | ||||
| shareObj.path = `/pages/index/index?couponChannelId=${eData}&couponId=${that.data.data.couponId}&spellGroup=spellGroup&frommd=JC`; | |||||
| shareObj.path = `/pages/index/index?couponChannelId=${eData}&couponId=${that.data.data.couponId}&spellGroup=spellGroup&frommd=JC` + (wx.getStorageSync('tenantId') ? '&tenantId=' + wx.getStorageSync('tenantId') : ''); | |||||
| } | } | ||||
| // 返回shareObj | // 返回shareObj | ||||
| return shareObj; | return shareObj; | ||||
| @@ -62,12 +62,5 @@ Page({ | |||||
| */ | */ | ||||
| onReachBottom: function () { | onReachBottom: function () { | ||||
| }, | |||||
| /** | |||||
| * 用户点击右上角分享 | |||||
| */ | |||||
| onShareAppMessage: function () { | |||||
| } | } | ||||
| }) | }) | ||||