NYLIVipContentItem03ViewModel.m 810 B

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