好友资料,申请好友流程,调整
This commit is contained in:
@@ -56,30 +56,10 @@
|
||||
});
|
||||
});
|
||||
},
|
||||
// 操作申请
|
||||
action(e) {
|
||||
uni.showLoading();
|
||||
pedingFriend(e.item.userId)
|
||||
.then(res => {
|
||||
uni.showToast({
|
||||
title: '申请成功',
|
||||
icon: "none",
|
||||
success: () => {
|
||||
this.searchResult.splice(this.searchResult.findIndex((it, index) => it
|
||||
.userId === e.item.userId), 1);
|
||||
if (this.searchResult.length === 0) {
|
||||
this.searchValue = ''
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch(err => {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: err.message,
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
action(e) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/im/friends/info?targetId=' + e.item.userId
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user