| @@ -88,20 +88,20 @@ Page({ | |||||
| .catch(err => { | .catch(err => { | ||||
| if (err.code == 11004) { | if (err.code == 11004) { | ||||
| // 用户昵称未授权 | // 用户昵称未授权 | ||||
| if (couponChannelId && !cuserId) { | |||||
| if (options.couponChannelId && !options.cuserId) { | |||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| url: `/pages/getuserinfo/index?couponChannelId=${couponChannelId}` | |||||
| url: `/pages/getuserinfo/index?couponChannelId=${options.couponChannelId}` | |||||
| }); | }); | ||||
| } else if (couponChannelId && cuserId){ | |||||
| } else if (options.couponChannelId && options.cuserId){ | |||||
| /** | /** | ||||
| * 转赠判断 | * 转赠判断 | ||||
| */ | */ | ||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| url: `/pages/getuserinfo/index?couponChannelId=${couponChannelId}&cuserId=${cuserId}&coverImg=${coverImg}&userName=${userName}&avatarUrl=${avatarUrl}&couponOrderId=${couponOrderId}&updateDate=${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 (orderId) { | |||||
| } else if (options.orderId) { | |||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| url: `/pages/getuserinfo/index?orderId=${orderId}&from='${"discount"}` | |||||
| url: `/pages/getuserinfo/index?orderId=${options.orderId}&from='${"discount"}` | |||||
| }); | }); | ||||
| } else { | } else { | ||||
| wx.redirectTo({ | wx.redirectTo({ | ||||