礼物
This commit is contained in:
@@ -140,6 +140,12 @@ class HomeVoiceUserInfoView: UIView {
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
@objc func sendGiftBtnAction(){
|
||||
if let _clickBtnBlock = clickBtnBlock,let uid = self.user?.uid{
|
||||
_clickBtnBlock(5,"\(uid)")
|
||||
self.removeFromSuperview()
|
||||
}
|
||||
}
|
||||
@objc func attentionBtnAction(){
|
||||
if self.type == 1{
|
||||
if let _clickBtnBlock = clickBtnBlock,let uid = self.model?.uid{
|
||||
@@ -175,9 +181,10 @@ class HomeVoiceUserInfoView: UIView {
|
||||
if let _clickBtnBlock = clickBtnBlock, let uid = self.model?.uid{
|
||||
_clickBtnBlock(0,"\(uid)")
|
||||
}
|
||||
if let _clickBtnBlock = clickBtnBlock,let uid = self.user?.uid{
|
||||
if let _clickBtnBlock = clickBtnBlock, let uid = self.user?.uid{
|
||||
_clickBtnBlock(0,"\(uid)")
|
||||
}
|
||||
|
||||
}
|
||||
@objc func playVoiceAction(){
|
||||
guard let userVoice = self.model?.userVoice else {
|
||||
@@ -409,7 +416,7 @@ class HomeVoiceUserInfoView: UIView {
|
||||
|
||||
_sendGfitBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .medium)
|
||||
_sendGfitBtn.setImage(UIImage(named: "yin_plane_star_send_gift_icon"), for: .selected)
|
||||
_sendGfitBtn.addTarget(self, action: #selector(attentionBtnAction), for: .touchUpInside)
|
||||
_sendGfitBtn.addTarget(self, action: #selector(sendGiftBtnAction), for: .touchUpInside)
|
||||
return _sendGfitBtn
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user