You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							21 lines
						
					
					
						
							516 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							21 lines
						
					
					
						
							516 B
						
					
					
				
								const app = getApp()
							 | 
						|
								Page({
							 | 
						|
								  data: {
							 | 
						|
								    worktoken: ''
							 | 
						|
								  },
							 | 
						|
								  onLoad: function (options) {
							 | 
						|
								    console.log(options);
							 | 
						|
								    console.log( decodeURIComponent(options.worktoken));
							 | 
						|
								    if (options.token) {
							 | 
						|
								      this.setData({
							 | 
						|
								        worktoken: `${options.worktoken}`
							 | 
						|
								      })
							 | 
						|
								      console.log('url',this.data.worktoken)
							 | 
						|
								    } else {
							 | 
						|
								      this.setData({
							 | 
						|
								        worktoken: decodeURIComponent(options.worktoken)
							 | 
						|
								        // url:`${options.url}?deptName=${options.deptName}&gridId=${options.gridId}`
							 | 
						|
								      })
							 | 
						|
								    }
							 | 
						|
								  }
							 | 
						|
								})
							 | 
						|
								
							 |