| 
					
				 | 
			
			
				@@ -2,6 +2,7 @@ import React, { Component } from 'react'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { Button,Radio ,message,Row,Col, Spin,Pagination} from 'antd'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import axios from 'axios'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import './collection.less'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import {getAdviserType} from '@/tools.js' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 class Collection extends Component { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	constructor(props) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -39,6 +40,7 @@ class Collection extends Component { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         id: thisdata.uid, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         name:thisdata.username, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         expert:thisdata.expert, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        consultantType:thisdata.consultantType, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         introduce:thisdata.introduction&&thisdata.introduction.length>40?thisdata.introduction.substr(0,40)+'...':thisdata.introduction, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         img: thisdata.headPortraitUrl, //编号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -68,17 +70,22 @@ class Collection extends Component { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             current:current, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             pageSize:pageSize 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.loadDataService(current) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     jump(item){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let url=''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        switch(item.expert){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            case 1: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                url = globalConfig.context+`/portal/subscriberDetail.html?uid=${item.id}&type=0`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            case 2: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                url = globalConfig.context+`/portal/adviser/adviserDetail?id=${item.id}`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            default:return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(item.consultantType=='4'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            url = globalConfig.context+`/portal/service/safeguardingDetail?id=${item.id}`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            switch(item.expert){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case 1: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    url = globalConfig.context+`/portal/subscriberDetail.html?uid=${item.id}&type=0`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                case 2: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    url = globalConfig.context+`/portal/adviser/adviserDetail?id=${item.id}`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                default:return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         window.open(url); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -103,7 +110,7 @@ class Collection extends Component { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                             <div className="divP"><p>{item.introduce}</p></div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                         </div>   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                        <p className="txt">{item.name?item.name:'佚名'}<span>{item.expert==1?' - (专家)':' - (顾问)'}</span></p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                        <p className="txt">{item.name?item.name:'佚名'}<span>{item.expert==1?' - (专家)':' - ('+getAdviserType(item.consultantType)+')'}</span></p> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 </Col> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         }) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -111,9 +118,8 @@ class Collection extends Component { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </Row>: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <Row style={{color:'#333'}}>暂无数据</Row>} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 </Spin> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                {this.state.total?<Pagination className="page" pageSize={8} current={this.state.current} total={this.state.total} onChange={this.onShowSizeChange.bind(this)}/>:''} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                {this.state.total?<Pagination className="page" pageSize={8} current={this.state.current} total={this.state.total} onChange={(e,pageSize)=>{this.onShowSizeChange(e,pageSize)}}/>:''} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |