1234567891011121314151617181920212223242526272829 |
- //
- // RQPlaceDetaiIQuestionItemViewModel.m
- // JiaPei
- //
- // Created by 张嵘 on 2023/4/21.
- //
- #import "RQPlaceDetaiIQuestionItemViewModel.h"
- @implementation RQPlaceDetaiIQuestionItemViewModel
- - (instancetype)init {
- if (self = [super init]) {
- NSString *str1 = @"模拟真实考场拍摄,考试内容与实际考试一致,请放心观看。因考试线路存在多条,请确认好考场线路。";
- NSString *str2 = @"购买的考场路线视频有效期是一年。有效期内可以免费观看使用。 (有效期内考场路线更新、添加路线、减少路线等情况不收退任何费用)。";
- NSString *str3 = @"购买的考场路线视频有效期是两年。有效期内可以免费观看使用。 (有效期内考场路线更新、添加路线、减少路线等情况不收退任何费用)。";
- CGSize strSize1 = [str1 rq_sizeWithFont:RQMediumFont(17) limitWidth:RQ_SCREEN_WIDTH - 16.f - 36.f];
- CGSize strSize2 = [str2 rq_sizeWithFont:RQMediumFont(17) limitWidth:RQ_SCREEN_WIDTH - 16.f - 36.f];
- CGSize strSize3 = [str3 rq_sizeWithFont:RQMediumFont(17) limitWidth:RQ_SCREEN_WIDTH - 16.f - 36.f];
- CGFloat height = ((RQ_SCREEN_WIDTH - 32.f) * (40.f / 345.f)) + 16.f + 50.f + strSize1.height + 16.f + 50.f + strSize2.height + 16.f + 50.f + strSize3.height + 16.f + 16.f;
- self.rowHeight = height;
- }
- return self;
- }
- - (NSString *)itemClassName {
- return @"RQPlaceDetaiIQuestionCell";
- }
- @end
|