RQVipCenterItemViewModel.m 643 B

123456789101112131415161718192021222324
  1. //
  2. // RQVipCenterItemViewModel.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/9/22.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQVipCenterItemViewModel.h"
  9. @implementation RQVipCenterItemViewModel
  10. - (instancetype)initWithRQTypeModel:(RQTypeModel *)typeModel {
  11. if (self = [super init]) {
  12. CGFloat RQVipSinglePriceCellWidth = (RQ_SCREEN_WIDTH - 8 - 16) / 4.f;
  13. CGFloat RQVipSinglePriceCellHeight = RQ_FIT_HORIZONTAL(132.f);
  14. self.itemSize = CGSizeMake(RQVipSinglePriceCellWidth, RQVipSinglePriceCellHeight);
  15. }
  16. return self;
  17. }
  18. - (NSString *)itemClassName {
  19. return @"RQVipCenterCell";
  20. }
  21. @end