import { DingdingOutlined } from '@ant-design/icons';
import { Button, Card, Steps, Result, Descriptions } from 'antd';
import { Fragment } from 'react';
import { GridContent } from '@ant-design/pro-layout';
import { history, useParams, useRequest } from 'umi';
import styles from './index.less';

const { Step } = Steps;

const extra = (
  <Fragment>
    <Button type="primary" onClick={()=>{
      history.push('/dashboard/workplace')
    }}>返回首页</Button>
  </Fragment>
);

export default () => {
  const params=useParams();
  const info=params.msg.split(',');
  return(
    <GridContent>
      <Card bordered={false}>
        <Result
          status="success"
          title="资质考试报名成功"
          subTitle={'你已报名'+info[0]+'-'+info[1]+'   '+info[2]+'，准考证号是'+info[3]+'，请准时参加考试！'}
          extra={extra}
          style={{ marginBottom: 16 }}
        />
      </Card>
    </GridContent>
    )

}


