|
|
|
@ -18,7 +18,7 @@ class MessagChat extends Component{
|
|
|
|
|
limit:20,
|
|
|
|
|
page:1,
|
|
|
|
|
datay:[],
|
|
|
|
|
limits:40,
|
|
|
|
|
limits:20,
|
|
|
|
|
mess:false,
|
|
|
|
|
myuserl:[],
|
|
|
|
|
pages:1,
|
|
|
|
@ -33,7 +33,7 @@ class MessagChat extends Component{
|
|
|
|
|
let target_ids=this.props.match.params.private;
|
|
|
|
|
this.getChatList(1,this.state.limits,target_ids);
|
|
|
|
|
// console.log("MessagChat111111");
|
|
|
|
|
console.log(this.props.myysluser);
|
|
|
|
|
// console.log(this.props.myysluser);
|
|
|
|
|
this.setState({
|
|
|
|
|
myyslusers:this.props.myysluser
|
|
|
|
|
})
|
|
|
|
@ -42,9 +42,9 @@ class MessagChat extends Component{
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
console.log("MessagChat111111");
|
|
|
|
|
console.log(this.props);
|
|
|
|
|
console.log(this.props.match.params.userid);
|
|
|
|
|
// console.log("MessagChat111111");
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
// console.log(this.props.match.params.userid);
|
|
|
|
|
this.scrollToBottom();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -296,14 +296,12 @@ class MessagChat extends Component{
|
|
|
|
|
if(response===undefined){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// if(response.data.status===0){
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
console.log("回复成功");
|
|
|
|
|
console.log(response);
|
|
|
|
|
if(response.data.status===0){
|
|
|
|
|
// console.log("回复成功");
|
|
|
|
|
// console.log(response);
|
|
|
|
|
var datas=[];
|
|
|
|
|
var dataso=this.state.messages;
|
|
|
|
|
var datays=result.data.private_message;
|
|
|
|
|
var datays=response.data.private_message;
|
|
|
|
|
var obj={};
|
|
|
|
|
for (var i=0;i<dataso.length;i++){
|
|
|
|
|
if(i===0){
|
|
|
|
@ -320,9 +318,11 @@ class MessagChat extends Component{
|
|
|
|
|
}
|
|
|
|
|
datas.push(datays);
|
|
|
|
|
//颠倒数组
|
|
|
|
|
console.log(datas);
|
|
|
|
|
this.setState({
|
|
|
|
|
messages: datas,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(function (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
@ -331,7 +331,7 @@ class MessagChat extends Component{
|
|
|
|
|
//删除
|
|
|
|
|
DELETEsetreplyfun=(user_id,id)=>{
|
|
|
|
|
//user_id不用
|
|
|
|
|
console.log("311");
|
|
|
|
|
// console.log("311");
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true,
|
|
|
|
|
});
|
|
|
|
@ -382,9 +382,9 @@ class MessagChat extends Component{
|
|
|
|
|
// console.log("MessagChat");
|
|
|
|
|
// console.log(this.state);
|
|
|
|
|
// console.log("112");
|
|
|
|
|
console.log(limits);
|
|
|
|
|
console.log(myuserl);
|
|
|
|
|
console.log(messages);
|
|
|
|
|
// console.log(limits);
|
|
|
|
|
// console.log(myuserl);
|
|
|
|
|
// console.log(messages);
|
|
|
|
|
return (
|
|
|
|
|
<div className="edu-back-white ml20">
|
|
|
|
|
{/*私信对话框*/}
|
|
|
|
@ -458,7 +458,7 @@ class MessagChat extends Component{
|
|
|
|
|
|
|
|
|
|
<div className={"msheight30"}>
|
|
|
|
|
<span className="fl ml5 color-orange font-12">在问题反馈时,请同时发送问题发生页的网址链接,以便我们高效的为您服务</span>
|
|
|
|
|
<a className="fr task-btn task-btn-orange" onClick={this.setreplyfun}>回复</a>
|
|
|
|
|
<a className="fr task-btn task-btn-orange" onClick={()=>this.setreplyfun()}>回复</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|