RQPayViewModel.m 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // RQPayViewModel.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/6/7.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQPayViewModel.h"
  9. @interface RQPayViewModel ()
  10. @property (nonatomic, readwrite, strong) RQTypeModel *typeModel;
  11. @end
  12. @implementation RQPayViewModel
  13. #pragma mark - Public Method
  14. - (instancetype)initWithServices:(id<RQViewModelServices>)services params:(NSDictionary *)params {
  15. if (self = [super initWithServices:services params:params]) {
  16. self.typeModel = params[RQViewModelUtilKey];
  17. }
  18. return self;
  19. }
  20. - (void)initialize {
  21. [super initialize];
  22. ///配置数据
  23. [self rq_configureData];
  24. }
  25. #pragma mark - PrivateMethod
  26. - (void)rq_configureData {
  27. // RQPayPriceHeaderGroupViewModel *group = [[RQPayPriceHeaderGroupViewModel alloc] initWithRQTypeModel:self.typeModel];
  28. //
  29. // RQPayTypeItemViewModel *payTypeItemViewModel = [[RQPayTypeItemViewModel alloc] init];
  30. // group.itemViewModels = @[payTypeItemViewModel];
  31. //
  32. // self.dataSource = @[group];
  33. }
  34. @end