开发: 添加客户列表
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
import Footer from '@/components/Footer';
|
||||
import { IAjaxReturn, post } from '@/services/ajax';
|
||||
import {
|
||||
AlipayCircleOutlined,
|
||||
LockOutlined,
|
||||
MobileOutlined,
|
||||
TaobaoCircleOutlined,
|
||||
UserOutlined,
|
||||
WeiboCircleOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import { LockOutlined, MobileOutlined, UserOutlined } from '@ant-design/icons';
|
||||
import {
|
||||
LoginForm,
|
||||
ProFormCaptcha,
|
||||
@@ -15,59 +8,13 @@ import {
|
||||
ProFormText,
|
||||
} from '@ant-design/pro-components';
|
||||
import { useEmotionCss } from '@ant-design/use-emotion-css';
|
||||
import { FormattedMessage, Helmet, history, SelectLang, useModel } from '@umijs/max';
|
||||
import { FormattedMessage, Helmet, history, useModel } from '@umijs/max';
|
||||
import { Alert, App, Tabs } from 'antd';
|
||||
import { stringify as qsStringify } from 'qs';
|
||||
import React, { useState } from 'react';
|
||||
import { flushSync } from 'react-dom';
|
||||
import Settings from '../../../../config/defaultSettings';
|
||||
|
||||
const ActionIcons = () => {
|
||||
const langClassName = useEmotionCss(({ token }) => {
|
||||
return {
|
||||
marginLeft: '8px',
|
||||
color: 'rgba(0, 0, 0, 0.2)',
|
||||
fontSize: '24px',
|
||||
verticalAlign: 'middle',
|
||||
cursor: 'pointer',
|
||||
transition: 'color 0.3s',
|
||||
'&:hover': {
|
||||
color: token.colorPrimaryActive,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
<AlipayCircleOutlined key="AlipayCircleOutlined" className={langClassName} />
|
||||
<TaobaoCircleOutlined key="TaobaoCircleOutlined" className={langClassName} />
|
||||
<WeiboCircleOutlined key="WeiboCircleOutlined" className={langClassName} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
const Lang = () => {
|
||||
const langClassName = useEmotionCss(({ token }) => {
|
||||
return {
|
||||
width: 42,
|
||||
height: 42,
|
||||
lineHeight: '42px',
|
||||
position: 'fixed',
|
||||
right: 16,
|
||||
borderRadius: token.borderRadius,
|
||||
':hover': {
|
||||
backgroundColor: token.colorBgTextHover,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
return (
|
||||
<div className={langClassName} data-lang>
|
||||
{SelectLang && <SelectLang />}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const LoginMessage: React.FC<{
|
||||
content: string;
|
||||
}> = ({ content }) => {
|
||||
@@ -100,17 +47,6 @@ const Login: React.FC = () => {
|
||||
};
|
||||
});
|
||||
|
||||
const fetchUserInfo = async () => {
|
||||
const userInfo = await initialState?.fetchUserInfo?.();
|
||||
if (userInfo) {
|
||||
flushSync(() => {
|
||||
setInitialState((s) => ({
|
||||
...s,
|
||||
currentUser: userInfo,
|
||||
}));
|
||||
});
|
||||
}
|
||||
};
|
||||
const { notification } = App.useApp();
|
||||
|
||||
window.NotificationCF = notification;
|
||||
@@ -154,24 +90,6 @@ const Login: React.FC = () => {
|
||||
padding: '32px 0',
|
||||
}}
|
||||
>
|
||||
{/* <ChatTime msgtime={1680713999000}></ChatTime>
|
||||
<ChatTime msgtime={1680763041000}></ChatTime>
|
||||
<ChatTime msgtime={1680710399000}></ChatTime>
|
||||
<ChatTime msgtime={1680623999000}></ChatTime>
|
||||
<ChatTime msgtime={1680537599000}></ChatTime>
|
||||
<ChatTime msgtime={1680451199000}></ChatTime>
|
||||
<ChatTime msgtime={1680331041000}></ChatTime>
|
||||
<ChatTime msgtime={1680195599000}></ChatTime>
|
||||
<ChatTime msgtime={1680244641000}></ChatTime>
|
||||
<ChatTime msgtime={1680191999000}></ChatTime>
|
||||
<ChatTime msgtime={1680158241000}></ChatTime>
|
||||
<ChatRevoke></ChatRevoke>
|
||||
<ChatAgreeOrNot />
|
||||
<ChatVoice></ChatVoice>
|
||||
<ChatVideo></ChatVideo>
|
||||
<ChatCard></ChatCard>
|
||||
<ChatEmotion></ChatEmotion>
|
||||
<ChatBar></ChatBar> */}
|
||||
<LoginForm
|
||||
contentStyle={{
|
||||
minWidth: 280,
|
||||
|
Reference in New Issue
Block a user