SPSBDiscountCouponTableViewController.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // SPSBDiscountCouponTableViewController.h
  3. // 我的社保
  4. //
  5. // Created by shanp on 2021/5/24.
  6. //
  7. #import <JXHFixHeaderTableViewController.h>
  8. @class SPSBDiscountCouponModel;
  9. typedef NS_ENUM(NSInteger, SPSBDiscountCouponViewType) {
  10. SPSBDiscountCouponViewTypeDisplay = 1,
  11. SPSBDiscountCouponViewTypeUse
  12. };
  13. NS_ASSUME_NONNULL_BEGIN
  14. @interface SPSBDiscountCouponTableViewCell : UITableViewCell
  15. @property (nonatomic, strong, nullable) void (^spsb_useAction)(SPSBDiscountCouponTableViewCell *cell);
  16. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier viewType:(SPSBDiscountCouponViewType)viewType;
  17. - (void)reloadData:(SPSBDiscountCouponModel *)data chose:(bool)chose;
  18. @end
  19. @interface SPSBDiscountCouponTableViewController : JXHFixHeaderTableViewController
  20. @property (nonatomic, assign) SPSBDiscountCouponViewType spsb_viewType;
  21. @property (nonatomic, assign) bool spsb_canUse;
  22. @property (nonatomic, assign) NSInteger spsb_maxChose;
  23. @property (nonatomic, readonly, strong) NSSet *spsb_chose;
  24. @property (nonatomic, readonly, strong) NSArray<SPSBDiscountCouponModel *> *spsb_data;
  25. @property (nonatomic, strong) void (^spsb_afterChoose)(void);
  26. @end
  27. NS_ASSUME_NONNULL_END