diff --git a/pages/getuserinfo/index.js b/pages/getuserinfo/index.js index 5d05597..fcaa5b0 100755 --- a/pages/getuserinfo/index.js +++ b/pages/getuserinfo/index.js @@ -109,7 +109,7 @@ Page({ wx.navigateTo({ url: `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelId}` }); - } else if (that.data.couponChannelId && that.data.cuserId && !that.data.spellGroup) { + } else if (that.data.couponChannelId && that.data.cuserId && !that.data.spellGroup && app.globalData.type != 'sd') { // 来自转赠 wx.reLaunch({ url: `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelId}&cuserId=${that.data.cuserId}&coverImg=${that.data.coverImg}&userName=${that.data.userName}&avatarUrl=${that.data.avatarUrl}&couponOrderId=${that.data.couponOrderId}&updateDate=${that.data.updateDate}` diff --git a/pages/index/index.js b/pages/index/index.js index 935d80b..de20a23 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -13,6 +13,7 @@ Page({ */ onLoad: function(options) { let that = this; + console.log(options) wx.showToast({ title: '加载中', icon: "loading", @@ -134,7 +135,8 @@ Page({ url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${options.couponChannelId}&couponId=${data.couponId}` }) }) - } else if (options && options.couponChannelId && !options.spellGroup) { + } else if (options && options.couponChannelId && !options.spellGroup && app.globalData.type != 'sd') { + // 转赠判断 if (options.cuserId) { wx.redirectTo({