SLiveRedBagView.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //
  2. // SLiveRedBagView.h
  3. // BuguLive
  4. //
  5. // Created by 丁凯 on 2017/7/15.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import "BGBaseView.h"
  9. @class SLiveRedBagView;
  10. @protocol RedBagViewDelegate <NSObject>
  11. @optional
  12. // 点击打开红包
  13. - (void)openRedbag:(SLiveRedBagView *)redBagView;
  14. @end
  15. @interface SLiveRedBagView : BGBaseView<UITableViewDelegate,UITableViewDataSource>
  16. @property(nonatomic,weak)id<RedBagViewDelegate> rebBagDelegate;
  17. @property (weak, nonatomic) IBOutlet UIView *rebbagBigView;
  18. @property (weak, nonatomic) IBOutlet UIImageView *headBackBroundView;
  19. @property (weak, nonatomic) IBOutlet UIImageView *headImgView;
  20. @property (weak, nonatomic) IBOutlet UILabel *nameLabel;
  21. @property (weak, nonatomic) IBOutlet UILabel *messageLabel;
  22. @property (weak, nonatomic) IBOutlet UIButton *redButton;
  23. @property (weak, nonatomic) IBOutlet UIButton *bottomButton;
  24. @property (weak, nonatomic) IBOutlet UIImageView *smallHeadBackBroundView;
  25. @property (weak, nonatomic) IBOutlet UIImageView *smallHeadView;
  26. @property (weak, nonatomic) IBOutlet UILabel *nameLabel2;
  27. @property (weak, nonatomic) IBOutlet UILabel *messageLabel2;
  28. @property (weak, nonatomic) IBOutlet UIView *lineView;
  29. @property (weak, nonatomic) IBOutlet UITableView *myTableView;
  30. @property (weak, nonatomic) IBOutlet UIButton *luckButton;
  31. @property (weak, nonatomic) IBOutlet UIImageView *luckImgView;
  32. @property (weak, nonatomic) IBOutlet UIButton *luckNewButton;
  33. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *headImgHeightConstraint;
  34. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *headImgWidthConstraint;
  35. @property (weak, nonatomic) IBOutlet UIImageView *headImgView3;
  36. @property (weak, nonatomic) IBOutlet UILabel *nameLabel3;
  37. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *smallHeadViewSpaceH;
  38. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *nameLabelSpaceH;
  39. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *messageLabel2SpaceH;
  40. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *messageLabelSpaceH;
  41. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *lineViewSpaceH;
  42. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *redButtonSpaceH;
  43. @property (nonatomic,strong) NSMutableArray *dataArray;
  44. @property (nonatomic,copy) NSString *user_prop_id;
  45. @property (nonatomic,assign) NSInteger currentDiamonds;//当前红包的值
  46. @property (nonatomic, strong) CustomMessageModel *customMessageModel;
  47. @property(nonatomic, strong) NSString *video_id;
  48. - (void)creatRedWithModel:(CustomMessageModel *)model;
  49. //设置红包是打开过的状态
  50. - (void)changeRedPackageView;
  51. @end