import React, { Component } from "react"; import { Spin } from "antd"; import Comment from "../../Comment"; import CommentBox from "../CommentBox"; import "./index.css"; class CommentList extends Component { constructor(props) { super(props); this.state = {}; } componentWillMount() { this.props.app.sGetComment(); } render() { const { list, total, page, loading, isNoMoreComment, sGetComment } = this.props.app; const spinning = Boolean( loading.sGetComment || loading.sCommentFavor || loading.sReplyFavor ); return (
共{total} 条评论
{list.map(item => ( ))} {!isNoMoreComment && list.length !== total && (
sGetComment({ page: page + 1 })} > 查看更多评论
)}
); } } CommentList.propTypes = {}; export default Comment(CommentList);