|
|
@ -213,11 +213,12 @@ class Comments extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div className="comment_content clearfix" id={`reply_content_${item.id}`}>
|
|
|
|
<div className="comment_content clearfix" id={`reply_content_${item.id}`}>
|
|
|
|
<div className="color-grey-3 break_word_comments" id={`reply_content_${item.id}`}>
|
|
|
|
<div className="color-grey-3 break_word_comments" id={`reply_content_${item.id}`}>
|
|
|
|
|
|
|
|
{/* 改成后端返回了的,都是要显示的,不管hidden的值是true还是false */}
|
|
|
|
{ item.hidden && comment.admin === false && comment.manager === false
|
|
|
|
{/* { item.hidden && comment.admin === false && comment.manager === false
|
|
|
|
? <p className="color-orange font-16">违规评论已被屏蔽!</p>
|
|
|
|
? <p className="color-orange font-16">违规评论已被屏蔽!</p>
|
|
|
|
: <div dangerouslySetInnerHTML={{__html: _content}}></div>
|
|
|
|
: */}
|
|
|
|
}
|
|
|
|
<div dangerouslySetInnerHTML={{__html: _content}}></div>
|
|
|
|
|
|
|
|
{/* } */}
|
|
|
|
|
|
|
|
|
|
|
|
<div className="cl"></div>
|
|
|
|
<div className="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -309,10 +310,12 @@ class Comments extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div className="comment_content clearfix" id={`reply_content_${item.id}`}>
|
|
|
|
<div className="comment_content clearfix" id={`reply_content_${item.id}`}>
|
|
|
|
<div className="color-grey-3 break_word_comments" id={`reply_content_${item.id}`}>
|
|
|
|
<div className="color-grey-3 break_word_comments" id={`reply_content_${item.id}`}>
|
|
|
|
{ item.hidden && item.admin === false && (item.manager === false || item.manager == undefined)
|
|
|
|
{/* 改成后端返回了的,都是要显示的,不管hidden的值是true还是false */}
|
|
|
|
|
|
|
|
{/* { item.hidden && item.admin === false && (item.manager === false || item.manager == undefined)
|
|
|
|
? <p className="color-orange font-16">违规评论已被屏蔽!</p>
|
|
|
|
? <p className="color-orange font-16">违规评论已被屏蔽!</p>
|
|
|
|
: <div dangerouslySetInnerHTML={{__html: _content}}></div>
|
|
|
|
: */}
|
|
|
|
}
|
|
|
|
<div dangerouslySetInnerHTML={{__html: _content}}></div>
|
|
|
|
|
|
|
|
{/* } */}
|
|
|
|
<div className="cl"></div>
|
|
|
|
<div className="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|