From 35c1693b9852dc28c51df56c5871894a922444fc Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Fri, 31 May 2019 01:48:07 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8B=BC=E5=9B=A2=E5=88=B8][=E4=BF=AE?= =?UTF-8?q?=E6=94=B9]:[=E6=89=AB=E7=A0=81=E8=BF=9B=E5=85=A5=E6=8B=BC?= =?UTF-8?q?=E5=9B=A2=E9=A1=B5=E9=9D=A2=E8=B7=AF=E5=BE=84=E7=9A=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/getuserinfo/index.js | 2 +- pages/index/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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({