|
|
|
@ -527,6 +527,7 @@ class TopicDetail extends Component {
|
|
|
|
|
// TODO 图片上传地址
|
|
|
|
|
const courseId=this.props.match.params.coursesId;
|
|
|
|
|
const boardId = this.props.match.params.boardId
|
|
|
|
|
const isCourseEnd = this.props.isCourseEnd()
|
|
|
|
|
return (
|
|
|
|
|
<div className="edu-back-white edu-class-container edu-position course-message topicDetail" id="yslforum_index_list"> {/* fl with100 */}
|
|
|
|
|
<style>{`
|
|
|
|
@ -678,8 +679,8 @@ class TopicDetail extends Component {
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<MemoDetailMDEditor ref="editor" memo={memo} usingMockInput={true} placeholder="说点什么"
|
|
|
|
|
height={160} showError={true} buttonText={'发表'} className={comments && comments.length && 'borderBottom'}></MemoDetailMDEditor>
|
|
|
|
|
{!isCourseEnd && <MemoDetailMDEditor ref="editor" memo={memo} usingMockInput={true} placeholder="说点什么"
|
|
|
|
|
height={160} showError={true} buttonText={'发表'} className={comments && comments.length && 'borderBottom'}></MemoDetailMDEditor>}
|
|
|
|
|
|
|
|
|
|
{/* onClick={ this.createNewComment }
|
|
|
|
|
enableReplyTo={true}
|
|
|
|
@ -704,6 +705,7 @@ class TopicDetail extends Component {
|
|
|
|
|
loadMoreChildComments={this.loadMoreChildComments}
|
|
|
|
|
initReply={this.initReply}
|
|
|
|
|
showRewardButton={false}
|
|
|
|
|
showReply={!isCourseEnd}
|
|
|
|
|
|
|
|
|
|
onlySuperAdminCouldHide={true}
|
|
|
|
|
></Comments>
|
|
|
|
@ -720,7 +722,7 @@ class TopicDetail extends Component {
|
|
|
|
|
{ total_count > REPLY_PAGE_COUNT &&
|
|
|
|
|
<Pagination showQuickJumper onChange={this.onPaginationChange} current={pageCount} total={total_count} pageSize={10}/>
|
|
|
|
|
}
|
|
|
|
|
<div className="writeCommentBtn" onClick={this.showCommentInput}>写评论</div>
|
|
|
|
|
{!isCourseEnd && <div className="writeCommentBtn" onClick={this.showCommentInput}>写评论</div>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|