|
@@ -155,8 +155,8 @@ const Login2p: React.FC = () => {
|
|
|
}
|
|
|
return (
|
|
|
<>
|
|
|
- <div className={styles['login-content-bg-img']}>
|
|
|
- {!media.isSmallMax && (
|
|
|
+ <div style={{ paddingTop: !wechatToken ? 0 : 130 }} className={styles['login-content-bg-img']}>
|
|
|
+ {!wechatToken && !media.isSmallMax && (
|
|
|
<img
|
|
|
src="https://hzstatic.hzinsights.com/yx_xcx/web/login_log.png"
|
|
|
alt=""
|
|
@@ -164,19 +164,36 @@ const Login2p: React.FC = () => {
|
|
|
/>
|
|
|
)}
|
|
|
<div className={`${media.isSmallMax ? styles['login-content-box-mobile'] : styles['login-content-box']}`}>
|
|
|
- {!media.isSmallMax && (
|
|
|
+ {!wechatToken ? (
|
|
|
<>
|
|
|
- <div>
|
|
|
- <Checkbox onChange={onCheckboxChange} value={isSelectAuthor}>
|
|
|
- 我是专栏作者
|
|
|
- </Checkbox>
|
|
|
- </div>
|
|
|
- {!isSelectAuthor ? (
|
|
|
- <div className={styles['login-title']}>验证码登录</div>
|
|
|
+ {!media.isSmallMax ? (
|
|
|
+ <>
|
|
|
+ <div>
|
|
|
+ <Checkbox onChange={onCheckboxChange} value={isSelectAuthor}>
|
|
|
+ 我是专栏作者
|
|
|
+ </Checkbox>
|
|
|
+ </div>
|
|
|
+ {!isSelectAuthor ? (
|
|
|
+ <div className={styles['login-title']}>验证码登录</div>
|
|
|
+ ) : (
|
|
|
+ <Tabs defaultActiveKey={'1'} items={items} onChange={onChange} style={{ marginTop: 10 }} />
|
|
|
+ )}
|
|
|
+ </>
|
|
|
) : (
|
|
|
- <Tabs defaultActiveKey={'1'} items={items} onChange={onChange} style={{ marginTop: 10 }} />
|
|
|
+ <>
|
|
|
+ <div>
|
|
|
+ <img
|
|
|
+ src="https://hzstatic.hzinsights.com/yx_xcx/web/login_bg_phone_log.png"
|
|
|
+ alt=""
|
|
|
+ className={styles['login-log-img-phone']}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div className={styles['login-title']}>验证码登录</div>
|
|
|
+ </>
|
|
|
)}
|
|
|
</>
|
|
|
+ ) : (
|
|
|
+ <div className={styles['login-title']}>绑定手机号</div>
|
|
|
)}
|
|
|
<div className={styles['login-columncenter-content']}>
|
|
|
<Form form={form} onFinish={handleLoginegByCode}>
|
|
@@ -207,7 +224,7 @@ const Login2p: React.FC = () => {
|
|
|
</Select>
|
|
|
<Input
|
|
|
className="mobile-phone-input"
|
|
|
- prefix={<LoginMobile style={{ width: 15 }} />}
|
|
|
+ prefix={<LoginMobile style={{ width: 15, marginRight: 10 }} />}
|
|
|
placeholder="请输入手机号"
|
|
|
/>
|
|
|
</div>
|
|
@@ -220,7 +237,9 @@ const Login2p: React.FC = () => {
|
|
|
<div className={styles['input-content']}>
|
|
|
<Input
|
|
|
className="mobile-code-input"
|
|
|
- prefix={<SafetyCertificateOutlined style={{ color: '#E37318', fontSize: 20 }} />}
|
|
|
+ prefix={
|
|
|
+ <SafetyCertificateOutlined style={{ color: '#E37318', fontSize: 20, marginRight: 10 }} />
|
|
|
+ }
|
|
|
placeholder="请输入验证码"
|
|
|
/>
|
|
|
<Button
|
|
@@ -246,8 +265,8 @@ const Login2p: React.FC = () => {
|
|
|
rules={[{ required: true, message: 'Please input Password!' }]}
|
|
|
>
|
|
|
<Input.Password
|
|
|
- style={{ height: 60 }}
|
|
|
- prefix={<LoginPassword style={{ width: 20 }} />}
|
|
|
+ style={{ height: 40 }}
|
|
|
+ prefix={<LoginPassword style={{ width: 20, marginRight: 10 }} />}
|
|
|
placeholder="请输入密码"
|
|
|
/>
|
|
|
</Form.Item>
|
|
@@ -258,41 +277,43 @@ const Login2p: React.FC = () => {
|
|
|
</Form.Item>
|
|
|
</Form.Item>
|
|
|
)}
|
|
|
-
|
|
|
<Form.Item>
|
|
|
<Button type="primary" block htmlType="submit" className="custom-style-bottom">
|
|
|
登录
|
|
|
</Button>
|
|
|
</Form.Item>
|
|
|
+ {!wechatToken && (
|
|
|
+ <>
|
|
|
+ <div className={styles['custom-style-divider']}>
|
|
|
+ <Divider className={styles['divider-line']}>
|
|
|
+ <span className={styles['divider-text']}>其他登录方式</span>
|
|
|
+ </Divider>
|
|
|
+ </div>
|
|
|
|
|
|
- <div className={styles['custom-style-divider']}>
|
|
|
- <Divider className={styles['divider-line']}>
|
|
|
- <span className={styles['divider-text']}>其他登陆方式</span>
|
|
|
- </Divider>
|
|
|
- </div>
|
|
|
-
|
|
|
- <Form.Item style={{ textAlign: 'center' }}>
|
|
|
- <Button
|
|
|
- icon={<WechatOutlined style={{ color: '#60C84D', fontSize: 38 }} />}
|
|
|
- onClick={() =>
|
|
|
- login2p.loginWechatLaunch(
|
|
|
- `${process.env.REACT_APP_URL}login2p/wechat?next=${next ? next : encodeURIComponent('/')}`
|
|
|
- )
|
|
|
- }
|
|
|
- shape="circle"
|
|
|
- size="large"
|
|
|
- style={{ paddingTop: '7px', width: 64, height: 64 }}
|
|
|
- ></Button>
|
|
|
- </Form.Item>
|
|
|
- <div className="buymodel-checkbox-wrapper m-t-md">
|
|
|
- <span>登录即代表您阅读并同意</span>
|
|
|
- <span className="buymodel-text-orange" onClick={handleOpenWord.bind(this, '/material/license')}>
|
|
|
- 《研选平台服务协议》
|
|
|
- </span>
|
|
|
- <span className="buymodel-text-orange" onClick={handleOpenWord.bind(this, '/material/policy')}>
|
|
|
- 《研选平台隐私政策》
|
|
|
- </span>
|
|
|
- </div>
|
|
|
+ <Form.Item style={{ textAlign: 'center' }}>
|
|
|
+ <Button
|
|
|
+ icon={<WechatOutlined style={{ color: '#60C84D', fontSize: 38 }} />}
|
|
|
+ onClick={() =>
|
|
|
+ login2p.loginWechatLaunch(
|
|
|
+ `${process.env.REACT_APP_URL}login2p/wechat?next=${next ? next : encodeURIComponent('/')}`
|
|
|
+ )
|
|
|
+ }
|
|
|
+ shape="circle"
|
|
|
+ size="large"
|
|
|
+ style={{ paddingTop: '7px', width: 64, height: 64 }}
|
|
|
+ ></Button>
|
|
|
+ </Form.Item>
|
|
|
+ <div className="buymodel-checkbox-wrapper m-t-md">
|
|
|
+ <span>登录即代表您阅读并同意</span>
|
|
|
+ <span className="buymodel-text-orange" onClick={handleOpenWord.bind(this, '/material/license')}>
|
|
|
+ 《研选平台服务协议》
|
|
|
+ </span>
|
|
|
+ <span className="buymodel-text-orange" onClick={handleOpenWord.bind(this, '/material/policy')}>
|
|
|
+ 《研选平台隐私政策》
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </>
|
|
|
+ )}
|
|
|
</Form>
|
|
|
</div>
|
|
|
</div>
|