NYLiVipContentNewCell03.m 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // NYLiVipContentNewCell03.m
  3. // jiaPei
  4. //
  5. // Created by Ning.ge on 2025/2/15.
  6. // Copyright © 2025 JCZ. All rights reserved.
  7. //
  8. #import "NYLiVipContentNewCell03.h"
  9. @interface NYLiVipContentNewCell03 ()
  10. @property (nonatomic, readwrite, strong) NYLIVipContentItem03ViewModel *viewModel;
  11. @property (weak, nonatomic) IBOutlet UILabel *title_label;
  12. @property (weak, nonatomic) IBOutlet UILabel *title01_label;
  13. @property (weak, nonatomic) IBOutlet UILabel *title02_label;
  14. @end
  15. @implementation NYLiVipContentNewCell03
  16. #pragma mark - PublicMethods
  17. + (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath {
  18. static NSString *ID = @"NYLiVipContentNewCell03";
  19. [collectionView registerNib:[UINib nibWithNibName:ID bundle:nil] forCellWithReuseIdentifier:ID];
  20. NYLiVipContentNewCell03 *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath];
  21. if (!cell) cell = [self rq_viewFromXib];
  22. return cell;
  23. }
  24. - (void)bindViewModel:(NYLIVipContentItem03ViewModel *)viewModel {
  25. // @weakify(self)
  26. _viewModel = viewModel;
  27. if(viewModel.homePageSubjectType == RQHomePageSubjectType_SubjectOne_LI-1){
  28. self.title_label.text = @"尊享科一特训包权益";
  29. self.title01_label.text = @"精选 500题,覆盖高频考点";
  30. self.title02_label.text = @"分类讲解,深入解析易错题同款题库模拟,助你轻松过关";
  31. }else if (viewModel.homePageSubjectType == RQHomePageSubjectType_SubjectFour_LI-1){
  32. self.title_label.text = @"尊享科四特训包权益";
  33. self.title01_label.text = @"精选 300题,直击考场重点";
  34. self.title02_label.text = @"分类讲解,掌握技巧与核心内容同款题库模拟,快速提升通过率";
  35. }
  36. }
  37. - (void)setIndexPath:(NSIndexPath *)indexPath rowsInSection:(NSInteger)rows {
  38. // self.backgroundColor = RQColorFromHexString(@"#252531");
  39. }
  40. #pragma mark - SystemMethods
  41. - (void)awakeFromNib {
  42. [super awakeFromNib];
  43. }
  44. @end