Commit f2df2bb5 authored by David黄金龙's avatar David黄金龙
parents 9d12025f e8a07c7f
...@@ -405,7 +405,7 @@ extension YHMatchResultListViewController: DragCardDataSource { ...@@ -405,7 +405,7 @@ extension YHMatchResultListViewController: DragCardDataSource {
if success { if success {
YHHUD.flash(message: "已发送申请,继续查看更多人脉吧~") YHHUD.flash(message: "已发送申请,继续查看更多人脉吧~")
cardView.bottomBtn.setTitle("已发送好友申请", for: .normal) cardView.bottomBtn.setTitle("已发送好友申请", for: .normal)
cardView.bottomBtn.backgroundColor = .brandMainColor30 cardView.bottomBtn.alpha = 0.3
cardView.bottomBtn.isUserInteractionEnabled = false cardView.bottomBtn.isUserInteractionEnabled = false
userModel.isSendRequest = true userModel.isSendRequest = true
......
...@@ -62,11 +62,11 @@ class YHNameCardInfoView: DragCardView { ...@@ -62,11 +62,11 @@ class YHNameCardInfoView: DragCardView {
if self.userModel.isSendRequest { if self.userModel.isSendRequest {
self.bottomBtn.setTitle("已发送好友申请", for: .normal) self.bottomBtn.setTitle("已发送好友申请", for: .normal)
self.bottomBtn.backgroundColor = .brandMainColor30 self.bottomBtn.alpha = 0.3
self.bottomBtn.isUserInteractionEnabled = false self.bottomBtn.isUserInteractionEnabled = false
} else { } else {
self.bottomBtn.setTitle("交换名片", for: .normal) self.bottomBtn.setTitle("交换名片", for: .normal)
self.bottomBtn.backgroundColor = .brandMainColor self.bottomBtn.alpha = 1.0
self.bottomBtn.isUserInteractionEnabled = true self.bottomBtn.isUserInteractionEnabled = true
} }
self.setNeedsLayout() self.setNeedsLayout()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment