Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit 039f5b4

Browse files
committed
addloginbtn
1 parent 2b9f010 commit 039f5b4

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

src/components/Login/Login.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ class Login extends Component {
4949
<h1>登录</h1>
5050
<div className={s.formGroup}>
5151
<label className={s.label} htmlFor="usernameOrEmail">
52-
请输入用户名/邮箱地址:
52+
请输入邮箱地址:
5353
</label>
5454
<input
5555
className={s.input}
5656
onChange={this.setInputAccount}
5757
id="usernameOrEmail"
5858
type="text"
5959
value={this.props.account}
60+
placeholder="请输入邮箱地址"
6061
autoFocus
6162
/>
6263
</div>
@@ -70,6 +71,7 @@ class Login extends Component {
7071
id="password"
7172
type="password"
7273
value={this.props.password}
74+
placeholder="请输入登录密码"
7375
/>
7476
</div>
7577
<div className={s.formGroup}>

src/components/Register/Register.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class Register extends Component {
2828
//-----
2929
isSubmitStepThree: PropTypes.bool,
3030
password: PropTypes.string,
31-
passwordInputChange: PropTypes.string,
32-
passwordConfirm: PropTypes.func,
31+
passwordInputChange: PropTypes.func,
32+
passwordConfirm: PropTypes.string,
3333
passwordConfirmInputChange: PropTypes.func,
3434
submitStepThree: PropTypes.func,
3535
};

src/components/Register/StepOne/StepOne.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,13 @@
4949
.errorTip {
5050
color: red;
5151
}
52+
53+
.loginBtn {
54+
margin-top: 40px;
55+
width: 100%;
56+
text-align: center;
57+
}
58+
.loginBtn a {
59+
text-decoration: none;
60+
color: #3CB371;
61+
}

src/components/Register/StepOne/StepOne.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import _ from 'lodash';
33
import withStyles from 'isomorphic-style-loader/lib/withStyles';
44
import s from './StepOne.css';
55
import Button from '../../Button';
6+
import Link from '../../Link';
67
import validator from 'validator';
78

89
class StepOne extends Component {
@@ -64,6 +65,11 @@ class StepOne extends Component {
6465
self.props.submit();
6566
}}/>
6667
</div>
68+
<div className={s.loginBtn}>
69+
<Link to="/login">
70+
已有帐号
71+
</Link>
72+
</div>
6773
</div>
6874
</div>
6975
);

0 commit comments

Comments
 (0)