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({