|
@@ -174,6 +174,21 @@ const LoginContent = Form.create()(React.createClass({
|
|
|
<div className="account-content clearfix">
|
|
|
<Spin spinning={this.state.loading} >
|
|
|
<Form className="account-left" horizontal onSubmit={this.handleSubmit}>
|
|
|
+ <FormItem
|
|
|
+ {...formItemLayout}
|
|
|
+ label="手机号码"
|
|
|
+ extra={<span><Icon type="exclamation-circle" /> 请输入正确的手机号码</span>}
|
|
|
+ hasFeedback
|
|
|
+ >
|
|
|
+ {getFieldDecorator('phone', {
|
|
|
+ rules: [{ required: true, message: '请输入手机号码!' },
|
|
|
+ {
|
|
|
+ validator: this.checkPhone,
|
|
|
+ }],
|
|
|
+ })(
|
|
|
+ <Input size="large" />
|
|
|
+ )}
|
|
|
+ </FormItem>
|
|
|
<FormItem
|
|
|
{...formItemLayout}
|
|
|
label="密码"
|
|
@@ -205,22 +220,7 @@ const LoginContent = Form.create()(React.createClass({
|
|
|
})(
|
|
|
<Input type="password" />
|
|
|
)}
|
|
|
- </FormItem>
|
|
|
- <FormItem
|
|
|
- {...formItemLayout}
|
|
|
- label="手机号码"
|
|
|
- extra={<span><Icon type="exclamation-circle" /> 请输入正确的手机号码</span>}
|
|
|
- hasFeedback
|
|
|
- >
|
|
|
- {getFieldDecorator('phone', {
|
|
|
- rules: [{ required: true, message: '请输入手机号码!' },
|
|
|
- {
|
|
|
- validator: this.checkPhone,
|
|
|
- }],
|
|
|
- })(
|
|
|
- <Input size="large" />
|
|
|
- )}
|
|
|
- </FormItem>
|
|
|
+ </FormItem>
|
|
|
<FormItem
|
|
|
{...formItemLayout}
|
|
|
label="验证码"
|