MPCHeadView.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //
  2. // MPCHeadView.h
  3. // BuguLive
  4. //
  5. // Created by 丁凯 on 2017/8/24.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class userPageModel;
  10. @class UserHomeModel;
  11. @class MPCHeadView;
  12. @protocol MPCHeadViewDelegate <NSObject>
  13. - (void)headView:(MPCHeadView *)headView didClickContribution:(UITableViewCell *)cell;
  14. @end
  15. @interface MPCHeadView : BGBaseView
  16. @property ( nonatomic,strong) UIImageView *clearImgView; //底部透明图
  17. @property ( nonatomic,strong) UIImageView *clearView; //名字的view
  18. @property ( nonatomic,strong) UIButton *backButton; //后退透明的button
  19. @property ( nonatomic,strong) UILabel *outLabel; //送出
  20. @property ( nonatomic,strong) UIButton *messageBtn; //消息或者直播中
  21. @property ( nonatomic,strong) UIImageView *headImgView; //头像imgview
  22. @property ( nonatomic,strong) UIButton *headImgBtn; //头像
  23. @property ( nonatomic,strong) UIImageView *vImgView; //认证图标
  24. @property ( nonatomic,strong) UIView *nameView; //名字的view
  25. @property ( nonatomic,strong) UILabel *nameLabel; //名字
  26. @property ( nonatomic,strong) UIImageView *vipImgView; //编辑的点击事件
  27. @property ( nonatomic,strong) UIImageView *sexImgView; //性别
  28. @property ( nonatomic,strong) UIImageView *rankImgView; //等级
  29. @property ( nonatomic,strong) UIButton *editBtn; //编辑
  30. @property ( nonatomic,strong) UILabel *signatureLabel; //签名
  31. @property ( nonatomic,strong) UILabel *accountLabel; //账号label
  32. @property ( nonatomic,strong) UIView *certificateView; //认证的的view
  33. @property(nonatomic, strong) QMUIButton *certificateBtn;//认证view
  34. @property ( nonatomic,strong) UIImageView *certificateImgView; //认证的图
  35. @property ( nonatomic,strong) UILabel *certificateLabel; //认证
  36. @property ( nonatomic,strong) UIView *itemView; //送出 关注 粉丝或者直播 小视频 关注 粉丝
  37. @property ( nonatomic,strong) UIView *bottomView; //底部view
  38. @property ( nonatomic,strong) JSBadgeView *badge; //消息角标
  39. @property(nonatomic, strong) UIView *lineView;
  40. @property(nonatomic, strong) QMUIButton *concertBtn;
  41. @property(nonatomic, strong) userPageModel *model;
  42. @property(nonatomic, strong) UIButton *shopBtn;
  43. @property(nonatomic, strong) NSString *userID;
  44. @property(nonatomic, strong) UIButton *livingBtn;
  45. @property(nonatomic, weak) id<MPCHeadViewDelegate>delegate;
  46. @property ( nonatomic,copy) void (^headViewBlock) (int btnIndex);
  47. @property ( nonatomic,copy) void (^headViewAttentionBlock) (BOOL isAttention);
  48. @property ( nonatomic,copy) void (^headViewBgImageBlock) (UIImage *image);
  49. /**
  50. 个人中心或者他人主页的头部view
  51. @param frame frame
  52. @param headType 类型 1代表我的主页 2代表其他人的主页
  53. @return self
  54. */
  55. - (instancetype)initWithFrame:(CGRect)frame andHeadType:(int)headType;
  56. //SHomePageVC控制器初始化
  57. - (void)setViewWithModel:(UserHomeModel*)model withUserId:(NSString *)userId;
  58. - (void)setUIWithDict:(NSDictionary *)dict;
  59. //MPersonCenterVC控制器
  60. - (void)setCellWithModel:(userPageModel *)userInfoM;
  61. @end