前端:商品分类列表

This commit is contained in:
YunaiV
2019-03-25 18:46:51 +08:00
parent e9b5adeac3
commit 40e4236af2
12 changed files with 249 additions and 203 deletions

View File

@@ -108,62 +108,45 @@ class LoginPage extends Component {
}}
/>
</Tab>
<Tab key="mobile" tab={formatMessage({ id: 'app.login.tab-login-mobile' })}>
{login.status === 'error' &&
login.type === 'mobile' &&
!submitting &&
this.renderMessage(
formatMessage({ id: 'app.login.message-invalid-verification-code' })
)}
<Mobile
name="username"
placeholder={formatMessage({ id: 'form.phone-number.placeholder' })}
rules={[
{
required: true,
message: formatMessage({ id: 'validation.phone-number.required' }),
},
{
pattern: /^1\d{10}$/,
message: formatMessage({ id: 'validation.phone-number.wrong-format' }),
},
]}
/>
<Captcha
name="password"
placeholder={formatMessage({ id: 'form.verification-code.placeholder' })}
countDown={120}
onGetCaptcha={this.onGetCaptcha}
getCaptchaButtonText={formatMessage({ id: 'form.get-captcha' })}
getCaptchaSecondText={formatMessage({ id: 'form.captcha.second' })}
rules={[
{
required: true,
message: formatMessage({ id: 'validation.verification-code.required' }),
},
]}
/>
</Tab>
<div>
<Checkbox checked={autoLogin} onChange={this.changeAutoLogin}>
<FormattedMessage id="app.login.remember-me" />
</Checkbox>
<a style={{ float: 'right' }} href="">
<FormattedMessage id="app.login.forgot-password" />
</a>
</div>
{/*<Tab key="mobile" tab={formatMessage({ id: 'app.login.tab-login-mobile' })}>*/}
{/*{login.status === 'error' &&*/}
{/*login.type === 'mobile' &&*/}
{/*!submitting &&*/}
{/*this.renderMessage(*/}
{/*formatMessage({ id: 'app.login.message-invalid-verification-code' })*/}
{/*)}*/}
{/*<Mobile*/}
{/*name="username"*/}
{/*placeholder={formatMessage({ id: 'form.phone-number.placeholder' })}*/}
{/*rules={[*/}
{/*{*/}
{/*required: true,*/}
{/*message: formatMessage({ id: 'validation.phone-number.required' }),*/}
{/*},*/}
{/*{*/}
{/*pattern: /^1\d{10}$/,*/}
{/*message: formatMessage({ id: 'validation.phone-number.wrong-format' }),*/}
{/*},*/}
{/*]}*/}
{/*/>*/}
{/*<Captcha*/}
{/*name="password"*/}
{/*placeholder={formatMessage({ id: 'form.verification-code.placeholder' })}*/}
{/*countDown={120}*/}
{/*onGetCaptcha={this.onGetCaptcha}*/}
{/*getCaptchaButtonText={formatMessage({ id: 'form.get-captcha' })}*/}
{/*getCaptchaSecondText={formatMessage({ id: 'form.captcha.second' })}*/}
{/*rules={[*/}
{/*{*/}
{/*required: true,*/}
{/*message: formatMessage({ id: 'validation.verification-code.required' }),*/}
{/*},*/}
{/*]}*/}
{/*/>*/}
{/*</Tab>*/}
<Submit loading={submitting}>
<FormattedMessage id="app.login.login" />
</Submit>
<div className={styles.other}>
<FormattedMessage id="app.login.sign-in-with" />
<Icon type="alipay-circle" className={styles.icon} theme="outlined" />
<Icon type="taobao-circle" className={styles.icon} theme="outlined" />
<Icon type="weibo-circle" className={styles.icon} theme="outlined" />
<Link className={styles.register} to="/user/register">
<FormattedMessage id="app.login.signup" />
</Link>
</div>
</Login>
</div>
);