12345678910111213141516171819202122232425262728293031323334 |
- //
- // RQVipAllPriceItemViewModel.m
- // jiaPei
- //
- // Created by 张嵘 on 2022/3/1.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import "RQVipAllPriceItemViewModel.h"
- @interface RQVipAllPriceItemViewModel ()
- @property (nonatomic, readwrite, strong) RQTypeModel *typeModel;
- @property (nonatomic, readwrite, assign) BOOL isSelect;
- @end
- @implementation RQVipAllPriceItemViewModel
- - (instancetype)initWithRQTypeModel:(RQTypeModel *)typeModel chooseTypeModel:(RQTypeModel *)chooseTypeModel{
- if (self = [super init]) {
- self.typeModel = typeModel;
- CGFloat RQVipAllPriceCellWidth = RQ_SCREEN_WIDTH;
- CGFloat RQVipAllPriceCellHeight = RQ_FIT_HORIZONTAL(179.f);
- self.isSelect = [typeModel.dictLabel isEqualToString:chooseTypeModel.dictLabel];
- self.itemSize = CGSizeMake(RQVipAllPriceCellWidth, RQVipAllPriceCellHeight);
- self.operation = ^{
- RQ_VIP_Module.chooseTypeModel = typeModel;
- };
- }
- return self;
- }
- - (NSString *)itemClassName {
- return @"RQVipAllPriceCell";
- }
- @end
|