From b16f610ec13e938c91bb31c90c7800fb0e72557e Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Wed, 28 May 2025 11:34:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?style:=E8=B0=83=E6=95=B4=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将签退按钮背景色从 #465cff 改为 #00b0f0 - 将线索按钮背景色从 #455bfe 改为 #29d3b4 --- pages/common/my_attendance.vue | 2 +- pages/market/clue/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/my_attendance.vue b/pages/common/my_attendance.vue index cffd7cf..8e79839 100644 --- a/pages/common/my_attendance.vue +++ b/pages/common/my_attendance.vue @@ -139,7 +139,7 @@ 请假 - 签退 + 签退 diff --git a/pages/market/clue/index.vue b/pages/market/clue/index.vue index 83737f4..fb95d75 100644 --- a/pages/market/clue/index.vue +++ b/pages/market/clue/index.vue @@ -618,7 +618,7 @@ export default { border-radius: 5rpx; font-size: 24rpx; color: #fff; - background-color: #455bfe; + background-color: #29d3b4; width: 20%; height: 100%; } From cd7220c48896e99b13d9da968e69d74b9cdc0f6a Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Wed, 28 May 2025 18:57:03 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat(api):=20=E6=B7=BB=E5=8A=A0=E9=94=80?= =?UTF-8?q?=E5=94=AE=E7=AB=AF=E8=81=8A=E5=A4=A9=E5=8A=9F=E8=83=BD=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3=E5=92=8C=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增获取好友关系详情、聊天消息列表和发送聊天消息的 API 接口 - 实现聊天页面的初始化、获取聊天记录、发送消息等功能 - 优化聊天消息的展示逻辑,根据用户类型区分发送和接收消息 - 修改市场线索页面,增加跳转到聊天页面的功能 --- api/apiRoute.js | 22 ++++++ pages/common/im_chat_info.vue | 139 +++++++++++++++++++++++++++++----- pages/market/clue/index.vue | 5 +- 3 files changed, 144 insertions(+), 22 deletions(-) diff --git a/api/apiRoute.js b/api/apiRoute.js index 76f946b..29661c2 100644 --- a/api/apiRoute.js +++ b/api/apiRoute.js @@ -227,6 +227,28 @@ export default { }) }, + //销售端-获取好友关系绑定详情 + xs_chatGetChatFriendsInfo(data = {}) { + let url = '/chat/getChatFriendsInfo' + return http.get(url, data).then(res => { + return res; + }) + }, + //销售端-获取聊天消息列表 + xs_chatGetChatMessagesList(data = {}) { + let url = '/chat/getChatMessagesList' + return http.get(url, data).then(res => { + return res; + }) + }, + //销售端-发送聊天消息 + xs_chatSendChatMessages(data = {}) { + let url = '/chat/sendChatMessages' + return http.post(url, data).then(res => { + return res; + }) + }, + diff --git a/pages/common/im_chat_info.vue b/pages/common/im_chat_info.vue index b0852ab..bc709d3 100644 --- a/pages/common/im_chat_info.vue +++ b/pages/common/im_chat_info.vue @@ -7,12 +7,11 @@ class="section_1" scroll-y="true" :lower-threshold="lowerThreshold" - @scrolltolower="loadMoreData" style="height: 80vh;" > - - {{v.create_time}} + + {{v.created_at}} @@ -43,6 +42,7 @@