/** * Created by RaoMeng on 2019/1/14 * Desc: 作业列表item */ import React, {Component} from 'react' import {isObjEmpty} from "../utils/common"; import 'css/homework.css' export default class HomeWorkItem extends Component { constructor() { super() this.state = {} } componentDidMount() { } render() { const {homeWork} = this.props return (
{homeWork.notifyName}
{homeWork.readStatus}
内容:
{homeWork.notifyDetails}
截止日期:
{homeWork.endDate}
发布老师:
{homeWork.notifyCreatorName}
发布时间:
{homeWork.creatDate}
) } onItemClick = () => { if (this.props.onItemClick) { this.props.onItemClick(this.props.index, this.props.homeWork.notifyId) } } }