|
|
|
@ -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},
|
|
|
|
@ -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>
|
|
|
|
|