Commit dac1291c authored by 邓超's avatar 邓超

fix: 江西登录页优化

parent 363385f8
Pipeline #74729 passed with stages
......@@ -1127,19 +1127,27 @@ class Login {
'request.preventCache': Date.now(),
})
.then(response => {
if(window.globalConfig?.hasGateWay) {
const data = response.data;
self.updateConfig &&
self.updateConfig(
Object.assign({}, self.globalConfig, {
access_token: data.access_token,
token: data.user_token,
}),
);
self.transformLoginHander(response.data, isRememberPWD, pwd);
if(response.code === 0) {
if(window.globalConfig?.hasGateWay) {
const data = response.data;
self.updateConfig &&
self.updateConfig(
Object.assign({}, self.globalConfig, {
access_token: data.access_token,
token: data.user_token,
}),
);
self.transformLoginHander(response.data, isRememberPWD, pwd);
} else {
self.transformLoginHander({token: response.data.user_token}, isRememberPWD, pwd);
}
} 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 => {
self.hasTry = true;
......
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 { connect } from 'react-redux';
import { useHistory, withRouter } from '@wisdom-utils/runtime';
......@@ -187,10 +187,10 @@ const Login = forwardRef((props, _ref) => {
4A账号
</div>
<div
className={classnames(styles.tabItem, { [styles.tabActive]: loginType === '熊猫平台' })}
onClick={() => tabChange('熊猫平台')}
className={classnames(styles.tabItem, { [styles.tabActive]: loginType === '熊猫账号' })}
onClick={() => tabChange('熊猫账号')}
>
熊猫平台
熊猫账号
</div>
</div>
<div className={classnames(styles['inner-bg'], styles['login-part'])} ref={loginFormRef}>
......@@ -214,10 +214,13 @@ const Login = forwardRef((props, _ref) => {
</div>
</div>
</div>
<div className={styles.linkBox} onClick={toLink}>
<img src={require('./images/9.png')} alt="" />
APP下载
</div>
<Tooltip title="打开网站下载">
<div className={styles.linkBox} onClick={toLink}>
<img src={require('./images/9.png')} alt="" />
APP下载
</div>
</Tooltip>
<Modal centered visible={visible} width={340} footer={null} closable={false} bodyStyle={{ padding: '15px' }}>
<div ref={sliVerify} />
</Modal>
......
......@@ -48,7 +48,7 @@
}
.title-image {
width: 59px;
width: 75px;
margin-right: 20px;
}
......@@ -56,7 +56,7 @@
font-size: 36px;
font-family: PingFang SC;
font-weight: 500;
color: #FFFFFF;
color: #000000;
text-shadow: 0px 1px 5px rgba(6, 27, 54, 0.8);
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