|
|
@ -51,7 +51,7 @@ class CCommentItem extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
this.showNotification('撤销成功')
|
|
|
|
this.props.showNotification('撤销成功')
|
|
|
|
this.props.replySuccess()
|
|
|
|
this.props.replySuccess()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -67,7 +67,7 @@ class CCommentItem extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
let { item, commentIndex }=this.props;
|
|
|
|
let { item, commentIndex }=this.props;
|
|
|
|
if (!this.state.secondReplyContent || !this.state.secondReplyContent.trim()) {
|
|
|
|
if (!this.state.secondReplyContent || !this.state.secondReplyContent.trim()) {
|
|
|
|
this.showNotification('内容不能为空')
|
|
|
|
this.props.showNotification('内容不能为空')
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.state.show_reply) {
|
|
|
|
if (this.state.show_reply) {
|
|
|
@ -313,7 +313,7 @@ class CCommentItem extends Component{
|
|
|
|
{ item.is_invalid ? <span className="validate_area fr">失效</span> :
|
|
|
|
{ item.is_invalid ? <span className="validate_area fr">失效</span> :
|
|
|
|
<React.Fragment>
|
|
|
|
<React.Fragment>
|
|
|
|
<WordsBtn style="blue" className="fr" onClick={this.state.show_reply ? this.cancelReply : this.showReply}>回复</WordsBtn>
|
|
|
|
<WordsBtn style="blue" className="fr" onClick={this.state.show_reply ? this.cancelReply : this.showReply}>回复</WordsBtn>
|
|
|
|
{(isAppealing || isAnonymous) && item.can_appeal && item.appeal_status == 0 && <WordsBtn style="blue" className="fr mr5" onClick={this.state.show_appeal ? this.cancelAppeal : this.showAppeal}>申诉</WordsBtn>}
|
|
|
|
{(isAppealing || isAnonymous) && item.can_appeal && item.appeal_status == 0 && <WordsBtn style="blue" className="fr mr20" onClick={this.state.show_appeal ? this.cancelAppeal : this.showAppeal}>申诉</WordsBtn>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</React.Fragment>
|
|
|
|
</React.Fragment>
|
|
|
|