|
@@ -76,7 +76,14 @@ cc.Class({
|
|
|
GameEvent.on(Notikey.RefreshFriendList, this, () => {
|
|
|
|
|
|
this.loadFriendData().then((data) => {
|
|
|
- Global.friendList = this.friends = data.users || [];
|
|
|
+ let _friendList = data.users || [];
|
|
|
+ // 过滤好友申请项
|
|
|
+ _friendList = _friendList.filter(n => {
|
|
|
+ return n.isApplied != 1
|
|
|
+ });
|
|
|
+
|
|
|
+ Global.friendList = this.friends = _friendList;
|
|
|
+
|
|
|
this.friendLayout();
|
|
|
}).catch((err) => {
|
|
|
console.log(err);
|