RQVipContentNew23ItemViewModel.m 863 B

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