| @@ -52,18 +52,6 @@ Page({ | |||||
| if (options.couponChannelId || options.orderId) { | if (options.couponChannelId || options.orderId) { | ||||
| console.log(options,33333333333) | console.log(options,33333333333) | ||||
| that.userLogin(options); | 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 { | } else { | ||||
| that.userLogin() | that.userLogin() | ||||
| } | } | ||||
| @@ -91,15 +79,15 @@ Page({ | |||||
| Http.get({ | Http.get({ | ||||
| url: config.api.couponDetail, | url: config.api.couponDetail, | ||||
| data: { | data: { | ||||
| couponChannelId: couponChannelId | |||||
| couponChannelId: options.couponChannelId | |||||
| } | } | ||||
| }).then(res => { | }).then(res => { | ||||
| let data = res.data; | let data = res.data; | ||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${options.couponChannelId}&couponId=${data.couponId}` | url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${options.couponChannelId}&couponId=${data.couponId}` | ||||
| }) | }) | ||||
| return; | |||||
| }); | }); | ||||
| return; | |||||
| } | } | ||||
| if (options&&options.couponChannelId && !options.cuserId) { | if (options&&options.couponChannelId && !options.cuserId) { | ||||
| wx.redirectTo({ | wx.redirectTo({ | ||||