|
@@ -64,6 +64,12 @@ Page({ |
|
|
data: {} |
|
|
data: {} |
|
|
}) |
|
|
}) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
|
|
|
if (options && options.orderGroupId) { |
|
|
|
|
|
wx.redirectTo({ |
|
|
|
|
|
url: `/pages/joinFrDpell/index?couponId=${options.couponId}&orderGroupId=${options.orderGroupId}&couponChannelId=${options.couponChannelId}&orderId=${options.orderId}` |
|
|
|
|
|
}) |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
if (options&&options.couponChannelId && !options.cuserId) { |
|
|
if (options&&options.couponChannelId && !options.cuserId) { |
|
|
wx.redirectTo({ |
|
|
wx.redirectTo({ |
|
|
url: `/pages/coupon/detail/index?couponChannelId=${options.couponChannelId}`, |
|
|
url: `/pages/coupon/detail/index?couponChannelId=${options.couponChannelId}`, |
|
@@ -88,18 +94,24 @@ Page({ |
|
|
.catch(err => { |
|
|
.catch(err => { |
|
|
if (err.code == 11004) { |
|
|
if (err.code == 11004) { |
|
|
// 用户昵称未授权 |
|
|
// 用户昵称未授权 |
|
|
if (options.couponChannelId && !options.cuserId) { |
|
|
|
|
|
|
|
|
if (options && options.orderGroupId) { |
|
|
|
|
|
wx.redirectTo({ |
|
|
|
|
|
url: `/pages/getuserinfo/index?couponId=${options.couponId}&orderGroupId=${options.orderGroupId}&couponChannelId=${options.couponChannelId}&orderId=${options.orderId}` |
|
|
|
|
|
}) |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
if (options && options.couponChannelId && !options.cuserId) { |
|
|
wx.redirectTo({ |
|
|
wx.redirectTo({ |
|
|
url: `/pages/getuserinfo/index?couponChannelId=${options.couponChannelId}` |
|
|
url: `/pages/getuserinfo/index?couponChannelId=${options.couponChannelId}` |
|
|
}); |
|
|
}); |
|
|
} else if (options.couponChannelId && options.cuserId){ |
|
|
|
|
|
|
|
|
} else if (options &&options.couponChannelId && options.cuserId){ |
|
|
/** |
|
|
/** |
|
|
* 转赠判断 |
|
|
* 转赠判断 |
|
|
*/ |
|
|
*/ |
|
|
wx.redirectTo({ |
|
|
wx.redirectTo({ |
|
|
url: `/pages/getuserinfo/index?couponChannelId=${options.couponChannelId}&cuserId=${options.cuserId}&coverImg=${options.coverImg}&userName=${options.userName}&avatarUrl=${options.avatarUrl}&couponOrderId=${options.couponOrderId}&updateDate=${options.updateDate}` |
|
|
url: `/pages/getuserinfo/index?couponChannelId=${options.couponChannelId}&cuserId=${options.cuserId}&coverImg=${options.coverImg}&userName=${options.userName}&avatarUrl=${options.avatarUrl}&couponOrderId=${options.couponOrderId}&updateDate=${options.updateDate}` |
|
|
}); |
|
|
}); |
|
|
} else if (options.orderId) { |
|
|
|
|
|
|
|
|
} else if (options && options.orderId) { |
|
|
wx.redirectTo({ |
|
|
wx.redirectTo({ |
|
|
url: `/pages/getuserinfo/index?orderId=${options.orderId}&from='${"discount"}` |
|
|
url: `/pages/getuserinfo/index?orderId=${options.orderId}&from='${"discount"}` |
|
|
}); |
|
|
}); |
|
|