From e781996807aa70943bd70124d81e0926106e531d Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Mon, 23 Sep 2019 11:24:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=85=91=E6=8D=A2][=E5=A2=9E=E5=8A=A0]:[?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=91=E6=8D=A2=E7=9A=84=E8=90=A5=E9=94=80?= =?UTF-8?q?=E7=89=A9=E6=96=99]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/getuserinfo/index.js | 7 ++++++- pages/index/index.js | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/getuserinfo/index.js b/pages/getuserinfo/index.js index 3e2ffd1..303f593 100755 --- a/pages/getuserinfo/index.js +++ b/pages/getuserinfo/index.js @@ -270,11 +270,16 @@ Page({ url: '/pages/topicDetail/index' }); } - else if (app.globalData.type == 'ml') { + else if (app.globalData.type == 'ml') { // 门店 wx.switchTab({ url: '/index/searchbar' }); + } else if (app.globalData.type == 'ec') { + // 兑换 + wx.redirectTo({ + url: '/pages/exchange/exchange' + }); } else if (that.data.fromflag == 'coupondetail' && that.data.couponChannelIdflag){ wx.redirectTo({ url: `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelIdflag}` diff --git a/pages/index/index.js b/pages/index/index.js index e84c873..d35f807 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -327,6 +327,12 @@ Page({ url: '/index/searchbar' }) } + // 兑换 + else if (app.globalData.type == 'ec') { + wx.redirectTo({ + url: '/pages/exchange/exchange' + }) + } // 通过分享进入的门店详情 else if (options && options.id && options.frommd == 'md') { wx.redirectTo({