error.md 1.02 KB
Newer Older
1 2 3 4 5 6 7 8
---
order: 2
title: Failed
---

提交失败。

````jsx
nikogu's avatar
nikogu committed
9
import Result from 'ant-design-pro/lib/Result';
10 11 12 13
import { Button, Icon } from 'antd';

const extra = (
  <div>
14
    <div style={{ fontSize: 16, color: 'rgba(0, 0, 0, 0.85)', fontWeight: 500, marginBottom: 16 }}>
15 16
      您提交的内容有如下错误:
    </div>
ddcat1115's avatar
ddcat1115 committed
17
    <div style={{ marginBottom: 16 }}>
afc163's avatar
afc163 committed
18
      <Icon style={{ color: '#f5222d', marginRight: 8 }} type="close-circle-o" />您的账户已被冻结
ddcat1115's avatar
ddcat1115 committed
19
      <a style={{ marginLeft: 16 }}>立即解冻 <Icon type="right" /></a>
20 21
    </div>
    <div>
afc163's avatar
afc163 committed
22
      <Icon style={{ color: '#f5222d', marginRight: 8 }} type="close-circle-o" />您的账户还不具备申请资格
ddcat1115's avatar
ddcat1115 committed
23
      <a style={{ marginLeft: 16 }}>立即升级 <Icon type="right" /></a>
24 25 26 27
    </div>
  </div>
);

afc163's avatar
afc163 committed
28
const actions = <Button type="primary">返回修改</Button>;
29 30 31 32 33 34 35 36 37 38 39

ReactDOM.render(
  <Result
    type="error"
    title="提交失败"
    description="请核对并修改以下信息后,再重新提交。"
    extra={extra}
    actions={actions}
  />
, mountNode);
````