MOLiveCell.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // MOLiveCell.h
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2023/10/18.
  6. //
  7. #define MOLiveCell_ID @"MOLiveCell_ID" //复用id
  8. #import <UIKit/UIKit.h>
  9. #import "MOLiveList.h"
  10. #define StatusFont 10.0
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface MOStatusButton: UIButton
  13. @end
  14. @interface MOLiveCell : UICollectionViewCell
  15. /** 背景 */
  16. @property (nonatomic, strong) UIView *bgView;
  17. /** 背景图片 */
  18. @property (nonatomic, strong) UIImageView *bgImgView;
  19. @property (nonatomic, strong) UIImageView *hotImgView;
  20. /** 状态 */
  21. @property (nonatomic, strong) MOStatusButton *statusBtn;
  22. /** 人数 */
  23. @property (nonatomic, strong) BigBtn *numButton;
  24. /** 标题 */
  25. @property (nonatomic, strong) UILabel *titleLab;
  26. @property (nonatomic, strong) UIImageView *countryImgView;
  27. @property (nonatomic, strong) UILabel *nameLab;
  28. /** 更多 */
  29. @property (nonatomic, strong) BigBtn *moreBtn;
  30. /** 数据 */
  31. @property (nonatomic, strong) MOLiveList *model;
  32. @property (nonatomic, strong) UIImageView *shadowView;
  33. @property (nonatomic, strong) UIView *moreView;
  34. @property (nonatomic, strong) UIButton *noLikeBtn;
  35. /** */
  36. @property (nonatomic, copy) void (^moreBtnBlock)(MOLiveList *model);
  37. /** */
  38. @property (nonatomic, copy) void (^cancelBtnBlock)(MOLiveList *model);
  39. /** 不喜欢回调 */
  40. @property (nonatomic, copy) void (^noLikeBlock)(MOLiveList *model);
  41. @end
  42. NS_ASSUME_NONNULL_END