|
|
webpackJsonp([171],{2269:function(e,t,a){"use strict";var s=a(30),n=(a.n(s),a(31)),p=a.n(n),r=a(69),i=(a.n(r),a(70)),u=a.n(i),o=a(65),l=(a.n(o),a(66)),m=a.n(l),c=a(0),d=a.n(c),f=a(12),g=a.n(f),y=a(5),h=function(e,t,a){return t&&v(e.prototype,t),a&&v(e,a),e};function v(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}var b=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(_,c.Component),h(_,[{key:"componentDidMount",value:function(){this.Recentcontacts()}},{key:"render",value:function(){var a=this,e=this.state,t=e.Pleaseselectthesender,s=e.inputvulue,n=e.inputvulues,r=e.floatingboxdisplay,i=e.users,o=e.floatingboxdisplays,l=e.Recentcontacts,c=e.isSpin;return d.a.createElement(p.a,{keyboard:!1,closable:!1,footer:null,destroyOnClose:!0,title:"写私信",centered:!0,visible:this.props.modalsType,width:"550px"},d.a.createElement("div",null,d.a.createElement("div",{className:"mb20 pr"},d.a.createElement("div",{className:"myw100baifenbi"},d.a.createElement(m.a,{className:"",placeholder:"发送给...",value:s,onKeyPress:this.handleEnterKey,onBlur:this.myonBlur,onFocus:this.myonFocus,onChange:this.setdatafunsval,suffix:d.a.createElement("img",{src:Object(y.M)("images/educoder/icon/search.svg"),onClick:function(){return a.search_message_person()}})})),d.a.createElement("div",{className:"recently_person",style:!1===r?{display:"none"}:{display:"block"}},d.a.createElement(u.a,{size:"large",className:"myw100baifenbi",spinning:c},d.a.createElement("p",{className:"padding10-20 color-grey-9 cdefault"},!1===l?"最近联系人":"搜索结果"),i.map(function(e,t){return d.a.createElement("p",{className:"clearfix recently_item",key:t,onMouseDown:function(){return a.Getuserinformation(e)}},d.a.createElement("img",{alt:"头像",className:"radius fl mr10 myimgw48 myimgh48",src:Object(y.M)("images/"+e.image_url)}),d.a.createElement("span",{className:"recently_name"},e.name))})))),d.a.createElement("div",{className:"writeLetter_Info"},d.a.createElement("textarea",{className:"writeLetter_text greyInput",value:n,onChange:this.setdatafunsvals,name:"content",id:"writeLetter_text",maxLength:"200"}),d.a.createElement("span",{className:"longchar"},"200"))),!0===t?d.a.createElement("p",{className:"color-orange-tip ",style:{height:"25px"}},d.a.createElement("span",{id:"notice_send_person"},"请选择发送对象")):!1===o?d.a.createElement("p",{style:{height:"25px"}}):"",!0===o?d.a.createElement("p",{className:"color-orange-tip ",style:{height:"25px"}},d.a.createElement("span",{id:"notice_send_person"},"请输入发送内容")):"",d.a.createElement("p",{className:"clearfix edu-txt-center"},d.a.createElement("a",{onClick:function(){return a.HideModal()},className:"pop_close task-btn mr30"},"取消"),d.a.createElement("a",{className:"task-btn task-btn-orange",onClick:function(){return a.OKModal()},id:"submit_send_letter"},"确定")))}}]),_);function _(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,e));return n.Recentcontacts=function(){n.setState({isSpin:!0});var e="/users/"+n.props.current_user.user_id+"/recent_contacts.json";g.a.get(e).then(function(e){void 0!==e&&n.setState({users:e.data.users,Recentcontacts:!1,floatingboxdisplay:!1,isSpin:!1})}).catch(function(e){n.setState({isSpin:!1})})},n.SendprivatemessageAPI=function(e,t){var a="/users/"+n.props.current_user.user_id+"/private_messages.json",s={target_id:e,content:t=Object(y.T)(t)};g.a.post(a,s).then(function(e){void 0!==e&&(n.setState({floatingboxdisplays:!1,Pleaseselectthesender:!1}),n.props.smyJump(3,e.data.private_message.receiver_id))}).catch(function(e){})},n.Retrieveprivatemessageusers=function(e){n.setState({isSpin:!0});g.a.get("/users_for_private_messages.json",{params:{keyword:e}}).then(function(e){void 0!==e&&n.setState({users:e.data.users,Recentcontacts:!0,floatingboxdisplay:!0,isSpin:!1})}).catch(function(e){n.setState({isSpin:!1})})},n.modalCancel=function(){},n.setDownload=function(){},n.search_message_person=function(){0===n.state.inputvulue.length?n.Recentcontacts():n.Retrieveprivatemessageusers(n.state.inputvulue)},n.HideModal=function(){n.props.cancelmodalsType()},n.OKModal=function(){var e=n.state,t=e.inputvulue,a=e.Personalid,s=e.inputvulues;0!==t.length?0!==s.length?void 0!==a?n.SendprivatemessageAPI(a,s):n.setState({Pleaseselectthesender:!0}):n.setState({floatingboxdisplays:!0}):n.setState({Pleaseselectthesender:!0})},n.Myοnkeydοwn=function(){0===n.state.inputvulue.length?n.Recentcontacts():n.Retrieveprivatemessageusers(n.state.inputvulue)},n.handleEnterKey=function(e){13===e.nativeEvent.keyCode&&n.Myοnkeydοwn()},n.setdatafunsval=function(e){0===e.target.value.length?(n.setState({inputvulue:e.target.value,Pleaseselectthesender:!1,floatingboxdisplay:!0,Personalid:void 0}),n.Recentcontacts()):n.setState({inputvulue:e.target.value,Pleaseselectthesender:!1,floatingboxdisplay:!0})},n.setdatafunsvals=function(e){n.setState({inputvulues:e.target.value,Pleaseselectthesenders:!1,floatingboxdisplays:!1,floatingboxdisplay:!1})},n.myonBlur=function(e){e.preventDefault(),n.setState({})},n.myonFocus=function(e){n.setState({floatingboxdisplay:!0})},n.Getuserinformation=function(e){n.setState({Personalid:void 0===e.id?void 0:null===e.id?void 0:e.id,inputvulue:e.name,floatingboxdisplay:!1})},n.state={modalsType:!1,Pleaseselectthesender:!1,Pleaseselectthesenders:!1,inputvulue:"",inputvulues:"",floatingboxdisplay:!1,users:[],Personalid:void 0,isSpin:!1,Recentcontacts:!1,floatingboxdisplays:!1},n}t.a=b},4001:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a(69),n=(a.n(s),a(70)),l=a.n(n),r=a(0),c=a.n(r),i=a(1871),u=(a.n(i),a(5)),o=a(12),m=a.n(o),p=a(298),d=a(84),f=a.n(d),g=a(4002),y=a(4003),h=function(e,t,a){return t&&v(e.prototype,t),a&&v(e,a),e};function v(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}var b=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(_,r.Component),h(_,[{key:"componentDidMount",value:function(){this.getdata(1);var e=this.props.location.search.split("?target_ids=");this.getChatList(1,this.state.limits,e[1]),this.setState({myyslusers:this.props.myysluser});try{this.props.Mtab(3)}catch(e){}this.scrollToBottom(),this.props.triggerRef(this)}},{key:"componentDidUpdate",value:function(){}},{key:"scrollToBottom",value:function(){var e=this.messageList.scrollHeight-this.messageList.clientHeight;this.messageList.scrollTop=0<e?e:0}},{key:"render",value:function(){var a=this,e=this.state,t=e.isSpins,s=e.datay,n=(e.myyslusers,e.mess,e.limits,e.myuserl),r=e.messages,i=e.isSpin,o=e.datanull;return c.a.createElement("div",{className:"edu-back-white ml20"},c.a.createElement("div",{className:"df clearfix"},c.a.createElement("div",{className:"flex1"},c.a.createElement("p",{className:"clearfix pt30 pb30 edu-txt-center font-16 bor-bottom-greyE"},c.a.createElement("a",{onClick:function(){return a.smyJump(2)}},c.a.createElement("i",{className:"iconfont icon-zuojiantou font-14 fl ml25 color-grey-9","data-tip-down":"返回到列表"})),void 0!==n?n.name:"","与你的私信"),c.a.createElement("div",{className:"dialogPanel",onScroll:this.contentViewScrolltop,ref:function(e){a.messageList=e}},c.a.createElement("div",null,c.a.createElement(l.a,{size:"large",className:"myw100baifenbi",spinning:i},0===o?c.a.createElement("p",{className:"mt30 edu-txt-center"},c.a.createElement("span",{className:"letter-time"},"没有信息了~~")):"",c.a.createElement("div",{id:"yslysl"},void 0===r?"":r.map(function(e,t){return c.a.createElement("div",{key:t},void 0===e.send_day?"":null===e.send_day?"":""===e.send_day?"":c.a.createElement("p",{className:"mt30 edu-txt-center"},c.a.createElement("span",{className:"letter-time"},e.send_day)),parseInt(e.sender_id)===parseInt(a.props.match.params.userid)?c.a.createElement(g.a,Object.assign({keys:t,objeysl:e},a.state,a.props,{DELETEsetreplyfun:function(e,t){return a.DELETEsetreplyfun(e,t)}})):c.a.createElement(y.a,Object.assign({keys:t,objeysl:e},a.state,a.props,{DELETEsetreplyfun:function(e,t){return a.DELETEsetreplyfun(e,t)}})))}))))),c.a.createElement("div",{className:"bor-top-greyE padding20"},c.a.createElement("style",null,"\n\t\t\t\t\t\t\t.rememberTip{\n\t\t\t\t\t\t\t\tdisplay:none;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t"),c.a.createElement(p.a,{ref:this.messageRef,placeholder:"请输入您的回复",watch:!1,initValue:"",mdID:"courseMessageMD",className:"courseMessageMD",height:200}),c.a.createElement("div",{className:"msheight30"},c.a.createElement("span",{className:"fl ml5 color-orange font-12"},"在问题反馈时,请同时发送问题发生页的网址链接,以便我们高效的为您服务"),c.a.createElement("a",{className:"fr task-btn task-btn-orange",onClick:function(){return a.setreplyfun()}},"回复")))),c.a.createElement("div",{className:"bor-left-greyE",style:{width:"290px"}},c.a.createElement("p",{className:"pt30 pb30 pl30 edu-txt-left font-16 bor-bottom-greyE"},"私信列表"),c.a.createElement(l.a,{size:"large",className:"myw100baifenbi",spinning:t},c.a.createElement("div",{className:"private-list",onScroll:this.contentViewScrolledit},void 0===s?"":s.map(function(e,t){return c.a.createElement("div",{className:"private-part clearfix",key:t,onClick:function(){return a.Clickedontheuser(e.target)}},c.a.createElement("div",{className:"part-line df"},c.a.createElement("img",{src:Object(u.M)("images/"+e.target.image_url),className:"radius mr10 myimgw48 myimgh48"}),c.a.createElement("div",{className:"flex1"},c.a.createElement("p",{className:"clearfix mb15 lineh-17"},c.a.createElement("span",{className:"fl pr"},c.a.createElement("span",{className:"task-hide privatePartName"},e.target.name),!0===e.unread?c.a.createElement("span",{className:"newLetter"}):""),c.a.createElement("span",{className:"color-grey-c fr"},f()(e.send_time).fromNow())),c.a.createElement("p",{className:"color-grey-6 lineh-20 justify break_word task-hide-2 markdown-body",style:{wordBreak:"break-word"},id:"MakedownHTML",dangerouslySetInnerHTML:{__html:Object(u.W)(e.content).replace(/▁/g,"▁▁▁")}}))))}))))))}}]),_);function _(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);var p=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,e));return p.contentViewScrolltop=function(e){if(0===e.currentTarget.scrollTop){if(0===p.state.datanull)return;console.log("调用了方法1111111");var t=p.state.pages+1,a=p.props.location.search.split("?target_ids=");p.shuaxingetChatList(t,p.state.limits,a[1],!0),p.messageList.scrollTop=50}},p.contentViewScrolledit=function(e){var t=parseInt(e.currentTarget.scrollTop),a=e.currentTarget.clientHeight+t;if(e.currentTarget.scrollHeight-a==0||e.currentTarget.scrollHeight-a==1||e.currentTarget.scrollHeight-a==-1){var s=p.state.page+1;p.getdata(s)}},p.shuaxingetChatList=function(c,e,t,a){p.setState({isSpin:!0});var s="/users/"+p.props.match.params.userid+"/private_message_details.json";m.a.get(s,{params:{target_id:t,page:c,per_page:e}}).then(function(e){if(p.setState({isSpin:!1}),e&&null!==e.data){if(0===e.data.messages.length)return console.log("没有数据了"),void p.setState({datanull:0});var t=p.state.messages,a=[],s=e.data.messages;s=(s=s.reverse()).concat(t);for(var n={},r=0;r<s.length;r++)if(0===r){var i=s[r].send_time.slice(0,10);s[r].send_day=i,n=s[r],a.push(s[r])}else{try{var o=n.send_time.slice(0,10),l=s[r].send_time.slice(0,10);f()(o).isSame(l)?s[r].send_day="":(s[r].send_day=l,n=s[r])}catch(e){}a.push(s[r])}console.log("新数组+++++++++++++++++++++++++++++++++++++"),console.log(a),p.setState({messages:a,myuserl:e.data.target,pages:c})}}).catch(function(e){console.log(e),p.setState({isSpin:!1})})},p.getChatList=function(l,e,t){p.setState({isSpin:!0});var a="/users/"+p.props.match.params.userid+"/private_message_details.json";m.a.get(a,{params:{target_id:t,page:l,per_page:e}}).then(function(e){if(e&&null!==e.data){var t=[],a=e.data.messages;a=a.reverse();for(var s={},n=0;n<a.length;n++)if(0===n){var r=a[n].send_time.slice(0,10);a[n].send_day=r,s=a[n],t.push(a[n])}else{try{var i=s.send_time.slice(0,10),o=a[n].send_time.slice(0,10);f()(i).isSame(o)?a[n].send_day="":(a[n].send_day=o,s=a[n])}catch(e){}t.push(a[n])}p.setState({messages:t,myuserl:e.data.target,pages:l}),p.scrollToBottom()}p.setState({isSpin:!1})}).catch(function(e){console.log(e),p.setState({isSpin:!1})})},p.getChatListtwo=function(l,e,t){p.setState({isSpin:!0});var a="/users/"+p.props.match.params.userid+"/private_message_details.json";m.a.get(a,{params:{target_id:t,page:l,per_page:e}}).then(function(e){if(e&&e&&null!==e.data){var t=[],a=e.data.messages;a=a.reverse();for(var s={},n=0;n<a.length;n++)if(0===n){var r=a[n].send_time.slice(0,10);a[n].send_day=r,s=a[n],t.push(a[n])}else{try{var i=s.send_time.slice(0,10),o=a[n].send_time.slice(0,10);f()(i).isSame(o)?a[n].send_day="":(a[n].send_day=o,s=a[n])}catch(e){console.log("271271271271"),console.log(e)}t.push(a[n])}p.setState({messages:t,myuserl:e.data.target,pages:l,datanull:1}),p.scrollToBottom()}p.setState({isSpin:!1})}).catch(function(e){console.log(e),p.setState({isSpin:!1})})},p.getdata=function(a){var e=p.state.limit,t="/users/"+(p.props.match&&p.props.match.params.userid)+"/private_messages.json";m.a.get(t,{params:{page:a,per_page:e}}).then(function(e){if(e){if(null!==e.data&&null!==e.data.private_messages&&0<e.data.private_messages.length)for(var t=0;t<e.data.private_messages.length;t++)p.state.datay.push(e.data.private_messages[t]);p.setState({page:a,isSpins:!1,datay:p.state.datay,data:null===e.data.private_messages?void 0:void 0===e.data.private_messages?void 0:e.data.private_messages===[]?void 0:"[]"===e.data.private_messages?void 0:0===e.data.private_messages.length?void 0:e.data.private_messages})}}).catch(function(e){console.log(e),p.setState({isSpins:!1})})},p.getdatatwo=function(t){var e=p.state.limits,a="/users/"+(p.props.match&&p.props.match.params.userid)+"/private_messages.json";m.a.get(a,{params:{page:t,per_page:e}}).then(function(e){e&&p.setState({page:t,isSpins:!1,datay:null===e.data.private_messages?void 0:void 0===e.data.private_messages?void 0:e.data.private_messages===[]?void 0:"[]"===e.data.private_messages?void 0:0===e.data.private_messages.length?void 0:e.data.private_messages})}).catch(function(e){console.log(e),p.setState({isSpins:!1})})},p.smyJump=function(e){p.props.Modifyur(e)},p.getdatas2=function(){},p.Clickedontheuser=function(e){p.setState({myuserl:e}),p.props.history.replace("/messages/"+p.props.current_user.login+"/message_detail?target_ids="+e.id),p.getChatListtwo(1,p.state.mypagey,e.id)},p.setreplyfun=function(){p.setState({isSpin:!0});var e=p.messageRef.current.getValue().trim(),t=p.props.location.search.split("?target_ids=");e=Object(u.T)(e);var a="/users/"+p.props.match.params.userid+"/private_messages.json";m.a.post(a,{target_id:t[1],content:e}).then(function(e){p.setState({isSpin:!1}),void 0!==e&&0===e.data.status&&(p.getChatListtwo(1,p.state.mypagey,t[1]),p.scrollToBottom(),p.messageRef.current.setValue(""))}).catch(function(e){console.log(e),this.setState({isSpin:!1})})},p.DELETEsetreplyfun=function(e,a){p.setState({isSpin:!0});var t="/users/"+p.props.match.params.userid+"/private_messages/"+a+".json";m.a.delete(t).then(function(e){if(e&&0===e.data.status&&0<p.state.messages.length){for(var t=0;t<p.state.messages.length;t++)parseInt(p.state.messages[t].id)===a&&p.state.messages.splice(t,1);p.setState({messages:p.state.messages,isSpin:!1})}}).catch(function(e){console.log(e),this.setState({isSpin:!1})})},p.messageRef=c.a.createRef(),p.state={isSpin:!1,isSpins:!1,limit:20,page:1,datay:[],limits:20,mess:!1,myuserl:[],pages:1,mypagey:20,messages:[],objc:[],datanull:1},p}t.default=b},4002:function(e,t,a){"use strict";var s=a(0),n=a.n(s),r=a(12),i=(a.n(r),a(84)),o=a.n(i),l=a(5),c=a(1871),p=(a.n(c),a(2269),function(e,t,a){return t&&u(e.prototype,t),a&&u(e,a),e});function u(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}var m=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(d,s.Component),p(d,[{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){var e,t,a,s=this;return n.a.createElement("div",{className:"ThisSide clearfix",id:"message_content_25137"},n.a.createElement("a",{onMouseDown:function(){return s.myCome(s.props.objeysl.sender)}},this.props.objeysl&&this.props.objeysl.sender.image_url?n.a.createElement("img",{alt:"头像",className:"ml10 radius fr myimgw48 myimgh48",src:Object(l.M)("images/"+this.props.objeysl.sender.image_url)}):""),n.a.createElement("div",{className:"fr pr ThisSide-info"},n.a.createElement("span",{className:"trangle"}),n.a.createElement(l.q,(e={parentSel:"#Rightdialogue"+this.props.keys},t="parentSel",a="#Rightdialogue"+this.props.keys,t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e)),n.a.createElement("div",{className:"sms break_word markdown-body",id:"Rightdialogue"+this.props.keys,dangerouslySetInnerHTML:{__html:Object(l.W)(this.props.objeysl.content).replace(/▁/g,"▁▁▁")}}),n.a.createElement("div",{className:"edu-txt-left mt5"},n.a.createElement("a",{className:"color-grey-c",onClick:function(){return s.mydelete(s.props.objeysl.sender.id,s.props.objeysl.id)}},"删除"))),n.a.createElement("span",{className:"fr mr15 color-grey-c lineh-15 mt15"},o()(this.props.objeysl.send_time).hour(),":",o()(this.props.objeysl.send_time).minute()<10?"0"+o()(this.props.objeysl.send_time).minute():o()(this.props.objeysl.send_time).minute()))}}]),d);function d(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,e));return a.mydelete=function(e,t){a.props.DELETEsetreplyfun(e,t)},a.myCome=function(e){window.location.href="/users/"+e.login},a.state={},a}t.a=m},4003:function(e,t,a){"use strict";var s=a(0),n=a.n(s),r=a(12),i=(a.n(r),a(84)),o=a.n(i),l=a(5),c=a(1871),p=(a.n(c),a(2269),function(e,t,a){return t&&u(e.prototype,t),a&&u(e,a),e});function u(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}var m=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(d,s.Component),p(d,[{key:"componentDidMount",value:function(){console.log("Leftdialogue"),console.log(this.props)}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){var e,t,a,s=this;return n.a.createElement("div",{className:"OtherSide clearfix",id:"message_content_25148"},n.a.createElement("a",{onMouseDown:function(){return s.myCome(s.props.objeysl.sender)}},this.props.objeysl&&this.props.objeysl.sender.image_url?n.a.createElement("img",{alt:"头像",className:"mr10 radius fl myimgw48 myimgh48",src:Object(l.M)("images/"+this.props.objeysl.sender.image_url)}):""),n.a.createElement("div",{className:"fl pr OtherSide-info"},n.a.createElement("span",{className:"trangle"}),n.a.createElement(l.q,(e={parentSel:"#Leftdialogue"+this.props.keys},t="parentSel",a="#Leftdialogue"+this.props.keys,t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e)),n.a.createElement("div",{className:"sms break_word markdown-body",id:"Leftdialogue"+this.props.keys,dangerouslySetInnerHTML:{__html:Object(l.W)(this.props.objeysl.content).replace(/▁/g,"▁▁▁")}}),n.a.createElement("div",{className:"edu-txt-right mt5"},n.a.createElement("a",{className:"color-grey-c",onClick:function(){return s.mydelete(s.props.objeysl.sender.id,s.props.objeysl.id)}},"删除"))),n.a.createElement("span",{className:"fl ml15 color-grey-c lineh-15 mt15"},o()(this.props.objeysl.send_time).hour(),":",o()(this.props.objeysl.send_time).minute()<10?"0"+o()(this.props.objeysl.send_time).minute():o()(this.props.objeysl.send_time).minute()))}}]),d);function d(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,e));return a.mydelete=function(e,t){a.props.DELETEsetreplyfun(e,t)},a.myCome=function(e){window.location.href="/users/"+e.login},a.state={},a}t.a=m}}); |