diff --git a/Cunkebao/src/pages/pc/ckbox/components/SidebarMenu/MessageList/MessageList.module.scss b/Cunkebao/src/pages/pc/ckbox/components/SidebarMenu/MessageList/MessageList.module.scss index 7f78afc9..e70717c2 100644 --- a/Cunkebao/src/pages/pc/ckbox/components/SidebarMenu/MessageList/MessageList.module.scss +++ b/Cunkebao/src/pages/pc/ckbox/components/SidebarMenu/MessageList/MessageList.module.scss @@ -63,7 +63,6 @@ .lastMessage { font-size: 12px; color: #8c8c8c; - overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; @@ -71,7 +70,7 @@ padding-right: 5px; height: 18px; // 添加固定高度 line-height: 18px; // 设置行高与高度一致 - + &::before { content: attr(data-count); position: absolute; @@ -88,7 +87,7 @@ text-align: center; display: none; } - + &[data-count]:not([data-count=""]):not([data-count="0"]) { &::before { display: inline-block; @@ -106,7 +105,7 @@ } } } - + .lastDayMessage { position: absolute; bottom: 0; diff --git a/Cunkebao/src/store/module/websocket/msg.data.ts b/Cunkebao/src/store/module/websocket/msg.data.ts new file mode 100644 index 00000000..ed8510b1 --- /dev/null +++ b/Cunkebao/src/store/module/websocket/msg.data.ts @@ -0,0 +1,27 @@ +export interface FriendMessage { + id: number; + wechatFriendId: number; + wechatAccountId: number; + tenantId: number; + accountId: number; + synergyAccountId: number; + content: string; + msgType: number; + msgSubType: number; + msgSvrId: string; + isSend: boolean; + createTime: string; + isDeleted: boolean; + deleteTime: string; + sendStatus: number; + wechatTime: number; + origin: number; + msgId: number; + recalled: boolean; +} +export interface Messages { + friendMessage: FriendMessage | null; + chatroomMessage: string; + seq: number; + cmdType: string; +}