| 
				
				
					
				
				
				 | 
			
			 | 
			@@ -32,21 +32,16 @@ Page({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			   * 生命周期函数--监听页面初次渲染完成 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			   */ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  onLoad: function(options) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    console.log(options,2222222) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    if(options.played=="true"){ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      this.setData({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        played:true | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      }) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    var that = this; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    console.log(options); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    console.log("这是options") | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    var scene = decodeURIComponent(options.scene); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    that.setData({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      scene:scene | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    }); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    // console.log(that.data.scene) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    // console.log(scene); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    app.getLocation(); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    if (options.couponChannelId && options.couponId){ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      that.userLogin(options.couponChannelId, options.couponId); | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -60,9 +55,7 @@ Page({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    }) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    .then(res=>{ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      // console.log(res.data.weapNote); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      let weapNote = JSON.parse(res.data.weapNote); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      // console.log(weapNote.firstpage); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      that.setData({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        desc: weapNote.firstpage.desc, | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        title: weapNote.firstpage.title | 
		
		
	
	
		
			
				| 
				
				
				
					
				
				 | 
			
			 | 
			@@ -70,7 +63,6 @@ Page({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    }) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  }, | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  onShow:function(){ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    // console.log(app.globalData.havePlayEd) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    this.setData({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      havePlayEd: app.globalData.havePlayEd ? app.globalData.havePlayEd:false | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    }) | 
		
		
	
	
		
			
				| 
				
					
				
				
					
				
				
				 | 
			
			 | 
			@@ -118,7 +110,6 @@ Page({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			      }) => { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			        wx.getSystemInfo({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			          success: function (res) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            // console.log(JSON.stringify(res)) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            that.setData({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              systemInfo: JSON.stringify(res) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            }) | 
		
		
	
	
		
			
				| 
				
					
				
				
					
				
				
				 | 
			
			 | 
			@@ -157,10 +148,7 @@ Page({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              that.setData({ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                showGame: true | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              }) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              /** | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			               * 暂时注释 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			               */ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              // that.getGameOne(res.data.token) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			              that.getGameOne(res.data.token) | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            Http.setToken(res.data.token); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            that.checkUserCarStatus(); | 
		
		
	
	
		
			
				| 
				
					
				
				
				
				 | 
			
			 | 
			
  |