|
@@ -12,7 +12,7 @@ class Collection extends Component {
|
|
|
nub:'1'
|
|
|
};
|
|
|
}
|
|
|
- //服务
|
|
|
+ //关注
|
|
|
loadDataService(page){
|
|
|
this.setState({
|
|
|
loading:true,
|
|
@@ -38,6 +38,7 @@ class Collection extends Component {
|
|
|
key: i,
|
|
|
id: thisdata.uid,
|
|
|
name:thisdata.username,
|
|
|
+ expert:thisdata.expert,
|
|
|
introduce:thisdata.introduction&&thisdata.introduction.length>40?thisdata.introduction.substr(0,40)+'...':thisdata.introduction,
|
|
|
img: thisdata.headPortraitUrl, //编号
|
|
|
});
|
|
@@ -70,10 +71,14 @@ class Collection extends Component {
|
|
|
}
|
|
|
jump(item){
|
|
|
let url='';
|
|
|
- switch(this.state.nub){
|
|
|
- case '1':
|
|
|
+ switch(item.expert){
|
|
|
+ case 1:
|
|
|
url = globalConfig.context+`/portal/subscriberDetail.html?uid=${item.id}&type=0`;
|
|
|
- break;
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ url = globalConfig.context+`/portal/adviser/adviserDetail?id=${item.id}`;
|
|
|
+ break;
|
|
|
+ default:return;
|
|
|
}
|
|
|
window.open(url);
|
|
|
}
|
|
@@ -93,12 +98,12 @@ class Collection extends Component {
|
|
|
return<Col span={5} key={index} onClick={(e)=>{this.jump(item)}}>
|
|
|
<div className="img">
|
|
|
<div className="imgHeader">
|
|
|
- <div className="popImgBj">
|
|
|
+ <div className={item.expert=='1'?"popImgBj":'adviserInit'}>
|
|
|
{item.img?<img src={globalConfig.avatarHost+'/upload'+item.img} alt=""/>:''}
|
|
|
</div>
|
|
|
<div className="divP"><p>{item.introduce}</p></div>
|
|
|
</div>
|
|
|
- <p className="txt">{item.name?item.name:'佚名'}</p>
|
|
|
+ <p className="txt">{item.name?item.name:'佚名'}<span>{item.expert==1?' - (专家)':' - (顾问)'}</span></p>
|
|
|
</div>
|
|
|
</Col>
|
|
|
})
|