diff --git a/pages/index/index.js b/pages/index/index.js index 37fa0ca..65b0cbe 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -88,20 +88,20 @@ Page({ .catch(err => { if (err.code == 11004) { // 用户昵称未授权 - if (couponChannelId && !cuserId) { + if (options.couponChannelId && !options.cuserId) { 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({ - 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({ - url: `/pages/getuserinfo/index?orderId=${orderId}&from='${"discount"}` + url: `/pages/getuserinfo/index?orderId=${options.orderId}&from='${"discount"}` }); } else { wx.redirectTo({