CommodityCell.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // CommodityCell.h
  3. // yunbaolive
  4. //
  5. // Created by ybRRR on 2020/2/24.
  6. // Copyright © 2020 cat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "CommodityModel.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. typedef void(^commodityCellBtnEvent)(NSString *titles, CommodityModel *models);
  12. @interface CommodityCell : UITableViewCell
  13. @property (weak, nonatomic) IBOutlet UIImageView *thumbImg;
  14. @property (weak, nonatomic) IBOutlet UILabel *priceLb;
  15. @property (weak, nonatomic) IBOutlet UILabel *countLb;
  16. @property (weak, nonatomic) IBOutlet UILabel *nameLb;
  17. @property (weak, nonatomic) IBOutlet UILabel *statusLb;
  18. @property (weak, nonatomic) IBOutlet UIButton *btn1;
  19. @property (weak, nonatomic) IBOutlet UIButton *btn2;
  20. @property (weak, nonatomic) IBOutlet UIButton *btn3;
  21. @property (weak, nonatomic) IBOutlet UIButton *btn4;
  22. @property (strong, nonatomic) IBOutlet UIImageView *typeImg;
  23. @property (strong, nonatomic) IBOutlet UILabel *original_priceLb;
  24. @property (strong, nonatomic) IBOutlet UILabel *lineLb;
  25. @property (nonatomic, strong)CommodityModel *model;
  26. @property (nonatomic, copy)commodityCellBtnEvent btnEvent;
  27. +(CommodityCell*)cellWithTab:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath;
  28. @end
  29. NS_ASSUME_NONNULL_END