diff --git a/src/Flows.js b/src/Flows.js index cc12bef..7971bf0 100644 --- a/src/Flows.js +++ b/src/Flows.js @@ -17,6 +17,41 @@ const PREVIEW_REPLY_COUNT=10; window.LATEST_POST_ID=parseInt(localStorage['_LATEST_POST_ID'],10)||0; +function load_single_meta(show_sidebar,token) { + return (pid)=>{ + const color_picker=new ColorPicker(); + show_sidebar( + '帖子详情', +
#{props.info.pid}
- 加载中……
); - this.load_replies(this.show_sidebar.bind(this)); - } - - show_sidebar() { - this.props.show_sidebar( - '帖子详情', + render() { + if(this.state.loading_status==='loading') + return (加载中……
); + return (加载中……
); - this.toggle_attention(this.show_sidebar.bind(this)); - }}> + { + this.toggle_attention(); + }}> {this.state.attention ? 已关注 : 未关注 @@ -150,34 +182,88 @@ class FlowItemRow extends PureComponent { }