开发: 添加客户列表

This commit is contained in:
zhengw
2023-04-18 17:28:06 +08:00
parent 97348fea9e
commit 079739223a
10 changed files with 456 additions and 269 deletions

View File

@@ -109,8 +109,8 @@ const ChatLogs: React.FC = () => {
setChatLogLoading(false);
isAllChatRef.current = count < param.page_count * param.curr_page;
if (res.err_code == 0) {
let arr: IChat[] = [];
if (Array.isArray(res.data) && res.data.length) {
let arr: IChat[] = [];
const temp = res.data.reverse();
const mark = { curr_page: param.curr_page, msg_time: temp[temp.length - 1].msg_time };
if (param.curr_page == 1) {
@@ -140,8 +140,8 @@ const ChatLogs: React.FC = () => {
// }
// });
// }
setChatLogs(arr);
}
setChatLogs(arr);
}
});
};
@@ -708,6 +708,18 @@ const ChatLogs: React.FC = () => {
</div>
</div>
<div>{selectCustFollow?.remark}</div>
<div
style={{
paddingTop: 12,
marginBottom: 12,
paddingBottom: 12,
borderBottom: '1px solid #ddd',
fontSize: 16,
fontWeight: 'bold',
}}
>
</div>
{formatTags(selectCustFollow?.tags)}
</div>
) : (