Commit dac1291c authored by 邓超's avatar 邓超

fix: 江西登录页优化

parent 363385f8
Pipeline #74729 passed with stages
...@@ -1127,19 +1127,27 @@ class Login { ...@@ -1127,19 +1127,27 @@ class Login {
'request.preventCache': Date.now(), 'request.preventCache': Date.now(),
}) })
.then(response => { .then(response => {
if(window.globalConfig?.hasGateWay) { if(response.code === 0) {
const data = response.data; if(window.globalConfig?.hasGateWay) {
self.updateConfig && const data = response.data;
self.updateConfig( self.updateConfig &&
Object.assign({}, self.globalConfig, { self.updateConfig(
access_token: data.access_token, Object.assign({}, self.globalConfig, {
token: data.user_token, access_token: data.access_token,
}), token: data.user_token,
); }),
self.transformLoginHander(response.data, isRememberPWD, pwd); );
self.transformLoginHander(response.data, isRememberPWD, pwd);
} else {
self.transformLoginHander({token: response.data.user_token}, isRememberPWD, pwd);
}
} else { } else {
self.transformLoginHander({token: response.data.user_token}, isRememberPWD, pwd); self.hasTry = true;
self.handleLoginError();
self.events.emit('loginError', response.msg);
message.error(response.msg);
} }
}) })
.catch(error => { .catch(error => {
self.hasTry = true; self.hasTry = true;
......
import React, { forwardRef, useEffect, useRef, useState } from 'react'; import React, { forwardRef, useEffect, useRef, useState } from 'react';
import { Modal, Popover, Form } from 'antd'; import { Modal, Popover, Form, Tooltip } from 'antd';
import { Helmet, HelmetProvider } from 'react-helmet-async'; import { Helmet, HelmetProvider } from 'react-helmet-async';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { useHistory, withRouter } from '@wisdom-utils/runtime'; import { useHistory, withRouter } from '@wisdom-utils/runtime';
...@@ -187,10 +187,10 @@ const Login = forwardRef((props, _ref) => { ...@@ -187,10 +187,10 @@ const Login = forwardRef((props, _ref) => {
4A账号 4A账号
</div> </div>
<div <div
className={classnames(styles.tabItem, { [styles.tabActive]: loginType === '熊猫平台' })} className={classnames(styles.tabItem, { [styles.tabActive]: loginType === '熊猫账号' })}
onClick={() => tabChange('熊猫平台')} onClick={() => tabChange('熊猫账号')}
> >
熊猫平台 熊猫账号
</div> </div>
</div> </div>
<div className={classnames(styles['inner-bg'], styles['login-part'])} ref={loginFormRef}> <div className={classnames(styles['inner-bg'], styles['login-part'])} ref={loginFormRef}>
...@@ -214,10 +214,13 @@ const Login = forwardRef((props, _ref) => { ...@@ -214,10 +214,13 @@ const Login = forwardRef((props, _ref) => {
</div> </div>
</div> </div>
</div> </div>
<div className={styles.linkBox} onClick={toLink}> <Tooltip title="打开网站下载">
<img src={require('./images/9.png')} alt="" /> <div className={styles.linkBox} onClick={toLink}>
APP下载 <img src={require('./images/9.png')} alt="" />
</div> APP下载
</div>
</Tooltip>
<Modal centered visible={visible} width={340} footer={null} closable={false} bodyStyle={{ padding: '15px' }}> <Modal centered visible={visible} width={340} footer={null} closable={false} bodyStyle={{ padding: '15px' }}>
<div ref={sliVerify} /> <div ref={sliVerify} />
</Modal> </Modal>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
} }
.title-image { .title-image {
width: 59px; width: 75px;
margin-right: 20px; margin-right: 20px;
} }
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
font-size: 36px; font-size: 36px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #000000;
text-shadow: 0px 1px 5px rgba(6, 27, 54, 0.8); text-shadow: 0px 1px 5px rgba(6, 27, 54, 0.8);
letter-spacing: 2px; letter-spacing: 2px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment