123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // RQPayViewModel.m
- // jiaPei
- //
- // Created by 张嵘 on 2022/6/7.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import "RQPayViewModel.h"
- @interface RQPayViewModel ()
- @property (nonatomic, readwrite, strong) RQTypeModel *typeModel;
- @end
- @implementation RQPayViewModel
- #pragma mark - Public Method
- - (instancetype)initWithServices:(id<RQViewModelServices>)services params:(NSDictionary *)params {
- if (self = [super initWithServices:services params:params]) {
- self.typeModel = params[RQViewModelUtilKey];
- }
- return self;
- }
- - (void)initialize {
- [super initialize];
-
- ///配置数据
- [self rq_configureData];
- }
- #pragma mark - PrivateMethod
- - (void)rq_configureData {
- // RQPayPriceHeaderGroupViewModel *group = [[RQPayPriceHeaderGroupViewModel alloc] initWithRQTypeModel:self.typeModel];
- //
- // RQPayTypeItemViewModel *payTypeItemViewModel = [[RQPayTypeItemViewModel alloc] init];
- // group.itemViewModels = @[payTypeItemViewModel];
- //
- // self.dataSource = @[group];
- }
- @end
|