RQVipContentItemViewModel.m 846 B

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