12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // NYLIVipAuthorityNewItemViewModel.m
- // jiaPei
- //
- // Created by Ning.ge on 2025/2/6.
- // Copyright © 2025 JCZ. All rights reserved.
- //
- #import "NYLIVipAuthorityNewItemViewModel.h"
- @interface NYLIVipAuthorityNewItemViewModel ()
- @property (nonatomic, readwrite, strong) RQTypeModel *chooseTypeModel;
- @property (nonatomic, readwrite, strong) NSString *bgImageName;
- @property (nonatomic, readwrite, strong) NSString *authorityTitle;
- @property (nonatomic, readwrite, strong) NSString *authorityTitle01;
- @property (nonatomic, readwrite, strong) NSString *authorityTitle02;
- @end
- @implementation NYLIVipAuthorityNewItemViewModel
- - (instancetype)initWithChooseTypeModel:(RQTypeModel *)chooseTypeModel {
- if (self = [super init]) {
- self.chooseTypeModel = chooseTypeModel;
- CGFloat RQVipAuthorityCellWidth = RQ_SCREEN_WIDTH;
- CGFloat RQVipAuthorityCellHeight = RQVipAuthorityCellWidth * (145.f / 375.f) + 10;
- if ([chooseTypeModel.dictLabel containsString:@"科一特训包"]) {
- self.bgImageName = @"li_zu_kbg01";
- self.authorityTitle = @"尊享科一特训包权益";
- self.authorityTitle01 = @"精选 500题,覆盖高频考点";
- self.authorityTitle02 = @"尊分类讲解,深入解析易错题同款题库模拟,助你轻松过关";
- } else if ([chooseTypeModel.dictLabel containsString:@"科四特训包"]) {
- self.bgImageName = @"li_zu_kbg02";
- self.authorityTitle = @"尊享科四特训包权益";
- self.authorityTitle01 = @"精选 300题,直击考场重点";
- self.authorityTitle02 = @"分类讲解,掌握技巧与核心内容同款题库模拟,快速提升通过率";
- } else if ([chooseTypeModel.dictLabel containsString:@"科一科四特训包"]) {
- self.bgImageName = @"li_zu_kbg03";
- self.authorityTitle = @"尊享科一科四特训包权益";
- self.authorityTitle01 = @"包含科目一 500题和科目四300题";
- self.authorityTitle02 = @"分类精讲,强化记忆,双科高效速通同款题库配套,精准还原考试体验";
- }
- self.itemSize = CGSizeMake(RQVipAuthorityCellWidth, RQVipAuthorityCellHeight);
- }
- return self;
- }
- - (NSString *)itemClassName {
- return @"NYLIVipAuthorityNewCell";
- }
- @end
|