音视频

This commit is contained in:
2023-11-22 19:23:20 +08:00
parent 9a57e4aaab
commit 5a5f97c357
22 changed files with 13599 additions and 513 deletions

View File

@@ -78,6 +78,8 @@
// 注如果局部custom与全局custom有同名属性则后面的属性会覆盖前面的属性相当于Object.assign(全局,局部)
custom: {target: "znzq"} , // 可以加一些自定义参数在拦截器等地方使用。比如这里我加了一个auth可在拦截器里拿到如果true就传token
}).then(res => {
//userInfo
const userId = uni.getStorageSync("userId")
console.log("=========获取到数据")
console.log(res)
if(res.statusCode==200){
@@ -85,14 +87,16 @@
var list=[]
res.data.result.records.map((item)=>{
console.log(item)
list.push({
name:item.realname,
avatar:item.portrait,
userId:item.userId,
userType:1,
chatNo:item.userId
})
//在通讯录中过滤掉自己
if(userId!=item.userId){
list.push({
name:item.realname,
avatar:item.portrait,
userId:item.userId,
userType:1,
chatNo:item.userId
})
}
})
this.list=this.$fc.sortList({list:list,key:'name'})