diff --git a/pages/index/index.js b/pages/index/index.js index c29241f..38eff94 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -52,18 +52,6 @@ Page({ if (options.couponChannelId || options.orderId) { console.log(options,33333333333) that.userLogin(options); - // if (options.cuserId){ - // /** - // * 转赠判断 - // */ - // // that.userLogin(options.couponChannelId, null, options.cuserId, options.coverImg, options.userName, options.avatarUrl, options.couponOrderId, options.updateDate); - // that.userLogin(options.couponChannelId, null, options.cuserId, options.coverImg, options.userName, options.avatarUrl, options.couponOrderId, options.updateDate); - // } else if (options.orderGroupId){ - // // 来自于拼团 - // that.userLogin(options.couponChannelId, null, options.orderGroupId); - // }else{ - // that.userLogin(options.couponChannelId, options.orderId); - // } } else { that.userLogin() } @@ -91,15 +79,15 @@ Page({ Http.get({ url: config.api.couponDetail, data: { - couponChannelId: couponChannelId + couponChannelId: options.couponChannelId } }).then(res => { let data = res.data; wx.redirectTo({ url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${options.couponChannelId}&couponId=${data.couponId}` }) - return; }); + return; } if (options&&options.couponChannelId && !options.cuserId) { wx.redirectTo({