RQVipContentNewItemViewModel.m 852 B

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