// // NYGetjobStartRuleCell.m // jiaPei // // Created by Ning.ge on 2023/6/9. // Copyright © 2023 JCZ. All rights reserved. // #import "NYGetjobStartRuleCell.h" @interface NYGetjobStartRuleCell () @property (nonatomic, readwrite, strong) NYGetjobStartRuleViewModel *viewModel; @end @implementation NYGetjobStartRuleCell #pragma mark - PublicMethods + (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath { static NSString *ID = @"NYGetjobStartRuleCell"; [collectionView registerNib:[UINib nibWithNibName:ID bundle:nil] forCellWithReuseIdentifier:ID]; NYGetjobStartRuleCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath]; if (!cell) cell = [self rq_viewFromXib]; cell.current_Button = cell.k1_button; cell.k1_button.selected = YES; return cell; } - (void)bindViewModel:(NYGetjobStartRuleViewModel *)viewModel { self.viewModel = viewModel; } #pragma mark - SystemMethods - (void)awakeFromNib { [super awakeFromNib]; self.contentView.backgroundColor = UIColor.clearColor; self.k1_button.imagePosition = QMUIButtonImagePositionTop; self.k1_button.spacingBetweenImageAndTitle = 8; self.k1_button.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter; self.k2_button.imagePosition = QMUIButtonImagePositionTop; self.k2_button.spacingBetweenImageAndTitle = 8; self.k2_button.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter; self.k3_button.imagePosition = QMUIButtonImagePositionTop; self.k3_button.spacingBetweenImageAndTitle = 8; self.k3_button.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter; self.k4_button.imagePosition = QMUIButtonImagePositionTop; self.k4_button.spacingBetweenImageAndTitle = 8; self.k4_button.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter; } - (IBAction)actionSubjectButton:(QMUIButton *)sender { NSLog(@"点击了"); self.current_Button.selected = NO; sender.selected = YES; self.current_Button = sender; // //弹窗-提示 // UIViewController *chooseFilterViewController = [[UIViewController alloc] init]; // // QMUIModalPresentationViewController *modalPresentationViewController = [[QMUIModalPresentationViewController alloc] init]; // modalPresentationViewController.contentViewController = chooseFilterViewController; // // modalPresentationViewController.willHideByDimmingViewTappedBlock = ^{ // // }; // [modalPresentationViewController showWithAnimated:YES completion:nil]; } @end