import React, { Component } from 'react'; import { connect } from 'react-redux'; import DocumentTitle from 'react-document-title'; import styles from './index.less'; import bg02 from '../assets/bg02.png'; @connect(({ detail }) => ({ detail })) class index extends Component { constructor(props) { super(props); this.state = { defaultImg: null, }; } componentWillMount = () => { const { typeNo } = this.props.location.query; if (typeNo) { this.props.dispatch({ type: 'detail/getFciDogById', payload: { typeNo, }, }); } }; componentDidMount = () => {}; componentWillUnmount = () => { this.props.dispatch({ type: 'detail/clearState', payload: {}, }); }; onError = () => { this.setState({ defaultImg: bg02, }); }; render() { const { data } = this.props.detail; const { defaultImg } = this.state; return (
{/* {data.fci_standard_no ? ( {data.english_breed_name} ) : ( {data.english_breed_name} )} */} {data.english_breed_name}

{data.chinese_breed_name}

{data.english_breed_name}

{data.type_no ? (
分类 {data.chinese_section_name || '--'}
犬种编号 {data.type_no || '--'}
FCI认可日期 {data.date_of_acceptance_on_a_definitive_basis_by_the_fci ? data.date_of_acceptance_on_a_definitive_basis_by_the_fci.split(' ')[0] : '--'}
{data.origin || '--'} 犬种起源国
{data.date_of_publication_of_the_official_validstandard ? data.date_of_publication_of_the_official_validstandard.split(' ')[0] : '--'} 犬种标准生效日期
{data.working_trial || '--'} 工作测试
原产地:

{data.origin || '--'}

用途:

FCI分组:

{`第${data.group_no}组:${data.chinese_group_name}`}
{`第${data.section_no}部分:${data.chinese_section_name}`}

历史沿革:

{data.general_appearance ? (
总体外形
) : null} {data.important_proportions ? (
重要比例
) : null} {data.behaviour_temperament ? (
行为/秉性
) : null} {data.head ? (
头部
) : null} {data.neck ? (
颈部
) : null} {data.body ? (
躯干
) : null} {data.tail ? (
尾部
) : null} {data.skin ? (
皮肤
) : null} {data.coat ? (
被毛
) : null} {data.size_and_weight ? (
尺寸和重量
) : null} {data.limbs ? (
四肢
) : null} {data.gait ? (
步态
) : null} {data.faults ? (
缺陷
) : null} {data.serious_faults ? (
严重缺陷
) : null} {data.disqualifying_faults ? (
失格缺陷
) : null} {data.nb ? (
注意
) : null}
) : (
该犬种信息还没有更新,敬请期待
)}
); } } export default index;