|
|
@ -444,7 +444,7 @@ class MemoDetail extends Component {
|
|
|
|
showSnackbar(response.data.message)
|
|
|
|
showSnackbar(response.data.message)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (response.data.status === 1) {
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
|
|
|
|
|
|
|
|
if (!childCommentId) {
|
|
|
|
if (!childCommentId) {
|
|
|
|
comment.hidden = !comment.hidden;
|
|
|
|
comment.hidden = !comment.hidden;
|
|
|
@ -677,7 +677,13 @@ class MemoDetail extends Component {
|
|
|
|
memo.isDetailPage = true;
|
|
|
|
memo.isDetailPage = true;
|
|
|
|
// TODO 图片上传地址
|
|
|
|
// TODO 图片上传地址
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="edu-back-white" id="forum_index_list"> {/* fl with100 */}
|
|
|
|
<div className="edu-back-white memoDetail" id="forum_index_list"> {/* fl with100 */}
|
|
|
|
|
|
|
|
<style>{`
|
|
|
|
|
|
|
|
.memoDetail .commentsbtn {
|
|
|
|
|
|
|
|
margin-top: 6px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
|
|
|
|
<RewardDialog goldRewardDialogOpen={goldRewardDialogOpen}
|
|
|
|
<RewardDialog goldRewardDialogOpen={goldRewardDialogOpen}
|
|
|
|
setRewardDialogVisible={this.setRewardDialogVisible}
|
|
|
|
setRewardDialogVisible={this.setRewardDialogVisible}
|
|
|
|
rewardCode={this.rewardCodeMemo}
|
|
|
|
rewardCode={this.rewardCodeMemo}
|
|
|
@ -693,7 +699,7 @@ class MemoDetail extends Component {
|
|
|
|
<i className="iconfont icon-gift mr5"></i>{memo.reward}
|
|
|
|
<i className="iconfont icon-gift mr5"></i>{memo.reward}
|
|
|
|
</span> }
|
|
|
|
</span> }
|
|
|
|
{ _current_user && (_current_user.admin === true || _current_user.user_id === author_info.user_id) &&
|
|
|
|
{ _current_user && (_current_user.admin === true || _current_user.user_id === author_info.user_id) &&
|
|
|
|
<div className="edu-position-hidebox" style={{position: 'absolute', right: '18px',top:'4px'}}>
|
|
|
|
<div className="edu-position-hidebox" style={{position: 'absolute', right: '12px',top:'4px'}}>
|
|
|
|
<a href="javascript:void(0);"><i className="fa fa-bars font-16"></i></a>
|
|
|
|
<a href="javascript:void(0);"><i className="fa fa-bars font-16"></i></a>
|
|
|
|
<ul className="edu-position-hide undis">
|
|
|
|
<ul className="edu-position-hide undis">
|
|
|
|
{ _current_user.admin === true &&
|
|
|
|
{ _current_user.admin === true &&
|
|
|
@ -713,13 +719,20 @@ class MemoDetail extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<Link className={`task-hide fr return_btn color-grey-6 mt2 ${ _current_user && (_current_user.admin === true
|
|
|
|
<Link className={`task-hide fr return_btn color-grey-6 mt2 ${ _current_user && (_current_user.admin === true
|
|
|
|
|| _current_user.user_id === author_info.user_id) ? '': 'no_mr'} `} to="/forums" >
|
|
|
|
|| _current_user.user_id === author_info.user_id) ? '': 'no_mr'} `} to="/forums"
|
|
|
|
|
|
|
|
style={{ marginRight: '10px'}}
|
|
|
|
|
|
|
|
>
|
|
|
|
返回
|
|
|
|
返回
|
|
|
|
</Link>
|
|
|
|
</Link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="color-grey-9 clearfix">
|
|
|
|
<div className="color-grey-9 clearfix">
|
|
|
|
<span className="fl">{moment(memo.time).fromNow()} 发布</span>
|
|
|
|
<span className="fl">{moment(memo.time).fromNow()} 发布</span>
|
|
|
|
<div className="fr">
|
|
|
|
<div className="fr detailIcons">
|
|
|
|
|
|
|
|
<style>{`
|
|
|
|
|
|
|
|
.detailIcons i{
|
|
|
|
|
|
|
|
vertical-align: sub;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
`}</style>
|
|
|
|
{ _current_user.admin && <Tooltip title={ "帖子奖励" }>
|
|
|
|
{ _current_user.admin && <Tooltip title={ "帖子奖励" }>
|
|
|
|
<span className="noteDetailNum rightline cdefault" style={{padding: '0 4px', cursor: 'pointer'}}>
|
|
|
|
<span className="noteDetailNum rightline cdefault" style={{padding: '0 4px', cursor: 'pointer'}}>
|
|
|
|
<i className="iconfont icon-jiangli mr5" onClick={this.showRewardDialog}></i>
|
|
|
|
<i className="iconfont icon-jiangli mr5" onClick={this.showRewardDialog}></i>
|
|
|
|