NYExerciseTestingCentreViewModel.m 989 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // NYExerciseTestingCentreViewModel.m
  3. // jiaPei
  4. //
  5. // Created by Ning.ge on 2023/8/22.
  6. // Copyright © 2023 JCZ. All rights reserved.
  7. //
  8. #import "NYExerciseTestingCentreViewModel.h"
  9. @implementation NYExerciseTestingCentreGroupViewModel
  10. /// init
  11. - (instancetype)init {
  12. if (self = [super init]) {
  13. self.headerHeight = RQ_FIT_HORIZONTAL(50.f);
  14. }
  15. return self;
  16. }
  17. @end
  18. @interface NYExerciseTestingCentreItemViewModel ()
  19. @property (nonatomic, readwrite, strong) RQYDTJSModel *ydtJSModel;
  20. @end
  21. @implementation NYExerciseTestingCentreItemViewModel
  22. - (instancetype)initWithRQYDTJSModel:(RQYDTJSModel *)ydtJSModel {
  23. if (self = [super init]) {
  24. @weakify(self)
  25. dispatch_async(dispatch_get_main_queue(), ^{
  26. @strongify(self)
  27. self.ydtJSModel = ydtJSModel;
  28. self.rowHeight = RQ_FIT_HORIZONTAL(173.f) + 16.f;
  29. });
  30. }
  31. return self;
  32. }
  33. - (NSString *)itemClassName {
  34. return @"NYTestingCentreCell";
  35. }
  36. @end