|  |  | @@ -145,48 +145,57 @@ Page({ | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | gotogame: function() { | 
		
	
		
			
			|  |  |  | let that = this; | 
		
	
		
			
			|  |  |  | Http.get({ | 
		
	
		
			
			|  |  |  | if (!that.data.showIf){ | 
		
	
		
			
			|  |  |  | wx.showToast({ | 
		
	
		
			
			|  |  |  | title: '暂无游戏频道', | 
		
	
		
			
			|  |  |  | icon:"none", | 
		
	
		
			
			|  |  |  | duration:3000 | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }else{ | 
		
	
		
			
			|  |  |  | Http.get({ | 
		
	
		
			
			|  |  |  | url: config.api.checkPhoneStatus, | 
		
	
		
			
			|  |  |  | data: {} | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | .then(res => { | 
		
	
		
			
			|  |  |  | var data = { | 
		
	
		
			
			|  |  |  | couponChannelId: "" + that.data.couponChannelId, | 
		
	
		
			
			|  |  |  | couponId: "" + that.data.couponId | 
		
	
		
			
			|  |  |  | }; | 
		
	
		
			
			|  |  |  | if (that.data.couponChannelId == null) { | 
		
	
		
			
			|  |  |  | .then(res => { | 
		
	
		
			
			|  |  |  | var data = { | 
		
	
		
			
			|  |  |  | couponChannelId: "" + that.data.couponChannelId, | 
		
	
		
			
			|  |  |  | couponId: "" + that.data.couponId | 
		
	
		
			
			|  |  |  | }; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | wx.redirectTo({ | 
		
	
		
			
			|  |  |  | url: '/pages/game/index?url=' + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | .catch(err => { | 
		
	
		
			
			|  |  |  | if (err.code == 11005) { | 
		
	
		
			
			|  |  |  | // 用户手机未授权 | 
		
	
		
			
			|  |  |  | /** | 
		
	
		
			
			|  |  |  | * 将值传到用户手机号授权的页面 | 
		
	
		
			
			|  |  |  | * | 
		
	
		
			
			|  |  |  | */ | 
		
	
		
			
			|  |  |  | wx.redirectTo({ | 
		
	
		
			
			|  |  |  | url: "/pages/getphoneInfo/index?path=index&url=" + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | } else if (err.code == 11006) { | 
		
	
		
			
			|  |  |  | // 用户手机已加密 | 
		
	
		
			
			|  |  |  | if (that.data.couponChannelId == null) { | 
		
	
		
			
			|  |  |  | var data = { | 
		
	
		
			
			|  |  |  | couponId: "" + that.data.couponId | 
		
	
		
			
			|  |  |  | }; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | wx.redirectTo({ | 
		
	
		
			
			|  |  |  | url: "/pages/phoneinput/phoneinput?path=index&url=" + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | } else { | 
		
	
		
			
			|  |  |  | wx.showToast({ | 
		
	
		
			
			|  |  |  | title: err.message, | 
		
	
		
			
			|  |  |  | icon: 'none', | 
		
	
		
			
			|  |  |  | duration: 2000, | 
		
	
		
			
			|  |  |  | mask: false | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | url: '/pages/game/index?url=' + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | .catch(err => { | 
		
	
		
			
			|  |  |  | if (err.code == 11005) { | 
		
	
		
			
			|  |  |  | // 用户手机未授权 | 
		
	
		
			
			|  |  |  | /** | 
		
	
		
			
			|  |  |  | * 将值传到用户手机号授权的页面 | 
		
	
		
			
			|  |  |  | * | 
		
	
		
			
			|  |  |  | */ | 
		
	
		
			
			|  |  |  | wx.redirectTo({ | 
		
	
		
			
			|  |  |  | url: "/pages/getphoneInfo/index?path=index&url=" + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | } else if (err.code == 11006) { | 
		
	
		
			
			|  |  |  | // 用户手机已加密 | 
		
	
		
			
			|  |  |  | wx.redirectTo({ | 
		
	
		
			
			|  |  |  | url: "/pages/phoneinput/phoneinput?path=index&url=" + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | } else { | 
		
	
		
			
			|  |  |  | wx.showToast({ | 
		
	
		
			
			|  |  |  | title: err.message, | 
		
	
		
			
			|  |  |  | icon: 'none', | 
		
	
		
			
			|  |  |  | duration: 2000, | 
		
	
		
			
			|  |  |  | mask: false | 
		
	
		
			
			|  |  |  | }); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  |  | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | mySpecial: function() { | 
		
	
		
			
			|  |  |  | console.log("special"); | 
		
	
	
		
			
				|  |  | @@ -305,11 +314,11 @@ Page({ | 
		
	
		
			
			|  |  |  | url: '/pages/discountCardList/discountCardList', | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | gotoGame: function () { | 
		
	
		
			
			|  |  |  | wx.navigateTo({ | 
		
	
		
			
			|  |  |  | url: '/pages/game/index', | 
		
	
		
			
			|  |  |  | }) | 
		
	
		
			
			|  |  |  | }, | 
		
	
		
			
			|  |  |  | // gotoGame: function () { | 
		
	
		
			
			|  |  |  | //   wx.navigateTo({ | 
		
	
		
			
			|  |  |  | //     url: '/pages/game/index', | 
		
	
		
			
			|  |  |  | //   }) | 
		
	
		
			
			|  |  |  | // }, | 
		
	
		
			
			|  |  |  | gotoJfsc: function () { | 
		
	
		
			
			|  |  |  | wx.navigateTo({ | 
		
	
		
			
			|  |  |  | url: '/pages/integralmall/index', | 
		
	
	
		
			
				|  |  | 
 |