import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Picker, DatePicker } from 'antd-mobile'; import 'antd-mobile/dist/antd-mobile.less'; import styles from './index.less'; import router from 'umi/router'; import { formatDatetime, getQueryVariableBy } from '../../../utils/helper'; const CustomChildren = props => { return (
{props.extra}
); }; const photo = require('../assets/register/photo.png'); @connect(({ upgradeInfo }) => ({ upgradeInfo })) class Index extends Component { constructor(props) { super(props); this.state = { upgradeInfo: {}, }; } componentWillMount = () => { //获取注册需要参数 const upgradeInfo = JSON.parse(window.sessionStorage.getItem('upgradeInfo')); this.setState({ upgradeInfo: upgradeInfo, }); }; componentDidMount = () => {}; componentWillUnmount() {} onChangeText = type => e => { this.props.dispatch({ type: 'upgradeInfo/updateState', payload: { [type]: e.target.value, }, }); }; submit = () => { const { upgradeInfo } = this.state; this.props.dispatch({ type: 'upgradeInfo/upgradeFy', payload: { ...upgradeInfo }, }); }; render() { const { kennelNameCn, kennelNameEn, kennelFciName, kennelFciNameBackup, } = this.props.upgradeInfo; return (
犬舍信息
{/* 头像 */}
犬舍中文名
犬舍英文名
FCI英文名
{/*
FCI备用名
*/}
完成
); } } export default Index;