| @@ -131,11 +131,11 @@ Page({ | |||||
| checkuserstatus(options) { | checkuserstatus(options) { | ||||
| let that = this; | let that = this; | ||||
| Http.get({ | Http.get({ | ||||
| url: config.api.checkUserStatus, | |||||
| data: { | |||||
| token:app.globalData.token | |||||
| } | |||||
| }) | |||||
| url: config.api.checkUserStatus, | |||||
| data: { | |||||
| token: app.globalData.token | |||||
| } | |||||
| }) | |||||
| .then(res => { | .then(res => { | ||||
| //参与拼团 | //参与拼团 | ||||
| if (options && options.orderGroupId) { | if (options && options.orderGroupId) { | ||||
| @@ -160,7 +160,7 @@ Page({ | |||||
| }) | }) | ||||
| }) | }) | ||||
| } else if (options && options.couponChannelId && !options.spellGroup && app.globalData.type != 'sd') { | } else if (options && options.couponChannelId && !options.spellGroup && app.globalData.type != 'sd') { | ||||
| // 转赠判断 | // 转赠判断 | ||||
| if (options.cuserId) { | if (options.cuserId) { | ||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| @@ -174,7 +174,7 @@ Page({ | |||||
| } | } | ||||
| } | } | ||||
| // 拼团详情页(只有通过扫码进入才可能进入拼团详情页面,只有这一个入口) | // 拼团详情页(只有通过扫码进入才可能进入拼团详情页面,只有这一个入口) | ||||
| else if ((options && options.couponChannelId && app.globalData.type == 'sd') || (options && options.couponChannelId && options.spellGroup) ){ | |||||
| else if ((options && options.couponChannelId && app.globalData.type == 'sd') || (options && options.couponChannelId && options.spellGroup)) { | |||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${options.couponChannelId}`, | url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${options.couponChannelId}`, | ||||
| }) | }) | ||||
| @@ -214,7 +214,7 @@ Page({ | |||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| url: `/pages/topicDetail/index?id=${options.id}` | url: `/pages/topicDetail/index?id=${options.id}` | ||||
| }); | }); | ||||
| } | |||||
| } | |||||
| // 门店详情 | // 门店详情 | ||||
| else if (options && options.id && app.globalData.type == 'md') { | else if (options && options.id && app.globalData.type == 'md') { | ||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| @@ -310,6 +310,7 @@ Page({ | |||||
| } | } | ||||
| // 我的拼团 | // 我的拼团 | ||||
| else if (app.globalData.type == 'ms') { | else if (app.globalData.type == 'ms') { | ||||
| // 我的拼团 | |||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| url: '/pages/spellGroup/spellGroup?from=myhtml' | url: '/pages/spellGroup/spellGroup?from=myhtml' | ||||
| }) | }) | ||||
| @@ -326,13 +327,19 @@ Page({ | |||||
| wx.switchTab({ | wx.switchTab({ | ||||
| url: '/index/searchbar' | url: '/index/searchbar' | ||||
| }) | }) | ||||
| } | |||||
| } | |||||
| // 兑换 | |||||
| else if (app.globalData.type == 'ec') { | |||||
| wx.redirectTo({ | |||||
| url: '/pages/exchange/exchange' | |||||
| }) | |||||
| } | |||||
| // 通过分享进入的门店详情 | // 通过分享进入的门店详情 | ||||
| else if (options && options.id && options.frommd == 'md') { | else if (options && options.id && options.frommd == 'md') { | ||||
| wx.redirectTo({ | wx.redirectTo({ | ||||
| url: `/pages/index/searchbar/detail/index?id=${options.id}` | url: `/pages/index/searchbar/detail/index?id=${options.id}` | ||||
| }); | }); | ||||
| }else { | |||||
| } else { | |||||
| // 主页 | // 主页 | ||||
| wx.switchTab({ | wx.switchTab({ | ||||
| url: '/index/index' | url: '/index/index' | ||||
| @@ -476,6 +483,12 @@ Page({ | |||||
| url: '/pages/discountCardList/discountCardList' | url: '/pages/discountCardList/discountCardList' | ||||
| }) | }) | ||||
| } | } | ||||
| // 兑换 | |||||
| else if (app.globalData.type == 'ec') { | |||||
| wx.redirectTo({ | |||||
| url: '/pages/exchange/exchange' | |||||
| }) | |||||
| } | |||||
| // 门店 | // 门店 | ||||
| else if (app.globalData.type == 'ml') { | else if (app.globalData.type == 'ml') { | ||||
| wx.switchTab({ | wx.switchTab({ | ||||