客户端消息发送
This commit is contained in:
@@ -20,11 +20,43 @@
|
||||
},
|
||||
methods: {
|
||||
bindClick(e){
|
||||
//注释之前的旧代码,直接跳转到里聊天页
|
||||
/*
|
||||
uni.navigateTo({
|
||||
url:'../personInfo/detail?param='+e.item.data.userId
|
||||
})
|
||||
})
|
||||
*/
|
||||
uni.navigateTo({
|
||||
url: '../chatWindow/index?userId=' + e.item.data.userId + '&windowType=' + e.windowType
|
||||
});
|
||||
},
|
||||
getflist(){
|
||||
//TODO 从接口获取
|
||||
var list=[
|
||||
{
|
||||
name:"测试18200702230",
|
||||
avatar:"item.portrait",
|
||||
userId:"18200702230",
|
||||
userType:"item.userType",
|
||||
chatNo:"item.chatNo"
|
||||
},
|
||||
{
|
||||
name:"测试18200000000",
|
||||
avatar:"item.portrait",
|
||||
userId:"18200000000",
|
||||
userType:"item.userType",
|
||||
chatNo:"item.chatNo"
|
||||
},{
|
||||
name:"测试18200000001",
|
||||
avatar:"item.portrait",
|
||||
userId:"18200000001",
|
||||
userType:"item.userType",
|
||||
chatNo:"item.chatNo"
|
||||
}
|
||||
]
|
||||
|
||||
this.list=this.$fc.sortList({list:list,key:'name'})
|
||||
|
||||
this.$http.request({
|
||||
url: '/friend/friendList',
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user