diff --git a/Cunkebao/dist/.vite/manifest.json b/Cunkebao/dist/.vite/manifest.json
index 8cbef19d..efc8b536 100644
--- a/Cunkebao/dist/.vite/manifest.json
+++ b/Cunkebao/dist/.vite/manifest.json
@@ -1,9 +1,9 @@
{
- "_charts-C4aL5mHM.js": {
- "file": "assets/charts-C4aL5mHM.js",
+ "_charts-DmoeDXY2.js": {
+ "file": "assets/charts-DmoeDXY2.js",
"name": "charts",
"imports": [
- "_ui-DJLY-TX6.js",
+ "_ui-D66ihimQ.js",
"_vendor-2vc8h_ct.js"
]
},
@@ -11,8 +11,8 @@
"file": "assets/ui-D0C0OGrH.css",
"src": "_ui-D0C0OGrH.css"
},
- "_ui-DJLY-TX6.js": {
- "file": "assets/ui-DJLY-TX6.js",
+ "_ui-D66ihimQ.js": {
+ "file": "assets/ui-D66ihimQ.js",
"name": "ui",
"imports": [
"_vendor-2vc8h_ct.js"
@@ -33,18 +33,18 @@
"name": "vendor"
},
"index.html": {
- "file": "assets/index-BaRKPU0c.js",
+ "file": "assets/index-bW2KwNBi.js",
"name": "index",
"src": "index.html",
"isEntry": true,
"imports": [
"_vendor-2vc8h_ct.js",
"_utils-6WF66_dS.js",
- "_ui-DJLY-TX6.js",
- "_charts-C4aL5mHM.js"
+ "_ui-D66ihimQ.js",
+ "_charts-DmoeDXY2.js"
],
"css": [
- "assets/index-bDMGkYaC.css"
+ "assets/index-BeKt58rz.css"
]
}
}
\ No newline at end of file
diff --git a/Cunkebao/dist/index.html b/Cunkebao/dist/index.html
index bc66eb04..168b3e09 100644
--- a/Cunkebao/dist/index.html
+++ b/Cunkebao/dist/index.html
@@ -11,13 +11,13 @@
-
+
-
-
+
+
-
+
diff --git a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/ChatWindow.module.scss b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/ChatWindow.module.scss
index dfd8c0ce..d60ef945 100644
--- a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/ChatWindow.module.scss
+++ b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/ChatWindow.module.scss
@@ -110,8 +110,10 @@
.chatContent {
flex: 1;
- overflow: hidden;
+ overflow: visible;
background: #f5f5f5;
+ display: flex;
+ flex-direction: column;
.messagesContainer {
height: 100%;
diff --git a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageRecord/MessageRecord.module.scss b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageRecord/MessageRecord.module.scss
index 96fe8a3e..f35eb61c 100644
--- a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageRecord/MessageRecord.module.scss
+++ b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageRecord/MessageRecord.module.scss
@@ -34,6 +34,11 @@
margin: 8px 0;
position: relative;
}
+.loadMore {
+ text-align: center;
+ color: #1890ff;
+ cursor: pointer;
+}
// 消息项
.messageItem {
diff --git a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageRecord/index.tsx b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageRecord/index.tsx
index e2ea13bb..426a5023 100644
--- a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageRecord/index.tsx
+++ b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/components/MessageRecord/index.tsx
@@ -192,6 +192,7 @@ const MessageRecord: React.FC = ({ contract }) => {
return (
+
点击加载更早的信息
{groupMessagesByTime(currentMessages).map((group, groupIndex) => (
diff --git a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx
index e90aab2a..9019a963 100644
--- a/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx
+++ b/Cunkebao/src/pages/pc/ckbox/components/ChatWindow/index.tsx
@@ -1,4 +1,4 @@
-import React, { useEffect, useRef } from "react";
+import React, { useState } from "react";
import { Layout, Button, Avatar, Space, Dropdown, Menu, Tooltip } from "antd";
import {
PhoneOutlined,
@@ -6,6 +6,7 @@ import {
MoreOutlined,
UserOutlined,
TeamOutlined,
+ InfoCircleOutlined,
} from "@ant-design/icons";
import { ContractData, weChatGroup } from "@/pages/pc/ckbox/data";
import styles from "./ChatWindow.module.scss";
@@ -18,15 +19,13 @@ const { Header, Content } = Layout;
interface ChatWindowProps {
contract: ContractData | weChatGroup;
- showProfile?: boolean;
- onToggleProfile?: () => void;
}
-const ChatWindow: React.FC = ({
- contract,
- showProfile = true,
- onToggleProfile,
-}) => {
+const ChatWindow: React.FC = ({ contract }) => {
+ const [showProfile, setShowProfile] = useState(true);
+ const onToggleProfile = () => {
+ setShowProfile(!showProfile);
+ };
const chatMenu = (