|
|
|
@ -237,16 +237,16 @@ class TopicDetail extends Component {
|
|
|
|
|
// </a>
|
|
|
|
|
// </p>
|
|
|
|
|
|
|
|
|
|
<div className="color-grey" key={index}>
|
|
|
|
|
<a className="color-grey ml20">
|
|
|
|
|
<div className="color-grey df" key={index}>
|
|
|
|
|
<a className="color-grey ">
|
|
|
|
|
<i className="font-14 color-green iconfont icon-fujian mr8" aria-hidden="true"></i>
|
|
|
|
|
</a>
|
|
|
|
|
{fileName && <ConditionToolTip title={fileName} condition={fileName.length > 30 }>
|
|
|
|
|
<a href={item.url}
|
|
|
|
|
className="mr12 color9B9B" length="58">
|
|
|
|
|
{/* {fileName && <ConditionToolTip title={fileName} condition={fileName.length > 30 }> </ConditionToolTip>} */}
|
|
|
|
|
<a href={item.url} title={fileName.length > 30 ? fileName : ''}
|
|
|
|
|
className="mr12 color9B9B overflowHidden1" length="58" style={{maxWidth: '480px'}}>
|
|
|
|
|
{fileName}
|
|
|
|
|
</a>
|
|
|
|
|
</ConditionToolTip>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span className="color656565 mt2 color-grey-6 font-12 mr8">{item.filesize}</span>
|
|
|
|
|
|
|
|
|
@ -416,7 +416,7 @@ class TopicDetail extends Component {
|
|
|
|
|
|
|
|
|
|
const user = this._getUser();
|
|
|
|
|
this.setState({
|
|
|
|
|
comments: addNewComment(comments, _id, content, user, this)
|
|
|
|
|
comments: addNewComment(comments, _id, content, user, this.props.isSuperAdmin(), this)
|
|
|
|
|
})
|
|
|
|
|
const newMemo2 = Object.assign({}, this.state.memo);
|
|
|
|
|
newMemo2.total_replies_count = newMemo2.total_replies_count + 1;
|
|
|
|
@ -540,6 +540,10 @@ class TopicDetail extends Component {
|
|
|
|
|
padding-bottom: 20px;
|
|
|
|
|
margin-bottom: 0px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.course-message.topicDetail .panel-comment_item .comment_orig_content {
|
|
|
|
|
width: 1072px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
<CBreadcrumb className={'independent'} items={[
|
|
|
|
|
{ to: `/courses/${courseId}`, name: this.props.coursedata.name},
|
|
|
|
@ -646,7 +650,7 @@ class TopicDetail extends Component {
|
|
|
|
|
<div className="padding30 memoContent new_li" style={{ paddingBottom: '10px'}}>
|
|
|
|
|
<MarkdownToHtml content={memo.content}></MarkdownToHtml>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="padding40 bor-bottom-greyE" style={{paddingTop: '2px'}}>
|
|
|
|
|
<div className="padding30 bor-bottom-greyE" style={{paddingTop: '2px'}}>
|
|
|
|
|
<div className="mt10 mb20">
|
|
|
|
|
{/* ${memo.user_praise ? '' : ''} */}
|
|
|
|
|
<Tooltip title={`${memo.liked ? '取消点赞' : '点赞'}`}>
|
|
|
|
@ -701,11 +705,13 @@ class TopicDetail extends Component {
|
|
|
|
|
</div>} */}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{ total_count > REPLY_PAGE_COUNT &&
|
|
|
|
|
<div className="memoMore">
|
|
|
|
|
<Pagination showQuickJumper onChange={this.onPaginationChange} current={pageCount} total={total_count} pageSize={10}/>
|
|
|
|
|
|
|
|
|
|
<div className="memoMore" style={{'margin-top': '20px'}}>
|
|
|
|
|
{ total_count > REPLY_PAGE_COUNT &&
|
|
|
|
|
<Pagination showQuickJumper onChange={this.onPaginationChange} current={pageCount} total={total_count} pageSize={10}/>
|
|
|
|
|
}
|
|
|
|
|
<div className="writeCommentBtn" onClick={this.showCommentInput}>写评论</div>
|
|
|
|
|
</div> }
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|