|  |  | @@ -14,7 +14,7 @@ Page({ | 
		
	
		
			
			|  |  |  | optionData: null, | 
		
	
		
			
			|  |  |  | fromflag: '', | 
		
	
		
			
			|  |  |  | couponChannelIdflag: '', | 
		
	
		
			
			|  |  |  | wjId:"", | 
		
	
		
			
			|  |  |  | wjId: "", | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | //是否授权手机号 | 
		
	
		
			
			|  |  |  | judgePhonelngo() { | 
		
	
	
		
			
				|  |  | @@ -23,15 +23,15 @@ Page({ | 
		
	
		
			
			|  |  |  | data: {} | 
		
	
		
			
			|  |  |  | }).then(res => { | 
		
	
		
			
			|  |  |  | var tempSkip = app.globalData.skip | 
		
	
		
			
			|  |  |  | if (tempSkip =='redirectTo'){ | 
		
	
		
			
			|  |  |  | if (tempSkip == 'redirectTo') { | 
		
	
		
			
			|  |  |  | wx.redirectTo({ | 
		
	
		
			
			|  |  |  | url: app.globalData.skipUrl, | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | } else if (tempSkip == 'navigateTo'){ | 
		
	
		
			
			|  |  |  | } else if (tempSkip == 'navigateTo') { | 
		
	
		
			
			|  |  |  | wx.navigateTo({ | 
		
	
		
			
			|  |  |  | url: app.globalData.skipUrl, | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | } else if (tempSkip == 'reLaunch'){ | 
		
	
		
			
			|  |  |  | } else if (tempSkip == 'reLaunch') { | 
		
	
		
			
			|  |  |  | wx.reLaunch({ | 
		
	
		
			
			|  |  |  | url: app.globalData.skipUrl, | 
		
	
		
			
			|  |  |  | }) | 
		
	
	
		
			
				|  |  | @@ -40,7 +40,7 @@ Page({ | 
		
	
		
			
			|  |  |  | url: app.globalData.skipUrl, | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | }).catch(err => { | 
		
	
		
			
			|  |  |  | wx.redirectTo({ | 
		
	
		
			
			|  |  |  | url: `/pages/getphoneInfo/index?skipUrl=1` | 
		
	
	
		
			
				|  |  | @@ -64,7 +64,7 @@ Page({ | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | //调查问卷 | 
		
	
		
			
			|  |  |  | if (options && !options.wjId || options.wjId){ | 
		
	
		
			
			|  |  |  | if (options && !options.wjId || options.wjId) { | 
		
	
		
			
			|  |  |  | this.setData({ | 
		
	
		
			
			|  |  |  | wjId: options.wjId | 
		
	
		
			
			|  |  |  | }) | 
		
	
	
		
			
				|  |  | @@ -144,238 +144,477 @@ Page({ | 
		
	
		
			
			|  |  |  | url: '/index/index', | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | bindGetUserInfo: function(e) { | 
		
	
		
			
			|  |  |  | let that = this; | 
		
	
		
			
			|  |  |  | var iv = e.detail.iv; | 
		
	
		
			
			|  |  |  | var encryptedData = e.detail.encryptedData; | 
		
	
		
			
			|  |  |  | wx.getUserInfo({ | 
		
	
		
			
			|  |  |  | success: function(res) { | 
		
	
		
			
			|  |  |  | Http.post({ | 
		
	
		
			
			|  |  |  | url: config.api.getUserInfo, | 
		
	
		
			
			|  |  |  | data: { | 
		
	
		
			
			|  |  |  | encryptedData: encryptedData, | 
		
	
		
			
			|  |  |  | iv: iv | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }).then( | 
		
	
		
			
			|  |  |  | function(res) { | 
		
	
		
			
			|  |  |  | if(that.data.wjId){ | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl =`/pages/questionnaire/questionnaire?id=${that.data.wjId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | if (that.data.fromflag == 'poster') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/canvas/index?couponChannelId=${that.data.couponChannelId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // | 
		
	
		
			
			|  |  |  | if (that.data.optionData.orderGroupId) { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/joinFrDpell/index?couponId=${that.data.optionData.couponId}&orderGroupId=${that.data.optionData.orderGroupId}&couponChannelId=${that.data.optionData.couponChannelId}&orderId=${that.data.optionData.orderId}&avatarUrl=${that.data.optionData.avatarUrl}&nickName=${that.data.optionData.nickName}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | if (that.data.path == 'index') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = "/pages/game/index" | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else { | 
		
	
		
			
			|  |  |  | //返回主页 | 
		
	
		
			
			|  |  |  | // if (that.data.couponChannelId && !that.data.cuserId && !that.data.spellGroup||that.data.couponChannelId && !that.data.cuserId&&app.globalData.type == 'cd') { | 
		
	
		
			
			|  |  |  | if (that.data.couponChannelId && !that.data.cuserId && !that.data.spellGroup && app.globalData.type == 'cd') { | 
		
	
		
			
			|  |  |  | // 跳转普通券/消费卡/限时秒杀/砍价详情 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'navigateTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.couponChannelId && that.data.cuserId && !that.data.spellGroup && app.globalData.type != 'sd') { | 
		
	
		
			
			|  |  |  | // 来自转赠 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/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}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.couponChannelId && app.globalData.type == 'sd' || that.data.couponChannelId && that.data.spellGroup) { | 
		
	
		
			
			|  |  |  | // 拼团详情页 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/spellGroup/mySpellGroup/index?couponChannelId=${that.data.couponChannelId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.optionData.id && app.globalData.type == 'gm') { | 
		
	
		
			
			|  |  |  | // 游戏页面 | 
		
	
		
			
			|  |  |  | that.getGameOne(app.globalData.token, that.data.optionData.id) | 
		
	
		
			
			|  |  |  | // bindGetUserInfo: function (e) { | 
		
	
		
			
			|  |  |  | //   let that = this; | 
		
	
		
			
			|  |  |  | //   var iv = e.detail.iv; | 
		
	
		
			
			|  |  |  | //   var encryptedData = e.detail.encryptedData; | 
		
	
		
			
			|  |  |  | //   wx.getUserInfo({ | 
		
	
		
			
			|  |  |  | //     success: function (res) { | 
		
	
		
			
			|  |  |  | //       Http.post({ | 
		
	
		
			
			|  |  |  | //         url: config.api.getUserInfo, | 
		
	
		
			
			|  |  |  | //         data: { | 
		
	
		
			
			|  |  |  | //           encryptedData: encryptedData, | 
		
	
		
			
			|  |  |  | //           iv: iv | 
		
	
		
			
			|  |  |  | //         } | 
		
	
		
			
			|  |  |  | //       }).then( | 
		
	
		
			
			|  |  |  | //         function (res) { | 
		
	
		
			
			|  |  |  | //           if (that.data.wjId) { | 
		
	
		
			
			|  |  |  | //             app.globalData.skipUrl = `/pages/questionnaire/questionnaire?id=${that.data.wjId}` | 
		
	
		
			
			|  |  |  | //             app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //             that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             return; | 
		
	
		
			
			|  |  |  | //           } | 
		
	
		
			
			|  |  |  | //           if (that.data.fromflag == 'poster') { | 
		
	
		
			
			|  |  |  | //             app.globalData.skipUrl = `/pages/canvas/index?couponChannelId=${that.data.couponChannelId}` | 
		
	
		
			
			|  |  |  | //             app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //             that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             return; | 
		
	
		
			
			|  |  |  | //           } | 
		
	
		
			
			|  |  |  | //           // | 
		
	
		
			
			|  |  |  | //           if (that.data.optionData.orderGroupId) { | 
		
	
		
			
			|  |  |  | //             app.globalData.skipUrl = `/pages/joinFrDpell/index?couponId=${that.data.optionData.couponId}&orderGroupId=${that.data.optionData.orderGroupId}&couponChannelId=${that.data.optionData.couponChannelId}&orderId=${that.data.optionData.orderId}&avatarUrl=${that.data.optionData.avatarUrl}&nickName=${that.data.optionData.nickName}` | 
		
	
		
			
			|  |  |  | //             app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | //             that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             return; | 
		
	
		
			
			|  |  |  | //           } | 
		
	
		
			
			|  |  |  | //           if (that.data.path == 'index') { | 
		
	
		
			
			|  |  |  | //             app.globalData.skipUrl = "/pages/game/index" | 
		
	
		
			
			|  |  |  | //             app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | //             that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //           } else { | 
		
	
		
			
			|  |  |  | //             //返回主页 | 
		
	
		
			
			|  |  |  | //             // if (that.data.couponChannelId && !that.data.cuserId && !that.data.spellGroup||that.data.couponChannelId && !that.data.cuserId&&app.globalData.type == 'cd') { | 
		
	
		
			
			|  |  |  | //             if (that.data.couponChannelId && !that.data.cuserId && !that.data.spellGroup && app.globalData.type == 'cd') { | 
		
	
		
			
			|  |  |  | //               // 跳转普通券/消费卡/限时秒杀/砍价详情 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelId}` | 
		
	
		
			
			|  |  |  | //               app.globalData.skip = 'navigateTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (that.data.couponChannelId && that.data.cuserId && !that.data.spellGroup && app.globalData.type != 'sd') { | 
		
	
		
			
			|  |  |  | //               // 来自转赠 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/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}` | 
		
	
		
			
			|  |  |  | //               app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (that.data.couponChannelId && app.globalData.type == 'sd' || that.data.couponChannelId && that.data.spellGroup) { | 
		
	
		
			
			|  |  |  | //               // 拼团详情页 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/spellGroup/mySpellGroup/index?couponChannelId=${that.data.couponChannelId}` | 
		
	
		
			
			|  |  |  | //               app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (that.data.optionData.id && app.globalData.type == 'gm') { | 
		
	
		
			
			|  |  |  | //               // 游戏页面 | 
		
	
		
			
			|  |  |  | //               that.getGameOne(app.globalData.token, that.data.optionData.id) | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | } else if (that.data.optionData.id && app.globalData.type == 'td') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/topicDetail/index?id=${that.data.optionData.id}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 报名活动 | 
		
	
		
			
			|  |  |  | else if (that.data.optionData.id && app.globalData.type == 'ra') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/radetail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 报名签到 | 
		
	
		
			
			|  |  |  | else if (that.data.optionData.id && app.globalData.type == 'si') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/acSignIn/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (that.data.optionData.id && app.globalData.type == 'td') { | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/topicDetail/index?id=${that.data.optionData.id}` | 
		
	
		
			
			|  |  |  | //               app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } | 
		
	
		
			
			|  |  |  | //             // 报名活动 | 
		
	
		
			
			|  |  |  | //             else if (that.data.optionData.id && app.globalData.type == 'ra') { | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/radetail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } | 
		
	
		
			
			|  |  |  | //             // 报名签到 | 
		
	
		
			
			|  |  |  | //             else if (that.data.optionData.id && app.globalData.type == 'si') { | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/acSignIn/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } | 
		
	
		
			
			|  |  |  | //             // 门店详情 | 
		
	
		
			
			|  |  |  | //             else if (that.data.optionData.id && app.globalData.type == 'md') { | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/index/searchbar/detail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } | 
		
	
		
			
			|  |  |  | //             // 通过分享进入的门店详情页面 | 
		
	
		
			
			|  |  |  | //             else if (that.data.id && that.data.frommd == 'md') { | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/index/searchbar/detail/index?id=${that.data.id}`, | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (that.data.optionData.bt && that.data.optionData.id && app.globalData.type == 'bd') { | 
		
	
		
			
			|  |  |  | //               // 宣传页详情 | 
		
	
		
			
			|  |  |  | //               if (that.data.optionData.bt == '2') { | 
		
	
		
			
			|  |  |  | //                 // 自由图文 | 
		
	
		
			
			|  |  |  | //                 app.globalData.skipUrl = `/pages/freeBannerDetail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | //                   app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //                 that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //               } else { | 
		
	
		
			
			|  |  |  | //                 // 标准格式 | 
		
	
		
			
			|  |  |  | //                 app.globalData.skipUrl = `/pages/bannerdetail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | //                   app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //                 that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //               } | 
		
	
		
			
			|  |  |  | //             } else if (that.data.orderId || that.data.orderId && app.globalData.type == 'bg') { | 
		
	
		
			
			|  |  |  | //               // 参与砍价 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/bargain/bargainDatail/bargainDatail?orderId=${that.data.orderId}`, | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'navigateTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'uc') { | 
		
	
		
			
			|  |  |  | //               // 我的 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/index/user', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'in') { | 
		
	
		
			
			|  |  |  | //               // 首页 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/index/index', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == "qd") { | 
		
	
		
			
			|  |  |  | //               //每日签到 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = "/pages/activityCalendar/activityCalendar" | 
		
	
		
			
			|  |  |  | //               app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } | 
		
	
		
			
			|  |  |  | //             else if (app.globalData.type == "hdrl") { | 
		
	
		
			
			|  |  |  | //               //活动日历 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/radetail/index?id=${app.globalData.activityId}` | 
		
	
		
			
			|  |  |  | //               app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } | 
		
	
		
			
			|  |  |  | //             // 积分 | 
		
	
		
			
			|  |  |  | //             else if (app.globalData.type == 'jf') { | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/integralmall/index', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'pc') { | 
		
	
		
			
			|  |  |  | //               // 停车 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/index/passCar', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'mc') { | 
		
	
		
			
			|  |  |  | //               // 我的券包 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/couponorder/index/index', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'mo') { | 
		
	
		
			
			|  |  |  | //               // 我的订单 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/order/index/index?id=all', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'ca') { | 
		
	
		
			
			|  |  |  | //               // 我的卡包 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/cardorder/index/index', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'sc') { | 
		
	
		
			
			|  |  |  | //               // 特享礼遇 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/specialcourtesy/specialcourtesy', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'rb') { | 
		
	
		
			
			|  |  |  | //               // 限时秒杀 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/rushToBuy/index', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'bl') { | 
		
	
		
			
			|  |  |  | //               // 砍价专场 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/bargain/bargain', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'mb') { | 
		
	
		
			
			|  |  |  | //               // 我的砍价 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/bargain/bargain?from=myhtml', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'sl') { | 
		
	
		
			
			|  |  |  | //               // 拼团专场 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/spellGroup/spellGroup', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'ms') { | 
		
	
		
			
			|  |  |  | //               // 我的拼团 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/spellGroup/spellGroup?from=myhtml', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'dc') { | 
		
	
		
			
			|  |  |  | //               // 消费卡 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/discountCardList/discountCardList', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'td') { | 
		
	
		
			
			|  |  |  | //               // 专题活动页 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/pages/topicDetail/index', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (app.globalData.type == 'ml') { | 
		
	
		
			
			|  |  |  | //               // 门店 | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = '/index/searchbar', | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (that.data.fromflag == 'coupondetail' && that.data.couponChannelIdflag) { | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelIdflag}`, | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else if (that.data.fromflag == 'spellcoupondetail' && that.data.couponChannelIdflag) { | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = `/pages/spellGroup/mySpellGroup/index?couponChannelId=${that.data.couponChannelIdflag}`, | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } else { | 
		
	
		
			
			|  |  |  | //               app.globalData.skipUrl = "/index/index", | 
		
	
		
			
			|  |  |  | //                 app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | //               that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | //             } | 
		
	
		
			
			|  |  |  | //           } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | //         }, | 
		
	
		
			
			|  |  |  | //         function (error) { | 
		
	
		
			
			|  |  |  | //           console.log(error) | 
		
	
		
			
			|  |  |  | //           wx.showToast({ | 
		
	
		
			
			|  |  |  | //             title: "请授权个人信息", | 
		
	
		
			
			|  |  |  | //             icon: "none" | 
		
	
		
			
			|  |  |  | //           }); | 
		
	
		
			
			|  |  |  | //         } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | //       ) | 
		
	
		
			
			|  |  |  | //         .catch(err => { | 
		
	
		
			
			|  |  |  | //           wx.showToast({ | 
		
	
		
			
			|  |  |  | //             title: err.errMsg, | 
		
	
		
			
			|  |  |  | //             icon: 'none', | 
		
	
		
			
			|  |  |  | //             duration: 2000, | 
		
	
		
			
			|  |  |  | //             mask: false | 
		
	
		
			
			|  |  |  | //           }); | 
		
	
		
			
			|  |  |  | //         }) | 
		
	
		
			
			|  |  |  | //     } | 
		
	
		
			
			|  |  |  | //   }) | 
		
	
		
			
			|  |  |  | // }, | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | bindGetUserInfo(e) { | 
		
	
		
			
			|  |  |  | wx.getUserProfile({ | 
		
	
		
			
			|  |  |  | desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写 | 
		
	
		
			
			|  |  |  | success: (res) => { | 
		
	
		
			
			|  |  |  | let that = this; | 
		
	
		
			
			|  |  |  | var iv = res.iv; | 
		
	
		
			
			|  |  |  | var encryptedData = res.encryptedData; | 
		
	
		
			
			|  |  |  | wx.getUserInfo({ | 
		
	
		
			
			|  |  |  | success: function(res) { | 
		
	
		
			
			|  |  |  | Http.post({ | 
		
	
		
			
			|  |  |  | url: config.api.getUserInfo, | 
		
	
		
			
			|  |  |  | data: { | 
		
	
		
			
			|  |  |  | encryptedData: encryptedData, | 
		
	
		
			
			|  |  |  | iv: iv | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 门店详情 | 
		
	
		
			
			|  |  |  | else if (that.data.optionData.id && app.globalData.type == 'md') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/index/searchbar/detail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | }).then( | 
		
	
		
			
			|  |  |  | function(res) { | 
		
	
		
			
			|  |  |  | if (that.data.wjId) { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/questionnaire/questionnaire?id=${that.data.wjId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 通过分享进入的门店详情页面 | 
		
	
		
			
			|  |  |  | else if (that.data.id && that.data.frommd == 'md') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/index/searchbar/detail/index?id=${that.data.id}`, | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | if (that.data.fromflag == 'poster') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/canvas/index?couponChannelId=${that.data.couponChannelId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.optionData.bt && that.data.optionData.id && app.globalData.type == 'bd') { | 
		
	
		
			
			|  |  |  | // 宣传页详情 | 
		
	
		
			
			|  |  |  | if (that.data.optionData.bt == '2') { | 
		
	
		
			
			|  |  |  | // 自由图文 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/freeBannerDetail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // | 
		
	
		
			
			|  |  |  | if (that.data.optionData.orderGroupId) { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/joinFrDpell/index?couponId=${that.data.optionData.couponId}&orderGroupId=${that.data.optionData.orderGroupId}&couponChannelId=${that.data.optionData.couponChannelId}&orderId=${that.data.optionData.orderId}&avatarUrl=${that.data.optionData.avatarUrl}&nickName=${that.data.optionData.nickName}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | if (that.data.path == 'index') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = "/pages/game/index" | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else { | 
		
	
		
			
			|  |  |  | // 标准格式 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/bannerdetail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | //返回主页 | 
		
	
		
			
			|  |  |  | // if (that.data.couponChannelId && !that.data.cuserId && !that.data.spellGroup||that.data.couponChannelId && !that.data.cuserId&&app.globalData.type == 'cd') { | 
		
	
		
			
			|  |  |  | if (that.data.couponChannelId && !that.data.cuserId && !that.data.spellGroup && app.globalData.type == 'cd') { | 
		
	
		
			
			|  |  |  | // 跳转普通券/消费卡/限时秒杀/砍价详情 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'navigateTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.couponChannelId && that.data.cuserId && !that.data.spellGroup && app.globalData.type != 'sd') { | 
		
	
		
			
			|  |  |  | // 来自转赠 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/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}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.couponChannelId && app.globalData.type == 'sd' || that.data.couponChannelId && that.data.spellGroup) { | 
		
	
		
			
			|  |  |  | // 拼团详情页 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/spellGroup/mySpellGroup/index?couponChannelId=${that.data.couponChannelId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.optionData.id && app.globalData.type == 'gm') { | 
		
	
		
			
			|  |  |  | // 游戏页面 | 
		
	
		
			
			|  |  |  | that.getGameOne(app.globalData.token, that.data.optionData.id) | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | } else if (that.data.optionData.id && app.globalData.type == 'td') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/topicDetail/index?id=${that.data.optionData.id}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 报名活动 | 
		
	
		
			
			|  |  |  | else if (that.data.optionData.id && app.globalData.type == 'ra') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/radetail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 报名签到 | 
		
	
		
			
			|  |  |  | else if (that.data.optionData.id && app.globalData.type == 'si') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/acSignIn/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 门店详情 | 
		
	
		
			
			|  |  |  | else if (that.data.optionData.id && app.globalData.type == 'md') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/index/searchbar/detail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 通过分享进入的门店详情页面 | 
		
	
		
			
			|  |  |  | else if (that.data.id && that.data.frommd == 'md') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/index/searchbar/detail/index?id=${that.data.id}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.optionData.bt && that.data.optionData.id && app.globalData.type == 'bd') { | 
		
	
		
			
			|  |  |  | // 宣传页详情 | 
		
	
		
			
			|  |  |  | if (that.data.optionData.bt == '2') { | 
		
	
		
			
			|  |  |  | // 自由图文 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/freeBannerDetail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else { | 
		
	
		
			
			|  |  |  | // 标准格式 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/bannerdetail/index?id=${that.data.optionData.id}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } else if (that.data.orderId || that.data.orderId && app.globalData.type == 'bg') { | 
		
	
		
			
			|  |  |  | // 参与砍价 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/bargain/bargainDatail/bargainDatail?orderId=${that.data.orderId}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'navigateTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'uc') { | 
		
	
		
			
			|  |  |  | // 我的 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/index/user', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'in') { | 
		
	
		
			
			|  |  |  | // 首页 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/index/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == "qd") { | 
		
	
		
			
			|  |  |  | //每日签到 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = "/pages/activityCalendar/activityCalendar" | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == "hdrl") { | 
		
	
		
			
			|  |  |  | //活动日历 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/radetail/index?id=${app.globalData.activityId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 积分 | 
		
	
		
			
			|  |  |  | else if (app.globalData.type == 'jf') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/integralmall/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'pc') { | 
		
	
		
			
			|  |  |  | // 停车 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/index/passCar', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'mc') { | 
		
	
		
			
			|  |  |  | // 我的券包 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/couponorder/index/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'mo') { | 
		
	
		
			
			|  |  |  | // 我的订单 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/order/index/index?id=all', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'ca') { | 
		
	
		
			
			|  |  |  | // 我的卡包 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/cardorder/index/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'sc') { | 
		
	
		
			
			|  |  |  | // 特享礼遇 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/specialcourtesy/specialcourtesy', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'rb') { | 
		
	
		
			
			|  |  |  | // 限时秒杀 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/rushToBuy/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'bl') { | 
		
	
		
			
			|  |  |  | // 砍价专场 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/bargain/bargain', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'mb') { | 
		
	
		
			
			|  |  |  | // 我的砍价 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/bargain/bargain?from=myhtml', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'sl') { | 
		
	
		
			
			|  |  |  | // 拼团专场 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/spellGroup/spellGroup', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'ms') { | 
		
	
		
			
			|  |  |  | // 我的拼团 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/spellGroup/spellGroup?from=myhtml', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'dc') { | 
		
	
		
			
			|  |  |  | // 消费卡 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/discountCardList/discountCardList', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'td') { | 
		
	
		
			
			|  |  |  | // 专题活动页 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/topicDetail/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'ml') { | 
		
	
		
			
			|  |  |  | // 门店 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/index/searchbar', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.fromflag == 'coupondetail' && that.data.couponChannelIdflag) { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelIdflag}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.fromflag == 'spellcoupondetail' && that.data.couponChannelIdflag) { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/spellGroup/mySpellGroup/index?couponChannelId=${that.data.couponChannelIdflag}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = "/index/index", | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } else if (that.data.orderId || that.data.orderId && app.globalData.type == 'bg') { | 
		
	
		
			
			|  |  |  | // 参与砍价 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/bargain/bargainDatail/bargainDatail?orderId=${that.data.orderId}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'navigateTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'uc') { | 
		
	
		
			
			|  |  |  | // 我的 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/index/user', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'in') { | 
		
	
		
			
			|  |  |  | // 首页 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/index/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == "qd"){ | 
		
	
		
			
			|  |  |  | //每日签到 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = "/pages/activityCalendar/activityCalendar" | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'reLaunch' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | else if (app.globalData.type == "hdrl") { | 
		
	
		
			
			|  |  |  | //活动日历 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/radetail/index?id=${app.globalData.activityId}` | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | // 积分 | 
		
	
		
			
			|  |  |  | else if (app.globalData.type == 'jf') { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/integralmall/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'pc') { | 
		
	
		
			
			|  |  |  | // 停车 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/index/passCar', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'mc') { | 
		
	
		
			
			|  |  |  | // 我的券包 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/couponorder/index/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'mo') { | 
		
	
		
			
			|  |  |  | // 我的订单 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/order/index/index?id=all', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'ca') { | 
		
	
		
			
			|  |  |  | // 我的卡包 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/cardorder/index/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'sc') { | 
		
	
		
			
			|  |  |  | // 特享礼遇 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/specialcourtesy/specialcourtesy', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'rb') { | 
		
	
		
			
			|  |  |  | // 限时秒杀 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/rushToBuy/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'bl') { | 
		
	
		
			
			|  |  |  | // 砍价专场 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/bargain/bargain', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'mb') { | 
		
	
		
			
			|  |  |  | // 我的砍价 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/bargain/bargain?from=myhtml', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'sl') { | 
		
	
		
			
			|  |  |  | // 拼团专场 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/spellGroup/spellGroup', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'ms') { | 
		
	
		
			
			|  |  |  | // 我的拼团 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/spellGroup/spellGroup?from=myhtml', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'dc') { | 
		
	
		
			
			|  |  |  | // 消费卡 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/discountCardList/discountCardList', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'td') { | 
		
	
		
			
			|  |  |  | // 专题活动页 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/pages/topicDetail/index', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (app.globalData.type == 'ml') { | 
		
	
		
			
			|  |  |  | // 门店 | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = '/index/searchbar', | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.fromflag == 'coupondetail' && that.data.couponChannelIdflag) { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/coupon/detail/index?couponChannelId=${that.data.couponChannelIdflag}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else if (that.data.fromflag == 'spellcoupondetail' && that.data.couponChannelIdflag) { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = `/pages/spellGroup/mySpellGroup/index?couponChannelId=${that.data.couponChannelIdflag}`, | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'redirectTo' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } else { | 
		
	
		
			
			|  |  |  | app.globalData.skipUrl = "/index/index", | 
		
	
		
			
			|  |  |  | app.globalData.skip = 'switchTab' | 
		
	
		
			
			|  |  |  | that.judgePhonelngo() | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | function(error) { | 
		
	
		
			
			|  |  |  | console.log(error) | 
		
	
		
			
			|  |  |  | wx.showToast({ | 
		
	
		
			
			|  |  |  | title: "请授权个人信息", | 
		
	
		
			
			|  |  |  | icon: "none" | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | function(error) { | 
		
	
		
			
			|  |  |  | console.log(error) | 
		
	
		
			
			|  |  |  | wx.showToast({ | 
		
	
		
			
			|  |  |  | title: "请授权个人信息", | 
		
	
		
			
			|  |  |  | icon: "none" | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | ) | 
		
	
		
			
			|  |  |  | .catch(err => { | 
		
	
		
			
			|  |  |  | wx.showToast({ | 
		
	
		
			
			|  |  |  | title: err.errMsg, | 
		
	
		
			
			|  |  |  | icon: 'none', | 
		
	
		
			
			|  |  |  | duration: 2000, | 
		
	
		
			
			|  |  |  | mask: false | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | ) | 
		
	
		
			
			|  |  |  | .catch(err => { | 
		
	
		
			
			|  |  |  | wx.showToast({ | 
		
	
		
			
			|  |  |  | title: err.errMsg, | 
		
	
		
			
			|  |  |  | icon: 'none', | 
		
	
		
			
			|  |  |  | duration: 2000, | 
		
	
		
			
			|  |  |  | mask: false | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | getGameOne: function(token, id) { | 
		
	
		
			
			|  |  |  | let _this = this; | 
		
	
	
		
			
				|  |  | 
 |