12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- //
- // NYLiVipContentNewCell03.m
- // jiaPei
- //
- // Created by Ning.ge on 2025/2/15.
- // Copyright © 2025 JCZ. All rights reserved.
- //
- #import "NYLiVipContentNewCell03.h"
- @interface NYLiVipContentNewCell03 ()
- @property (nonatomic, readwrite, strong) NYLIVipContentItem03ViewModel *viewModel;
- @property (weak, nonatomic) IBOutlet UILabel *title_label;
- @property (weak, nonatomic) IBOutlet UILabel *title01_label;
- @property (weak, nonatomic) IBOutlet UILabel *title02_label;
- @end
- @implementation NYLiVipContentNewCell03
- #pragma mark - PublicMethods
- + (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath {
- static NSString *ID = @"NYLiVipContentNewCell03";
- [collectionView registerNib:[UINib nibWithNibName:ID bundle:nil] forCellWithReuseIdentifier:ID];
- NYLiVipContentNewCell03 *cell = [collectionView dequeueReusableCellWithReuseIdentifier:ID forIndexPath:indexPath];
- if (!cell) cell = [self rq_viewFromXib];
- return cell;
- }
- - (void)bindViewModel:(NYLIVipContentItem03ViewModel *)viewModel {
- // @weakify(self)
- _viewModel = viewModel;
- if(viewModel.homePageSubjectType == RQHomePageSubjectType_SubjectOne_LI-1){
- self.title_label.text = @"尊享科一特训包权益";
- self.title01_label.text = @"精选 500题,覆盖高频考点";
- self.title02_label.text = @"分类讲解,深入解析易错题同款题库模拟,助你轻松过关";
- }else if (viewModel.homePageSubjectType == RQHomePageSubjectType_SubjectFour_LI-1){
- self.title_label.text = @"尊享科四特训包权益";
- self.title01_label.text = @"精选 300题,直击考场重点";
- self.title02_label.text = @"分类讲解,掌握技巧与核心内容同款题库模拟,快速提升通过率";
- }
-
- }
- - (void)setIndexPath:(NSIndexPath *)indexPath rowsInSection:(NSInteger)rows {
- // self.backgroundColor = RQColorFromHexString(@"#252531");
- }
- #pragma mark - SystemMethods
- - (void)awakeFromNib {
- [super awakeFromNib];
-
- }
- @end
|