Commit e8a07c7f authored by Steven杜宇's avatar Steven杜宇

// UI

parent 6668d6a7
......@@ -405,7 +405,7 @@ extension YHMatchResultListViewController: DragCardDataSource {
if success {
YHHUD.flash(message: "已发送申请,继续查看更多人脉吧~")
cardView.bottomBtn.setTitle("已发送好友申请", for: .normal)
cardView.bottomBtn.backgroundColor = .brandMainColor30
cardView.bottomBtn.alpha = 0.3
cardView.bottomBtn.isUserInteractionEnabled = false
userModel.isSendRequest = true
......
......@@ -62,11 +62,11 @@ class YHNameCardInfoView: DragCardView {
if self.userModel.isSendRequest {
self.bottomBtn.setTitle("已发送好友申请", for: .normal)
self.bottomBtn.backgroundColor = .brandMainColor30
self.bottomBtn.alpha = 0.3
self.bottomBtn.isUserInteractionEnabled = false
} else {
self.bottomBtn.setTitle("交换名片", for: .normal)
self.bottomBtn.backgroundColor = .brandMainColor
self.bottomBtn.alpha = 1.0
self.bottomBtn.isUserInteractionEnabled = true
}
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