import React from 'react'; import { Form, Input, Button, Alert, Divider } from 'antd'; import { routerRedux } from 'dva/router'; import { digitUppercase } from '../../../utils/utils'; import styles from './style.less'; export default ({ formItemLayout, form, data, dispatch, submitting }) => { const { getFieldDecorator, validateFields } = form; const onPrev = () => { dispatch(routerRedux.push('/form/step-form')); }; const onValidateForm = (e) => { e.preventDefault(); validateFields((err, values) => { if (!err) { dispatch({ type: 'form/submitStepForm', payload: { ...data, ...values, }, }); } }); }; return (
{data.payAccount} {data.receiverAccount} {data.receiverName} {data.amount} ({digitUppercase(data.amount)}) {getFieldDecorator('password', { initialValue: '123456', rules: [{ required: true, message: '需要支付密码才能进行支付', }], })( )} ); };