无感处理墨册SAAS化加好友需求部分代码,等待后续上线通知
Some checks are pending
Check / lint (push) Waiting to run
Check / typecheck (push) Waiting to run
Check / build (build, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build, 18.x, windows-latest) (push) Waiting to run
Check / build (build:app, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:app, 18.x, windows-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Waiting to run

This commit is contained in:
wangyifeng 2025-06-30 13:26:36 +08:00
parent 16c881acfd
commit 94ef829509
5 changed files with 36 additions and 31 deletions

View File

@ -68,7 +68,8 @@ export const ServeTalkRecords = (data) => {
// 获取转发会话记录详情列表服务接口 // 获取转发会话记录详情列表服务接口
export const ServeGetForwardRecords = (data) => { export const ServeGetForwardRecords = (data) => {
return request({ return request({
url: '/api/v1/talk/records/forward/v2', // url: '/api/v1/talk/records/forward/v2',
url: '/api/v1/talk/records/forward',
method: 'GET', method: 'GET',
data, data,
}) })

View File

@ -4,7 +4,8 @@ import qs from 'qs'
// ES搜索聊天记录-主页搜索什么都有 // ES搜索聊天记录-主页搜索什么都有
export const ServeSeachQueryAll = (data) => { export const ServeSeachQueryAll = (data) => {
return request({ return request({
url: '/api/v1/elasticsearch/query-all/v2', // url: '/api/v1/elasticsearch/query-all/v2',
url: '/api/v1/elasticsearch/query-all',
method: 'POST', method: 'POST',
data, data,
}) })
@ -13,7 +14,8 @@ export const ServeSeachQueryAll = (data) => {
// ES搜索用户数据 // ES搜索用户数据
export const ServeQueryUser = (data) => { export const ServeQueryUser = (data) => {
return request({ return request({
url: '/api/v1/elasticsearch/query-user/v2', // url: '/api/v1/elasticsearch/query-user/v2',
url: '/api/v1/elasticsearch/query-user',
method: 'POST', method: 'POST',
data, data,
}) })

View File

@ -256,16 +256,17 @@ const checkSendPermission = () => {
// //
const checkNeedAddFriend = () => { const checkNeedAddFriend = () => {
let params = { state.canSendMsg = true
receiver_id: state.userInfo.sys_id, //id // let params = {
talk_type: 1, // receiver_id: state.userInfo.sys_id, //id
} // talk_type: 1,
ServeCheckFriend(params).then((res) => { // }
console.log(res) // ServeCheckFriend(params).then((res) => {
if (res?.code === 200) { // console.log(res)
state.canSendMsg = res.data?.is_friend || false // if (res?.code === 200) {
} // state.canSendMsg = res.data?.is_friend || false
}) // }
// })
} }
// //

View File

@ -2807,16 +2807,17 @@ const chatInputHeight = computed(() => {
// //
const checkNeedAddFriend = () => { const checkNeedAddFriend = () => {
let params = { state.value.isFriendOrSameCompany = true
receiver_id: talkParams.receiver_id, //id // let params = {
talk_type: 1, // receiver_id: talkParams.receiver_id, //id
} // talk_type: 1,
ServeCheckFriend(params).then((res) => { // }
console.log(res) // ServeCheckFriend(params).then((res) => {
if (res?.code === 200) { // console.log(res)
state.value.isFriendOrSameCompany = res.data?.is_friend || false // if (res?.code === 200) {
} // state.value.isFriendOrSameCompany = res.data?.is_friend || false
}) // }
// })
} }
// //

View File

@ -86,7 +86,7 @@
</div> </div>
</div> </div>
<div class="divider"></div> <div class="divider"></div>
<div <!-- <div
@click="toAddFriendPage" @click="toAddFriendPage"
class="flex items-center pl-[22rpx] py-[32rpx]" class="flex items-center pl-[22rpx] py-[32rpx]"
> >
@ -103,7 +103,7 @@
添加好友 添加好友
</div> </div>
</div> </div>
<div class="divider"></div> <div class="divider"></div> -->
<div <div
@click="toAddressBookPage" @click="toAddressBookPage"
class="flex items-center pl-[22rpx] py-[32rpx]" class="flex items-center pl-[22rpx] py-[32rpx]"
@ -245,14 +245,14 @@ const toAddFriendPage = () => {
// //
const toAddressBookPage = () => { const toAddressBookPage = () => {
// - // -
// uni.navigateTo({ uni.navigateTo({
// url: '/pages/chooseByDeps/index?chooseMode=3', url: '/pages/chooseByDeps/index?chooseMode=3',
// }) })
// - // -
uni.navigateTo({ // uni.navigateTo({
url: '/pages/addressBook/index', // url: '/pages/addressBook/index',
}) // })
} }
/* watch( /* watch(