|
|
|
@ -93,8 +93,8 @@ class Messagerouting extends Component{
|
|
|
|
|
// console.log("64");
|
|
|
|
|
// console.log(data);
|
|
|
|
|
this.setState({
|
|
|
|
|
unread_message_count:data.unread_message_count,
|
|
|
|
|
unread_tiding_count:data.unread_tiding_count,
|
|
|
|
|
unread_message_count:parseInt(data.unread_message_count),
|
|
|
|
|
unread_tiding_count:parseInt(data.unread_tiding_count),
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -172,11 +172,11 @@ class Messagerouting extends Component{
|
|
|
|
|
<ul className="edu-back-white">
|
|
|
|
|
<li className={routing ===1?"nav pr active":"nav pr"}>
|
|
|
|
|
<a onClick={(value)=>this.SwitchonClick(1)}>消息</a>
|
|
|
|
|
{parseInt(unread_tiding_count)>0?<span className="new-info">{unread_message_count}</span>:""}
|
|
|
|
|
{unread_tiding_count>0?<span className="new-info">{unread_message_count}</span>:""}
|
|
|
|
|
</li>
|
|
|
|
|
<li className={routing ===2?"nav pr active":routing ===3?"nav pr active":"nav pr"}>
|
|
|
|
|
<a onClick={(value)=>this.SwitchonClick(2)}>私信</a>
|
|
|
|
|
{parseInt(unread_tiding_count)>0?<span className="new-info">{unread_tiding_count}</span>:""}
|
|
|
|
|
{unread_tiding_count>0?<span className="new-info">{unread_tiding_count}</span>:""}
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|