// // 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)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