From 8a646935bbb635edfd14756e46d8460f0e9c3af0 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Mon, 7 Apr 2025 18:05:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(im):=20=E5=AE=9E=E7=8E=B0=E7=AB=99?= =?UTF-8?q?=E5=86=85=E4=BF=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增联系人列表和消息列表接口 - 实现聊天页面和消息页面的基本功能- 添加联系人头像和消息计数显示 - 优化消息列表和聊天记录的渲染逻辑 --- api/common.js | 16 ++++++ pages/common/im_chat_info.vue | 43 ++++++++------- pages/common/my_message.vue | 100 ++++++++++++++++++++++++---------- pages/student/my/my.vue | 20 +++++-- 4 files changed, 125 insertions(+), 54 deletions(-) diff --git a/api/common.js b/api/common.js index d22fe40..a5f272a 100644 --- a/api/common.js +++ b/api/common.js @@ -17,6 +17,22 @@ export default { }) }, + //获取联系人列表 + getContactList(data) { + let url = `/member/contact_list` + return http.get(url,data).then(res => { + return res; + }) + }, + + //获取消息列表 + getContactMessage(data) { + let url = `/member/contact_message` + return http.get(url,data).then(res => { + return res; + }) + }, + } \ No newline at end of file diff --git a/pages/common/im_chat_info.vue b/pages/common/im_chat_info.vue index 13fafe5..0d9f9a2 100644 --- a/pages/common/im_chat_info.vue +++ b/pages/common/im_chat_info.vue @@ -11,26 +11,21 @@ style="height: 80vh;" > - 2024-05-15 - - - - 你好,aaaaaaaaaaaaaaaaaaaaaaaaa1111111111111111111@@@@@@@@@@@@@@@@@ - - - - - - - 你好,是呢么时间可以到课是呢么时间可以到课是呢么时间可以到课 + + {{v.create_time}} + + + + {{v.content}} + + - - - - - - 间可以到课 + + + + {{v.content}} + @@ -49,6 +44,7 @@