MyOrderTableViewCell.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // MyOrderTableViewCell.h
  3. // DSH
  4. //
  5. // Created by 张毅成 on 2018/10/8.
  6. // Copyright © 2018 WZX. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "MyOrderModel.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. enum MyOrderTableViewCellType {
  12. MyOrderTableViewCellTypeAll,
  13. MyOrderTableViewCellTypeObligation,
  14. MyOrderTableViewCellTypeSendGoods,
  15. MyOrderTableViewCellTypeForTheGoods,
  16. MyOrderTableViewCellTypeEvaluate,
  17. MyOrderTableViewCellTypeCancel
  18. };
  19. typedef void(^MyOrderTableViewCellBlock)(void);
  20. @interface MyOrderTableViewCell : UITableViewCell
  21. @property (weak, nonatomic) IBOutlet UIView *viewBG;
  22. @property (weak, nonatomic) IBOutlet UILabel *labelPress;
  23. @property (weak, nonatomic) IBOutlet UILabel *labelType;
  24. @property (weak, nonatomic) IBOutlet UIButton *buttonDelete;
  25. @property (weak, nonatomic) IBOutlet UIImageView *imageViewIcon;
  26. @property (weak, nonatomic) IBOutlet UILabel *labelBookName;
  27. @property (weak, nonatomic) IBOutlet UILabel *labelAuthor;
  28. @property (weak, nonatomic) IBOutlet UILabel *labelMoney;
  29. @property (strong, nonatomic) IBOutletCollection(UIButton) NSArray *arrayButtonBottom;
  30. @property (assign, nonatomic) enum MyOrderTableViewCellType cellType;
  31. @property (copy, nonatomic) MyOrderTableViewCellBlock blockDidTouchButton0;
  32. @property (copy, nonatomic) MyOrderTableViewCellBlock blockDidTouchButton1;
  33. @property (copy, nonatomic) MyOrderTableViewCellBlock blockDidTouchButton2;
  34. @property (copy, nonatomic) MyOrderTableViewCellBlock blockDidTouchButtonDelete;
  35. - (void)setModel:(MyOrderModel *)model;
  36. + (instancetype)cellWithTableView:(UITableView *)tableView AndIndex:(NSInteger)index;
  37. @end
  38. NS_ASSUME_NONNULL_END