|
|
@@ -117,6 +117,14 @@ Page({ |
|
|
|
}) |
|
|
|
.then( |
|
|
|
function (res) { |
|
|
|
// debugger; |
|
|
|
if (that.data.fromflag == 'poster') { |
|
|
|
wx.redirectTo({ |
|
|
|
url: `/pages/canvas/index?couponChannelId=${that.data.couponChannelId}` |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
// |
|
|
|
if (that.data.optionData.orderGroupId){ |
|
|
|
wx.reLaunch({ |
|
|
|
url: `/pages/joinFrDpell/index?couponId=${that.data.optionData.couponId}&orderGroupId=${that.data.optionData.orderGroupId}&couponChannelId=${that.data.optionData.couponChannelId}&orderId=${that.data.optionData.orderId}&avatarUrl=${that.data.optionData.avatarUrl}&nickName=${that.data.optionData.nickName}` |
|
|
@@ -129,7 +137,8 @@ Page({ |
|
|
|
}); |
|
|
|
} else { |
|
|
|
//返回主页 |
|
|
|
if (that.data.couponChannelId && !that.data.cuserId && !that.data.spellGroup||that.data.couponChannelId && !that.data.cuserId&&app.globalData.type == 'cd') { |
|
|
|
// if (that.data.couponChannelId && !that.data.cuserId && !that.data.spellGroup||that.data.couponChannelId && !that.data.cuserId&&app.globalData.type == 'cd') { |
|
|
|
if (that.data.couponChannelId && !that.data.cuserId && !that.data.spellGroup && app.globalData.type == 'cd') { |
|
|
|
// 跳转普通券/消费卡/限时秒杀/砍价详情 |
|
|
|
wx.navigateTo({ |
|
|
|
url: `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelId}` |
|
|
|