好友资料,申请好友流程,调整

This commit is contained in:
2022-01-26 13:53:59 +08:00
parent f4e5166508
commit b24d2a4906
35 changed files with 5294 additions and 107 deletions

View File

@@ -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
})
}
}
};