|
|
|
@ -14,7 +14,7 @@ import moment from 'moment'
|
|
|
|
|
import Comments from '../comment/Comments'
|
|
|
|
|
|
|
|
|
|
import update from 'immutability-helper'
|
|
|
|
|
import Tooltip from 'material-ui/Tooltip';
|
|
|
|
|
// import Tooltip from 'material-ui/Tooltip';
|
|
|
|
|
import RewardDialog from '../common/RewardDialog';
|
|
|
|
|
|
|
|
|
|
import {ImageLayerOfCommentHOC} from '../page/layers/ImageLayerOfCommentHOC'
|
|
|
|
@ -23,6 +23,7 @@ import MemoDetailKEEditor from './MemoDetailKEEditor'
|
|
|
|
|
import MemoDetailMDEditor from './MemoDetailMDEditor'
|
|
|
|
|
|
|
|
|
|
import { bytesToSize } from 'educoder'
|
|
|
|
|
import { Tooltip } from 'antd'
|
|
|
|
|
const $ = window.$
|
|
|
|
|
function urlStringify(params) {
|
|
|
|
|
let noParams = true;
|
|
|
|
@ -691,15 +692,23 @@ class MemoDetail extends Component {
|
|
|
|
|
<div id="forum_list" className="forum_table mh650">
|
|
|
|
|
<div className="padding40-30 bor-bottom-greyE">
|
|
|
|
|
<div className="font-16 mb5 cdefault clearfix pr pr35" style={{display: 'flex', alignItems: 'center'}}>
|
|
|
|
|
<span className="noteDetailTitle">{memo.subject}</span>
|
|
|
|
|
{ memo.sticky && <span className="btn-cir btn-cir-red ml10 " style={{ height: '20px' }}>置顶</span>}
|
|
|
|
|
{ !!memo.reward && <span className="color-orange font-14 ml15"
|
|
|
|
|
data-tip-down={`获得平台奖励金币:${memo.reward}`} >
|
|
|
|
|
<i className="iconfont icon-gift mr5"></i>
|
|
|
|
|
<span style={{ 'vertical-align': 'sub' }}>{memo.reward}</span>
|
|
|
|
|
</span> }
|
|
|
|
|
|
|
|
|
|
<div style={{ flex: 1 }}>
|
|
|
|
|
{/* overflowHidden1 */}
|
|
|
|
|
<span className="noteDetailTitle " style={{maxWidth: '634px'}}>{memo.subject + memo.subject}</span>
|
|
|
|
|
{ memo.sticky && <span className="btn-cir btn-cir-red ml10 "
|
|
|
|
|
style={{ height: '20px', alignSelf: 'flex-start', marginTop: '10px' }}
|
|
|
|
|
>置顶</span>}
|
|
|
|
|
{ !!memo.reward &&
|
|
|
|
|
<Tooltip title={`获得平台奖励金币:${memo.reward}`}>
|
|
|
|
|
<span className="color-orange font-14 ml15"
|
|
|
|
|
style={{ height: '20px', alignSelf: 'flex-start', marginTop: '1px' }}
|
|
|
|
|
>
|
|
|
|
|
<i className="iconfont icon-gift mr5"></i>
|
|
|
|
|
<span style={{ 'vertical-align': 'sub' }}>{memo.reward}</span>
|
|
|
|
|
</span>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div style={{ flex: 1, alignSelf: 'flex-start' }}>
|
|
|
|
|
{ _current_user && (_current_user.admin === true || _current_user.user_id === author_info.user_id) &&
|
|
|
|
|
<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>
|
|
|
|
|