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.
		
		
		
		
		
			
		
			
				
					
					
						
							44 lines
						
					
					
						
							1.0 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							44 lines
						
					
					
						
							1.0 KiB
						
					
					
				| import {getEventUnSolvedByUserId} from "../../../../utils/statisticsApi"; | |
| 
 | |
| Page({ | |
|     data: { | |
|         pageNo: 1, | |
|         pageSize: 10, | |
|         list: [], | |
|         total: 0, | |
|         id: 0, | |
|         name: '', | |
|         mobile: '', | |
|         agencyName: '', | |
|     }, | |
|     onLoad(options) { | |
|         this.setData({ | |
|             id: options.id, | |
|             name: options.name, | |
|             mobile: options.mobile, | |
|             agencyName: options.agencyName, | |
|         }) | |
|         this.getList() | |
|     }, | |
| 
 | |
|     getList() { | |
|         getEventUnSolvedByUserId({ | |
|             pageNo: this.data.pageNo, | |
|             pageSize: this.data.pageSize, | |
|             reportUserId: this.data.id | |
|         }).then(({data}) => { | |
|             this.setData({ | |
|                 list: this.data.list.concat(data.list), | |
|                 total: data.total | |
|             }) | |
|         }); | |
|     }, | |
|     onReachBottom() { | |
|         if (this.data.list.length < this.data.total) { | |
|             this.setData({ | |
|                 pageNo: this.data.pageNo + 1 | |
|             }) | |
|             this.getList() | |
|         } | |
|     } | |
| }) |