From 94ef829509311a2be06d3dbddfda2a119bf3b27a Mon Sep 17 00:00:00 2001 From: wangyifeng <812766448@qq.com> Date: Mon, 30 Jun 2025 13:26:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E6=84=9F=E5=A4=84=E7=90=86=E5=A2=A8?= =?UTF-8?q?=E5=86=8CSAAS=E5=8C=96=E5=8A=A0=E5=A5=BD=E5=8F=8B=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E9=83=A8=E5=88=86=E4=BB=A3=E7=A0=81=EF=BC=8C=E7=AD=89?= =?UTF-8?q?=E5=BE=85=E5=90=8E=E7=BB=AD=E4=B8=8A=E7=BA=BF=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/chat/index.js | 3 ++- src/api/search/index.js | 6 ++++-- src/pages/dialog/dialogDetail/userDetail.vue | 21 ++++++++++---------- src/pages/dialog/index.vue | 21 ++++++++++---------- src/pages/index/index.vue | 16 +++++++-------- 5 files changed, 36 insertions(+), 31 deletions(-) diff --git a/src/api/chat/index.js b/src/api/chat/index.js index d5071b9..4ecb97c 100644 --- a/src/api/chat/index.js +++ b/src/api/chat/index.js @@ -68,7 +68,8 @@ export const ServeTalkRecords = (data) => { // 获取转发会话记录详情列表服务接口 export const ServeGetForwardRecords = (data) => { return request({ - url: '/api/v1/talk/records/forward/v2', + // url: '/api/v1/talk/records/forward/v2', + url: '/api/v1/talk/records/forward', method: 'GET', data, }) diff --git a/src/api/search/index.js b/src/api/search/index.js index 96cede9..60aa33f 100644 --- a/src/api/search/index.js +++ b/src/api/search/index.js @@ -4,7 +4,8 @@ import qs from 'qs' // ES搜索聊天记录-主页搜索什么都有 export const ServeSeachQueryAll = (data) => { return request({ - url: '/api/v1/elasticsearch/query-all/v2', + // url: '/api/v1/elasticsearch/query-all/v2', + url: '/api/v1/elasticsearch/query-all', method: 'POST', data, }) @@ -13,7 +14,8 @@ export const ServeSeachQueryAll = (data) => { // ES搜索用户数据 export const ServeQueryUser = (data) => { return request({ - url: '/api/v1/elasticsearch/query-user/v2', + // url: '/api/v1/elasticsearch/query-user/v2', + url: '/api/v1/elasticsearch/query-user', method: 'POST', data, }) diff --git a/src/pages/dialog/dialogDetail/userDetail.vue b/src/pages/dialog/dialogDetail/userDetail.vue index 97b59d5..af0f4fa 100644 --- a/src/pages/dialog/dialogDetail/userDetail.vue +++ b/src/pages/dialog/dialogDetail/userDetail.vue @@ -256,16 +256,17 @@ const checkSendPermission = () => { //校验是否需要加好友 const checkNeedAddFriend = () => { - let params = { - receiver_id: state.userInfo.sys_id, //聊天的用户id - talk_type: 1, - } - ServeCheckFriend(params).then((res) => { - console.log(res) - if (res?.code === 200) { - state.canSendMsg = res.data?.is_friend || false - } - }) + state.canSendMsg = true + // let params = { + // receiver_id: state.userInfo.sys_id, //聊天的用户id + // talk_type: 1, + // } + // ServeCheckFriend(params).then((res) => { + // console.log(res) + // if (res?.code === 200) { + // state.canSendMsg = res.data?.is_friend || false + // } + // }) } //主动加好友(单向好友) diff --git a/src/pages/dialog/index.vue b/src/pages/dialog/index.vue index d956c53..8b09807 100644 --- a/src/pages/dialog/index.vue +++ b/src/pages/dialog/index.vue @@ -2807,16 +2807,17 @@ const chatInputHeight = computed(() => { //校验是否需要加好友 const checkNeedAddFriend = () => { - let params = { - receiver_id: talkParams.receiver_id, //聊天的用户id - talk_type: 1, - } - ServeCheckFriend(params).then((res) => { - console.log(res) - if (res?.code === 200) { - state.value.isFriendOrSameCompany = res.data?.is_friend || false - } - }) + state.value.isFriendOrSameCompany = true + // let params = { + // receiver_id: talkParams.receiver_id, //聊天的用户id + // talk_type: 1, + // } + // ServeCheckFriend(params).then((res) => { + // console.log(res) + // if (res?.code === 200) { + // state.value.isFriendOrSameCompany = res.data?.is_friend || false + // } + // }) } //主动加好友(单向好友) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 2ffb736..84dcebb 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -86,7 +86,7 @@
-
@@ -103,7 +103,7 @@ 添加好友
-
+
-->
{ //点击跳转到通讯录页面 const toAddressBookPage = () => { // 旧版本-按组织架构树的通讯录 - // uni.navigateTo({ - // url: '/pages/chooseByDeps/index?chooseMode=3', - // }) + uni.navigateTo({ + url: '/pages/chooseByDeps/index?chooseMode=3', + }) // 新版本-按公司别、好友、群组的通讯录 - uni.navigateTo({ - url: '/pages/addressBook/index', - }) + // uni.navigateTo({ + // url: '/pages/addressBook/index', + // }) } /* watch(