|
|
|
@ -81,11 +81,11 @@ class Messagerouting extends Component{
|
|
|
|
|
});
|
|
|
|
|
this.Messageprivatemessageunreadmessage(this.props.current_user.user_id);
|
|
|
|
|
if(value===1){
|
|
|
|
|
this.props.history.replace(`/message/${this.props.current_user.user_id}/user_tidings`);
|
|
|
|
|
this.props.history.replace(`/messages/${this.props.current_user.user_id}/user_tidings`);
|
|
|
|
|
this.homeworkendss1(child);
|
|
|
|
|
}
|
|
|
|
|
if(value===2){
|
|
|
|
|
this.props.history.replace(`/message/${this.props.current_user.user_id}/private_messages`);
|
|
|
|
|
this.props.history.replace(`/messages/${this.props.current_user.user_id}/private_messages`);
|
|
|
|
|
this.homeworkendss2(child);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -114,10 +114,10 @@ class Messagerouting extends Component{
|
|
|
|
|
routing:i,
|
|
|
|
|
});
|
|
|
|
|
if(i===1){
|
|
|
|
|
this.props.history.replace(`/message/${this.props.current_user.user_id}/user_tidings`);
|
|
|
|
|
this.props.history.replace(`/messages/${this.props.current_user.user_id}/user_tidings`);
|
|
|
|
|
}
|
|
|
|
|
if(i===2){
|
|
|
|
|
this.props.history.replace(`/message/${this.props.current_user.user_id}/private_messages`);
|
|
|
|
|
this.props.history.replace(`/messages/${this.props.current_user.user_id}/private_messages`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
@ -125,7 +125,7 @@ class Messagerouting extends Component{
|
|
|
|
|
routing:i,
|
|
|
|
|
});
|
|
|
|
|
console.log("22222222222");
|
|
|
|
|
this.props.history.replace(`/message/${this.props.current_user.user_id}/message_detail?target_ids=${id}`);
|
|
|
|
|
this.props.history.replace(`/messages/${this.props.current_user.user_id}/message_detail?target_ids=${id}`);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
@ -215,19 +215,19 @@ class Messagerouting extends Component{
|
|
|
|
|
|
|
|
|
|
<Switch>
|
|
|
|
|
{/*/!*消息自路由*! name 是 /message/info/:userid/*/}
|
|
|
|
|
<Route path="/message/:userid/user_tidings"
|
|
|
|
|
<Route path="/messages/:userid/user_tidings"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<MessagSub triggerRef={this.bindRef} {...this.state} {...this.props} {...props} Message2={()=>this.Message2()} Mtab={(i)=>this.myxiaoxisixintab(i)}></MessagSub>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*/!*私信*! name 是letter/*/}
|
|
|
|
|
<Route path="/message/:userid/private_messages"
|
|
|
|
|
<Route path="/messages/:userid/private_messages"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<MessagePrivate triggerRef={this.bindRef} {...this.state} {...this.props} {...props} Message2={()=>this.Message2()} Modifyur={(i,item)=>this.Modifyur(i,item)} Mtab={(i)=>this.myxiaoxisixintab(i)}></MessagePrivate> )
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*/!*私信聊天页面*! letters/*/}
|
|
|
|
|
<Route path="/message/:userid/message_detail"
|
|
|
|
|
<Route path="/messages/:userid/message_detail"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<MessagChat triggerRef={this.bindRef} {...this.state} {...this.props} {...props} Message2={()=>this.Message2()} Modifyur={(i)=>this.Modifyur(i)} Mtab={(i)=>this.myxiaoxisixintab(i)}></MessagChat>)
|
|
|
|
|
}
|
|
|
|
|