dev_cs_new
杨树明 6 years ago
parent 5b0f91b3b6
commit 4476d177ad

@ -98,32 +98,26 @@ class MessagChat extends Component{
// 点击了用户
Clickedontheuser=(user)=>{
console.log("点击了用户");
console.log(user);
// console.log("点击了用户");
// console.log(user);
this.setState({
myyslusers:user,
mess:true,
})
this.props.history.replace(`/message/${user}/user_tidings`);
}
setreplyfun=()=>{
let contents=this.messageRef.current.getValue().trim();
console.log(this.props)
let target_ids="";
let target_ids=this.props.match.params.userid;
let url = `/users/${this.props.current_user.user_id}/private_messages.json`;
axios.post(url, {
target_id: target_ids,
content: contents
})
.then((response) => {
if (response.data.status == '0') {
this.setState({ modulationModalVisible: false })
this.props.showNotification('调分成功')
this.fetchList()
}
console.log(response);
})
.catch(function (error) {
console.log(error);

@ -37,8 +37,8 @@ class Messagerouting extends Component{
}
componentDidMount(){
console.log("Messagerouting");
console.log(this.props);
// console.log("Messagerouting");
// console.log(this.props);
let courstype=this.props.location.search;
// // courstype=courstype.splice('/');
// // courstype=courstype[3];
@ -96,11 +96,9 @@ 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`);
return
}
if(value===2){
this.props.history.replace(`/message/${this.props.current_user.user_id}/private_messages`);
return;
this.props.history.replace(`/message/${this.props.current_user.user_id}/private_messages`);;
}
};

Loading…
Cancel
Save