123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // SPSBDiscountCouponTableViewController.h
- // 我的社保
- //
- // Created by shanp on 2021/5/24.
- //
- #import <JXHFixHeaderTableViewController.h>
- @class SPSBDiscountCouponModel;
- typedef NS_ENUM(NSInteger, SPSBDiscountCouponViewType) {
- SPSBDiscountCouponViewTypeDisplay = 1,
- SPSBDiscountCouponViewTypeUse
- };
- NS_ASSUME_NONNULL_BEGIN
- @interface SPSBDiscountCouponTableViewCell : UITableViewCell
- @property (nonatomic, strong, nullable) void (^spsb_useAction)(SPSBDiscountCouponTableViewCell *cell);
- - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier viewType:(SPSBDiscountCouponViewType)viewType;
- - (void)reloadData:(SPSBDiscountCouponModel *)data chose:(bool)chose;
- @end
- @interface SPSBDiscountCouponTableViewController : JXHFixHeaderTableViewController
- @property (nonatomic, assign) SPSBDiscountCouponViewType spsb_viewType;
- @property (nonatomic, assign) bool spsb_canUse;
- @property (nonatomic, assign) NSInteger spsb_maxChose;
- @property (nonatomic, readonly, strong) NSSet *spsb_chose;
- @property (nonatomic, readonly, strong) NSArray<SPSBDiscountCouponModel *> *spsb_data;
- @property (nonatomic, strong) void (^spsb_afterChoose)(void);
- @end
- NS_ASSUME_NONNULL_END
|