| 
				
			 | 
			
			
				@@ -92,10 +92,10 @@ class App extends Component { 
			 | 
		
	
		
			
			| 
				92
			 | 
			
				92
			 | 
			
			
				   sGetComment({ page = 1 } = {}) { 
			 | 
		
	
		
			
			| 
				93
			 | 
			
				93
			 | 
			
			
				     const { pageType } = this.props; 
			 | 
		
	
		
			
			| 
				94
			 | 
			
				94
			 | 
			
			
				     this.handleChangeLoading("sGetComment", true); 
			 | 
		
	
		
			
			| 
				95
			 | 
			
				
			 | 
			
			
				-    const { API, type, businessId } = this.props; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				95
			 | 
			
			
				+    const { API, type, businessId, limit } = this.props; 
			 | 
		
	
		
			
			| 
				96
			 | 
			
				96
			 | 
			
			
				     this.axios 
			 | 
		
	
		
			
			| 
				97
			 | 
			
				97
			 | 
			
			
				       .get( 
			 | 
		
	
		
			
			| 
				98
			 | 
			
				
			 | 
			
			
				-        `${API}/comments?type=${type}&business_id=${businessId}&page=${page}&limit=${LIMIT}` 
			 | 
		
	
		
			
			| 
				
			 | 
			
				98
			 | 
			
			
				+        `${API}/comments?type=${type}&business_id=${businessId}&page=${page}&limit=${limit}` 
			 | 
		
	
		
			
			| 
				99
			 | 
			
				99
			 | 
			
			
				       ) 
			 | 
		
	
		
			
			| 
				100
			 | 
			
				100
			 | 
			
			
				       .then(response => { 
			 | 
		
	
		
			
			| 
				101
			 | 
			
				101
			 | 
			
			
				         const { list, page, total } = response.data; 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -136,9 +136,9 @@ class App extends Component { 
			 | 
		
	
		
			
			| 
				136
			 | 
			
				136
			 | 
			
			
				    */ 
			 | 
		
	
		
			
			| 
				137
			 | 
			
				137
			 | 
			
			
				   sGetReply({ commentId, page = 1 } = {}) { 
			 | 
		
	
		
			
			| 
				138
			 | 
			
				138
			 | 
			
			
				     this.handleChangeLoading("sGetReply", true); 
			 | 
		
	
		
			
			| 
				139
			 | 
			
				
			 | 
			
			
				-    const { API } = this.props; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				139
			 | 
			
			
				+    const { API, limit } = this.props; 
			 | 
		
	
		
			
			| 
				140
			 | 
			
				140
			 | 
			
			
				     this.axios 
			 | 
		
	
		
			
			| 
				141
			 | 
			
				
			 | 
			
			
				-      .get(`${API}/replies?comment_id=${commentId}&page=${page}&limit=${LIMIT}`) 
			 | 
		
	
		
			
			| 
				
			 | 
			
				141
			 | 
			
			
				+      .get(`${API}/replies?comment_id=${commentId}&page=${page}&limit=${limit}`) 
			 | 
		
	
		
			
			| 
				142
			 | 
			
				142
			 | 
			
			
				       .then(response => { 
			 | 
		
	
		
			
			| 
				143
			 | 
			
				143
			 | 
			
			
				         if (!response.data.list) { 
			 | 
		
	
		
			
			| 
				144
			 | 
			
				144
			 | 
			
			
				           message.info("没有更多数据了!"); 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -442,7 +442,9 @@ App.propTypes = { 
			 | 
		
	
		
			
			| 
				442
			 | 
			
				442
			 | 
			
			
				   userId: PropTypes.number, // 用户id, comment内部不维护用户id, 调用组件时传递过来, 目前用于判断是否显示删除按钮 
			 | 
		
	
		
			
			| 
				443
			 | 
			
				443
			 | 
			
			
				   pageType: PropTypes.string, // 分页类型 
			 | 
		
	
		
			
			| 
				444
			 | 
			
				444
			 | 
			
			
				   page: PropTypes.number, // 页码 
			 | 
		
	
		
			
			| 
				
			 | 
			
				445
			 | 
			
			
				+  limit: PropTypes.number, // 一次加载评论数量 
			 | 
		
	
		
			
			| 
				445
			 | 
			
				446
			 | 
			
			
				   onPageChange: PropTypes.func, // 页码变化回调 
			 | 
		
	
		
			
			| 
				
			 | 
			
				447
			 | 
			
			
				+  onGetMoreBtnClick: PropTypes.func, // 点击查看更多按钮回调 
			 | 
		
	
		
			
			| 
				446
			 | 
			
				448
			 | 
			
			
				   onDelete: PropTypes.func 
			 | 
		
	
		
			
			| 
				447
			 | 
			
				449
			 | 
			
			
				 }; 
			 | 
		
	
		
			
			| 
				448
			 | 
			
				450
			 | 
			
			
				  
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -455,6 +457,8 @@ App.defaultProps = { 
			 | 
		
	
		
			
			| 
				455
			 | 
			
				457
			 | 
			
			
				   showAlertFavor: false, 
			 | 
		
	
		
			
			| 
				456
			 | 
			
				458
			 | 
			
			
				   showError: true, 
			 | 
		
	
		
			
			| 
				457
			 | 
			
				459
			 | 
			
			
				   pageType: "more", 
			 | 
		
	
		
			
			| 
				
			 | 
			
				460
			 | 
			
			
				+  limit: LIMIT, 
			 | 
		
	
		
			
			| 
				
			 | 
			
				461
			 | 
			
			
				+  onGetMoreBtnClick: () => {}, 
			 | 
		
	
		
			
			| 
				458
			 | 
			
				462
			 | 
			
			
				   onPageChange: page => {}, 
			 | 
		
	
		
			
			| 
				459
			 | 
			
				463
			 | 
			
			
				   onDelete: () => {} 
			 | 
		
	
		
			
			| 
				460
			 | 
			
				464
			 | 
			
			
				 }; 
			 |