RQVipAllPriceItemViewModel.m 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // RQVipAllPriceItemViewModel.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/3/1.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQVipAllPriceItemViewModel.h"
  9. @interface RQVipAllPriceItemViewModel ()
  10. @property (nonatomic, readwrite, strong) RQTypeModel *typeModel;
  11. @property (nonatomic, readwrite, assign) BOOL isSelect;
  12. @end
  13. @implementation RQVipAllPriceItemViewModel
  14. - (instancetype)initWithRQTypeModel:(RQTypeModel *)typeModel chooseTypeModel:(RQTypeModel *)chooseTypeModel{
  15. if (self = [super init]) {
  16. self.typeModel = typeModel;
  17. CGFloat RQVipAllPriceCellWidth = RQ_SCREEN_WIDTH;
  18. CGFloat RQVipAllPriceCellHeight = RQ_FIT_HORIZONTAL(179.f);
  19. self.isSelect = [typeModel.dictLabel isEqualToString:chooseTypeModel.dictLabel];
  20. self.itemSize = CGSizeMake(RQVipAllPriceCellWidth, RQVipAllPriceCellHeight);
  21. self.operation = ^{
  22. RQ_VIP_Module.chooseTypeModel = typeModel;
  23. };
  24. }
  25. return self;
  26. }
  27. - (NSString *)itemClassName {
  28. return @"RQVipAllPriceCell";
  29. }
  30. @end