import React, { Component } from 'react'; import styles from './index.less'; import zaikanImg from '../../assets/zaikan.png'; class AnnouncementItem extends Component { toDetail = (rowID,sortId) => { this.props.history.push('/announcement/detail?rowID='+rowID + '&sortId=' + sortId); window.location.reload(); } render() { const { article,rowID } = this.props; return (
{ article.sortId == '83' &&
会员
} { article.sortId == '84' &&
犬籍
} { article.sortId == '85' &&
犬展
} { article.sortId == '86' &&
美容
} { article.sortId == '87' &&
牵犬
} { article.sortId == '88' &&
训练
} { article.sortId == '89' &&
审查
} { article.sortId == '90' &&
其他
} { (article.sortId*1>90 || article.sortId*1<83) &&
其他
}
{article.title}
{article.addTime}
{article.hits}
); } } export default AnnouncementItem;