IM 部分页面逻辑,聊天列表-详情页

This commit is contained in:
2022-01-18 15:12:13 +08:00
parent 7c6916b4ae
commit e85b9c2c0d
12 changed files with 94 additions and 1273 deletions

View File

@@ -2,19 +2,27 @@ import {
request
} from '../index'
const getImToken = () => {
return request({
url: 'im/token',
}, true)
}
const getFriends = () => {
return request({
url: 'im/friends',
})
}, true)
}
const getUserInfo = async (targetId) => {
const [err, res] = await request({
url: 'im/userInfo/' + targetId,
})
return res
const [err, res] = await uni.request({
url: 'http://api.zh.shangkelian.cn/api/im/userInfo/' + targetId,
})
return res.data.data
}
export {
getFriends
getImToken,
getFriends,
getUserInfo
}