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