RQVipAuthorityItemViewModel.m 807 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // RQVipAuthorityItemViewModel.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/3/1.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQVipAuthorityItemViewModel.h"
  9. @interface RQVipAuthorityItemViewModel ()
  10. @property (nonatomic, readwrite, strong) RQTypeModel *typeModel;
  11. @end
  12. @implementation RQVipAuthorityItemViewModel
  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 = RQVipAuthorityCellWidth * (483.f / 345.f);
  18. self.itemSize = CGSizeMake(RQVipAuthorityCellWidth, RQVipAuthorityCellHeight);
  19. }
  20. return self;
  21. }
  22. - (NSString *)itemClassName {
  23. return @"RQVipAuthorityCell";
  24. }
  25. @end