// // RQVipAllFunctionCell.m // jiaPei // // Created by 张嵘 on 2022/3/1. // Copyright © 2022 JCZ. All rights reserved. // #import "RQVipAllFunctionCell.h" @interface RQVipAllFunctionCell () @property (nonatomic, readwrite, strong) RQVipAllFunctionItemViewModel *viewModel; @end @implementation RQVipAllFunctionCell #pragma mark - PublicMethods + (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath { static NSString *ID = @"RQVipAllFunctionCell"; [collectionView registerNib:[UINib nibWithNibName:ID bundle:nil] forCellWithReuseIdentifier:ID]; RQVipAllFunctionCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath]; if (!cell) cell = [self rq_viewFromXib]; return cell; } - (void)bindViewModel:(RQVipAllFunctionItemViewModel *)viewModel { // @weakify(self) _viewModel = viewModel; } #pragma mark - SystemMethods - (void)awakeFromNib { [super awakeFromNib]; } - (void)setSelected:(BOOL)selected { self.backgroundColor = RQColorFromHexString(@"#2C2D3C"); } #pragma mark - PrivateMethods @end