/** * Title: 地产详情 * Routes: * - ./src/pages/routes */ import React, { useState } from 'react'; import { connect, DispatchProp, routerRedux } from 'dva'; import { formatMessage } from 'umi-plugin-locale'; import { Button, Modal, Input } from 'antd'; import Header from '@/components/Header'; import ChoiceModal from '@/components/ChoiceModal'; import AccountItem from '@/components/AccountItem'; import { UserModelState } from '@/models/user'; import styles from './style.less'; import { IdentityModelState } from './model'; const idtypes = [ {key:'idcard', value:'身份证'}, {key:'passport', value:'护照'}] const IdentityPage: React.FC = ({ dispatch, user, kyc1success, nameInput, kyc1Submitting }) => { const [idtypesVisible, setIdtypesVisible] = useState(false); const onItemSelected = (key: string) => { setIdtypesVisible(false); // dispatch({ type: 'user/changeIdtype', payload: key }); }; const idtypeModal = ( setIdtypesVisible(false)} title={formatMessage({ id: 'identity.chooseIdtype' })} /> ); return (
{user &&
dispatch({ type: 'identity/onUpdateState', realname: e.target.value })} /> setNationsVisible(true)} /> setIdtypesVisible(true)} /> dispatch({ type: 'identity/onUpdateState', idcode: e.target.value })} /> dispatch(routerRedux.push('/lgpwd'))} />
一级认证未能通过审核,原因为:
后台返回的理由
请重新提交。
}
); }; export default connect( ({ user, identity }: any) => ({ ...user, ...identity }), )(IdentityPage);