RQVipAuthoritySmallItemViewModel.m 812 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RQVipAuthoritySmallItemViewModel.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/3/1.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQVipAuthoritySmallItemViewModel.h"
  9. @interface RQVipAuthoritySmallItemViewModel ()
  10. @property (nonatomic, readwrite, strong) RQTypeModel *typeModel;
  11. @end
  12. @implementation RQVipAuthoritySmallItemViewModel
  13. - (instancetype)initWithRQTypeModel:(RQTypeModel *)typeModel{
  14. if (self = [super init]) {
  15. self.typeModel = typeModel;
  16. CGFloat RQVipAuthorityCellWidth = RQ_SCREEN_WIDTH - (2 * 16);
  17. CGFloat RQVipAuthorityCellHeight = RQ_FIT_HORIZONTAL(60.f);
  18. self.itemSize = CGSizeMake(RQVipAuthorityCellWidth, RQVipAuthorityCellHeight);
  19. }
  20. return self;
  21. }
  22. - (NSString *)itemClassName {
  23. return @"RQVipAuthoritySmallCell";
  24. }
  25. @end