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.
		
		
		
		
		
			
		
			
				
					
					
						
							53 lines
						
					
					
						
							1.2 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							53 lines
						
					
					
						
							1.2 KiB
						
					
					
				| const app = getApp() | |
| Page({ | |
|     data: { | |
|         monthOptions: [{ | |
|             value: 1, | |
|             label: '本月' | |
|         }, { | |
|             value: 2, | |
|             label: '上月' | |
|         }, { | |
|             value: 3, | |
|             label: '近3月' | |
|         }, { | |
|             value: 4, | |
|             label: '近半年' | |
|         }, { | |
|             value: 5, | |
|             label: '近1年' | |
|         }], | |
|         monthIndex: 0, | |
|         stayVal: '1', | |
|         tabValue: '' | |
|     }, | |
|     onLoad(options) { | |
|         this.setData({ | |
|             statusHeight: app.globalData.deviceInfo.statusHeight, | |
|             navigationHeight: app.globalData.deviceInfo.navigationHeight, | |
|             agencyName: app.globalData.user.agencyName, | |
|         }) | |
|     }, | |
|     monthChange({currentTarget: {dataset: {index}}}) { | |
|         this.setData({ | |
|             monthIndex: index | |
|         }) | |
|     }, | |
|     gotopage({currentTarget: {dataset}}) { | |
|         const {url} = dataset | |
|         console.log(url) | |
|         wx.navigateTo({ | |
|             url | |
|         }) | |
|     }, | |
|     setStay({currentTarget: {dataset: {index}}}) { | |
|         this.setData({ | |
|             stayVal: index | |
|         }) | |
|     }, | |
|     tabChange({detail}) { | |
|         this.setData({ | |
|             tabValue: detail | |
|         }) | |
|     } | |
| }) |