// // RQVipTrainPriceItemViewModel.m // jiaPei // // Created by 张嵘 on 2023/1/17. // Copyright © 2023 JCZ. All rights reserved. // #import "RQVipTrainPriceItemViewModel.h" @interface RQVipTrainPriceItemViewModel () @property (nonatomic, readwrite, strong) RQTypeModel *typeModel; @property (nonatomic, readwrite, assign) BOOL isSelect; @end @implementation RQVipTrainPriceItemViewModel - (instancetype)initWithRQTypeModel:(RQTypeModel *)typeModel chooseTypeModel:(RQTypeModel *)chooseTypeModel typeModels:(NSArray *)typeModels { if (self = [super init]) { self.typeModel = typeModel; self.isSelect = [typeModel.dictLabel isEqualToString:chooseTypeModel.dictLabel]; CGFloat RQVipSinglePriceCellWidth = RQ_SCREEN_WIDTH - 32; CGFloat RQVipSinglePriceCellHeight = RQ_FIT_HORIZONTAL(139.f); self.itemSize = CGSizeMake(RQVipSinglePriceCellWidth, RQVipSinglePriceCellHeight); self.operation = ^{ RQ_VIP_Module.chooseTypeModel = typeModel; }; } return self; } - (NSString *)itemClassName { return @"RQVipTrainPriceCell"; } @end