开发: footer css修改, 时间格式-改为/
This commit is contained in:
@@ -19,8 +19,8 @@ body,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ant-pro-global-footer {
|
.ant-pro-global-footer {
|
||||||
margin-top: 0;
|
margin-top: 0 !important;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
|
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
|
||||||
|
@@ -14,13 +14,12 @@ export const ChatTime: React.FC<IChatTimeProps> = (props) => {
|
|||||||
const now = new Date();
|
const now = new Date();
|
||||||
const msgtimeStr = props.msgtime.replace(/-/g, '/');
|
const msgtimeStr = props.msgtime.replace(/-/g, '/');
|
||||||
const msgtime = new Date(msgtimeStr);
|
const msgtime = new Date(msgtimeStr);
|
||||||
console.log(msgtime);
|
|
||||||
|
|
||||||
const yesterday = new Date();
|
const yesterday = new Date();
|
||||||
yesterday.setDate(yesterday.getDate() - 1);
|
yesterday.setDate(yesterday.getDate() - 1);
|
||||||
const dayDiff =
|
const dayDiff =
|
||||||
(new Date(
|
(new Date(
|
||||||
`${now.getFullYear()}-${padWith(now.getMonth() + 1)}-${padWith(now.getDate())} 00:00:00`,
|
`${now.getFullYear()}/${padWith(now.getMonth() + 1)}/${padWith(now.getDate())} 00:00:00`,
|
||||||
).getTime() -
|
).getTime() -
|
||||||
new Date(msgtimeStr).getTime()) /
|
new Date(msgtimeStr).getTime()) /
|
||||||
(24 * 60 * 60 * 1000) +
|
(24 * 60 * 60 * 1000) +
|
||||||
|
@@ -629,6 +629,7 @@ const ChatLogsPhone: React.FC = () => {
|
|||||||
}
|
}
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
setOpenChatContentDrawer(false);
|
setOpenChatContentDrawer(false);
|
||||||
|
setChatLogs([]);
|
||||||
}}
|
}}
|
||||||
bodyStyle={{ padding: 0, background: '#F5F5F5' }}
|
bodyStyle={{ padding: 0, background: '#F5F5F5' }}
|
||||||
>
|
>
|
||||||
|
Reference in New Issue
Block a user