替换了名字

This commit is contained in:
2020-08-14 10:07:33 +08:00
parent 0f03c543e1
commit 1c3ed37983
6 changed files with 11 additions and 10 deletions

View File

@@ -116,7 +116,7 @@ IMService.prototype.initialContacts = function (friendList) {
},
success(res){
console.log(res)
that.friends[i[0]] = new Friend(res.data.data.member_id, res.data.data.member_nickname, res.data.data.member_avatar,i[1],i[2],i[3]);
that.friends[i[0]] = new Friend(res.data.data.member_id, res.data.data.store_name, res.data.data.member_avatar,i[1],i[2],i[3]);
console.log(that.friends)
let sorts = function (friends){
let paixu = function (a,b){
@@ -295,7 +295,7 @@ IMService.prototype.initialIMListeners = function () {
},
success(res){
console.log(res)
that.friends[message.senderId] = new Friend(res.data.data.member_id, res.data.data.member_nickname, res.data.data.member_avatar);
that.friends[message.senderId] = new Friend(res.data.data.member_id, res.data.data.store_name, res.data.data.member_avatar);
friend = that.friends[message.senderId];
console.log(friend)
friend.unReadMessage++;
@@ -538,7 +538,7 @@ IMService.prototype.sendMessagesSetStorage = function (friendId,message){
},
success(res){
console.log(res)
that.friends[friendId] = new Friend(res.data.data.member_id, res.data.data.member_nickname, res.data.data.member_avatar);
that.friends[friendId] = new Friend(res.data.data.member_id, res.data.data.store_name, res.data.data.member_avatar);
friend = that.friends[friendId];
console.log(friend)
friend.text = message