123456789101112131415161718192021222324252627282930 |
- //
- // RQVipContentItemViewModel.m
- // jiaPei
- //
- // Created by 张嵘 on 2022/3/1.
- // Copyright © 2022 JCZ. All rights reserved.
- //
- #import "RQVipContentItemViewModel.h"
- @interface RQVipContentItemViewModel ()
- @property (nonatomic, readwrite, strong) RQTypeModel *typeModel;
- @property (nonatomic, readwrite, copy) NSString *contentStr;
- @end
- @implementation RQVipContentItemViewModel
- - (instancetype)initWithRQTypeModel:(RQTypeModel *)typeModel{
- if (self = [super init]) {
- self.typeModel = typeModel;
- CGFloat RQVipContentCellWidth = RQ_SCREEN_WIDTH - (2 * 16);
- CGFloat RQVipContentCellHeight = RQVipContentCellWidth * (559.f / 345.f);
- self.itemSize = CGSizeMake(RQVipContentCellWidth, RQVipContentCellHeight);
- }
- return self;
- }
- - (NSString *)itemClassName {
- return @"RQVipContentCell";
- }
- @end
|