|
|
|
@ -3,10 +3,13 @@ import "../css/messagemy.css"
|
|
|
|
|
import {getImageUrl} from 'educoder';
|
|
|
|
|
import { Modal,Input,Icon,Tooltip,Spin} from 'antd';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import TPMMDEditor from '../../tpm/challengesnew/TPMMDEditor';
|
|
|
|
|
|
|
|
|
|
//私信聊天页面
|
|
|
|
|
class MessagChat extends Component{
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.messageRef = React.createRef();
|
|
|
|
|
this.state={
|
|
|
|
|
isSpin:false,
|
|
|
|
|
isSpins:false,
|
|
|
|
@ -101,8 +104,11 @@ class MessagChat extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let{isSpins,datay}=this.state;
|
|
|
|
|
//this.newquestioMDMdRef.current.getValue().trim();
|
|
|
|
|
return (
|
|
|
|
|
<div className="edu-back-white ml20">
|
|
|
|
|
{/*私信对话框*/}
|
|
|
|
@ -147,8 +153,19 @@ class MessagChat extends Component{
|
|
|
|
|
{/*回复*/}
|
|
|
|
|
<div className="bor-top-greyE padding20">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TPMMDEditor ref={this.messageRef}
|
|
|
|
|
placeholder={'请输入您的回复'}
|
|
|
|
|
watch={false}
|
|
|
|
|
initValue={""}
|
|
|
|
|
mdID={'courseMessageMD'}
|
|
|
|
|
className="courseMessageMD"
|
|
|
|
|
height={200}
|
|
|
|
|
></TPMMDEditor>
|
|
|
|
|
|
|
|
|
|
<div className={"msheight30"}>
|
|
|
|
|
<span className="fl ml5 color-orange font-12">在问题反馈时,请同时发送问题发生页的网址链接,以便我们高效的为您服务</span>
|
|
|
|
|
<a className="fr task-btn task-btn-orange" onClick={this.setreplyfun}>回复</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -160,7 +177,7 @@ class MessagChat extends Component{
|
|
|
|
|
{/*右边头部*/}
|
|
|
|
|
<p className="pt30 pb30 pl30 edu-txt-left font-16 bor-bottom-greyE">私信列表</p>
|
|
|
|
|
<Spin size="large" className="myw100baifenbi" spinning={isSpins}>
|
|
|
|
|
<div className="private-list " style={{maxHeight:"628px"}} onScroll={this.contentViewScrolledit}>
|
|
|
|
|
<div className="private-list" onScroll={this.contentViewScrolledit}>
|
|
|
|
|
{/*列表数据*/}
|
|
|
|
|
{
|
|
|
|
|
datay===undefined?
|
|
|
|
|