diff --git a/src/components/Result/index.less b/src/components/Result/index.less index 5e56c0cd62e9888150765eaae53c50e9645fc1a9..9204f0f614e31fe280bed4ed35b7fe5da9f6d652 100644 --- a/src/components/Result/index.less +++ b/src/components/Result/index.less @@ -6,9 +6,9 @@ margin: 0 auto; .icon { - font-size: 64px; - line-height: 64px; - margin-bottom: 32px; + font-size: 72px; + line-height: 72px; + margin-bottom: 24px; & > .success { color: @success-color; @@ -20,30 +20,29 @@ } .title { - font-size: 20px; + font-size: 24px; color: @heading-color; font-weight: 500; - line-height: 28px; - margin-bottom: 8px; + line-height: 32px; + margin-bottom: 16px; } .description { font-size: 14px; line-height: 22px; color: @text-color-secondary; - margin-bottom: 16px; + margin-bottom: 24px; } .extra { background: #fafafa; - padding: 16px 40px; - margin-top: 16px; + padding: 24px 40px; border-radius: @border-radius-sm; text-align: left; } .actions { - margin-top: 40px; + margin-top: 32px; button:not(:last-child) { margin-right: 8px; diff --git a/src/routes/List/CardList.js b/src/routes/List/CardList.js index 26575a766a6bae4ca0617234ed17e778f419456f..1fdd173605d735f419780b2f7328436f2d31acb6 100644 --- a/src/routes/List/CardList.js +++ b/src/routes/List/CardList.js @@ -1,7 +1,7 @@ import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Link } from 'dva/router'; -import { Card, Avatar, Button, Icon, List } from 'antd'; +import { Card, Button, Icon, List } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; @@ -65,7 +65,7 @@ export default class CardList extends PureComponent { 操作一, 操作二]}> } + avatar={} title={item.title} description={(

diff --git a/src/routes/List/CardList.less b/src/routes/List/CardList.less index eede4e5f4120701a91baa05c3c6203b1eb889128..8d169b90d9bd49796ff1c9364be7690ea29b1373 100644 --- a/src/routes/List/CardList.less +++ b/src/routes/List/CardList.less @@ -27,6 +27,11 @@ height: 185px; } +.cardAvatar { + width: 48px; + height: 48px; +} + .cardDescription { .textOverflowMulti(); color: @text-color; diff --git a/src/routes/User/Login.js b/src/routes/User/Login.js index 95ae7743750d338383b2e2ec5f8e3ae3f2a2657a..ad9fc8a6ddbd8f94fd844a599ac5a8b2095d7e17 100644 --- a/src/routes/User/Login.js +++ b/src/routes/User/Login.js @@ -94,7 +94,7 @@ export default class Login extends Component { })( } + prefix={} placeholder="admin" /> )} @@ -107,7 +107,7 @@ export default class Login extends Component { })( } + prefix={} type="password" placeholder="888888" /> @@ -131,7 +131,7 @@ export default class Login extends Component { })( } + prefix={} placeholder="手机号" /> )} @@ -146,7 +146,7 @@ export default class Login extends Component { })( } + prefix={} placeholder="验证码" /> )} diff --git a/src/routes/User/Login.less b/src/routes/User/Login.less index 3c29ba0e967b7c276c0daf888a1ebeda575f915b..53af1321b4569fdd93081e27aff07fb970df2a32 100644 --- a/src/routes/User/Login.less +++ b/src/routes/User/Login.less @@ -12,6 +12,9 @@ font-size: 16px; line-height: 24px; } + .ant-input-affix-wrapper .ant-input:not(:first-child) { + padding-left: 34px; + } } } @@ -27,6 +30,11 @@ } } + .prefixIcon { + font-size: @font-size-base; + color: @disabled-color; + } + .getCaptcha { display: block; width: 100%; diff --git a/src/routes/User/Register.js b/src/routes/User/Register.js index 0f9d49cf58291fac50c6f9e8c5b9b9949556c096..fbbfbecf0437e4413f4f88596b5d9a77d65baa99 100644 --- a/src/routes/User/Register.js +++ b/src/routes/User/Register.js @@ -160,7 +160,7 @@ export default class Register extends Component { +

{passwordStatusMap[this.getPasswordStatus()]} {this.renderPasswordProgress()}

请至少输入 6 个字符。请不要使用容易被猜到的密码。

diff --git a/src/routes/User/RegisterResult.js b/src/routes/User/RegisterResult.js index 77e4e8a44aaebe61b1898ede744e1a4207c57943..d85f976c69574a76d33a7deae03dee5f41c203a0 100644 --- a/src/routes/User/RegisterResult.js +++ b/src/routes/User/RegisterResult.js @@ -2,9 +2,12 @@ import React from 'react'; import { Button } from 'antd'; import { Link } from 'dva/router'; import Result from '../../components/Result'; +import styles from './RegisterResult.less'; + +const title =
你的账户:AntDesign@example.com 注册成功
; const actions = ( -
+
@@ -12,10 +15,11 @@ const actions = ( export default () => ( ); diff --git a/src/routes/User/RegisterResult.less b/src/routes/User/RegisterResult.less new file mode 100644 index 0000000000000000000000000000000000000000..209f8ae2832081255ea5ddad9cbd258acd5f0d5b --- /dev/null +++ b/src/routes/User/RegisterResult.less @@ -0,0 +1,15 @@ +.registerResult { + :global { + .anticon { + font-size: 64px; + } + } + .title { + margin-top: 32px; + font-size: 20px; + line-height: 28px; + } + .actions { + margin-top: 40px; + } +}