// // RQVipProblemCell.m // jiaPei // // Created by 张嵘 on 2022/9/19. // Copyright © 2022 JCZ. All rights reserved. // #import "RQVipProblemCell.h" @interface RQVipProblemCell () @property (nonatomic, readwrite, strong) RQVipProblemItemViewModel *viewModel; @end @implementation RQVipProblemCell #pragma mark - PublicMethods + (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath { static NSString *ID = @"RQVipProblemCell"; [collectionView registerNib:[UINib nibWithNibName:ID bundle:nil] forCellWithReuseIdentifier:ID]; RQVipProblemCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath]; if (!cell) cell = [self rq_viewFromXib]; [cell borderColor:RQColorFromHexString(@"#E0B279") width:1 cornorRadius:5]; return cell; } - (void)bindViewModel:(RQVipProblemItemViewModel *)viewModel { // @weakify(self) _viewModel = viewModel; } - (void)setIndexPath:(NSIndexPath *)indexPath rowsInSection:(NSInteger)rows { self.backgroundColor = RQColorFromHexString(@"#252531"); } #pragma mark - SystemMethods - (void)awakeFromNib { [super awakeFromNib]; } #pragma mark - PrivateMethods @end