|
@@ -278,9 +278,14 @@
|
|
|
for (int z= 0; z<textItem.quesItem.count; z++) {
|
|
|
NSString *item_str = textItem.quesItem[z];
|
|
|
UILabel *label = [self.itop_view viewWithTag:59+z+fitop_bicc];
|
|
|
+ label.numberOfLines = 0;
|
|
|
label.hidden = NO;
|
|
|
+ CGSize itemstr_size = [item_str rq_sizeWithFont:label.font limitWidth:cellView.content_label.width];
|
|
|
+ if(itemstr_size.height>ab_H){
|
|
|
+ ab_H = itemstr_size.height + 10.f;
|
|
|
+ }
|
|
|
label.attributedText = [self getAttributedString:item_str color:UIColorHex(0xFF6714)];
|
|
|
- label.frame = CGRectMake(10, fitop_yOffset, RQ_SCREEN_WIDTH-22*2, ab_H);
|
|
|
+ label.frame = CGRectMake(10, fitop_yOffset, RQ_SCREEN_WIDTH-22*2-10, ab_H);
|
|
|
fitop_yOffset += ab_H;
|
|
|
}
|
|
|
fitop_bicc += textItem.quesItem.count;
|
|
@@ -441,19 +446,54 @@
|
|
|
|
|
|
|
|
|
- (IBAction)submit_clickdo:(UIButton *)sender {
|
|
|
- NSString *questionIds = self.viewModel.dataModel.questionIds;
|
|
|
- NSArray *arr = [[RQ_YDTQuestion_Module getQuestionWithExerciseType:RQExerciseType_Error_Special_List questionIds:questionIds].rac_sequence.signal map:^id _Nullable(RQYDTQuestionModel *ydtQuestionModel) {
|
|
|
- return [RQExerciseModel exerciseModelWithRQYDTQuestionModel:ydtQuestionModel];
|
|
|
- }].toArray;
|
|
|
- RQExerciseViewModel *exerciseViewModel = [[RQExerciseViewModel alloc] initWithServices:RQ_APPDELEGATE.services params:@{
|
|
|
- RQHomePageCarTypeKey : @(RQ_YDTQuestion_Module.carType),
|
|
|
- RQHomePageSubjectTypeKey : @(RQ_YDTQuestion_Module.subject),
|
|
|
- RQHomeSubPageTypeKey : @(RQHomeSubPageType_SequentialPractice),
|
|
|
- RQViewModelIDKey : @"标题",
|
|
|
- RQExerciseTypeKey : @(RQExerciseType_Error_Special_List),
|
|
|
- RQViewModelUtilKey : arr,
|
|
|
- }];
|
|
|
- [RQ_APPDELEGATE.services pushViewModel:exerciseViewModel animated:YES];
|
|
|
+ if([@"考点1" isEqualToString:self.viewModel.itemPointTitle]){
|
|
|
+ NSString *questionIds = self.viewModel.dataModel.questionIds;
|
|
|
+ NSArray *arr = [[RQ_YDTQuestion_Module getQuestionWithExerciseType:RQExerciseType_Error_Special_List questionIds:questionIds].rac_sequence.signal map:^id _Nullable(RQYDTQuestionModel *ydtQuestionModel) {
|
|
|
+ return [RQExerciseModel exerciseModelWithRQYDTQuestionModel:ydtQuestionModel];
|
|
|
+ }].toArray;
|
|
|
+ RQExerciseViewModel *exerciseViewModel = [[RQExerciseViewModel alloc] initWithServices:RQ_APPDELEGATE.services params:@{
|
|
|
+ RQHomePageCarTypeKey : @(RQ_YDTQuestion_Module.carType),
|
|
|
+ RQHomePageSubjectTypeKey : @(RQ_YDTQuestion_Module.subject),
|
|
|
+ RQHomeSubPageTypeKey : @(RQHomeSubPageType_SequentialPractice),
|
|
|
+ RQViewModelIDKey : @"标题",
|
|
|
+ RQExerciseTypeKey : @(RQExerciseType_Error_Special_List),
|
|
|
+ RQViewModelUtilKey : arr,
|
|
|
+ }];
|
|
|
+ [RQ_APPDELEGATE.services pushViewModel:exerciseViewModel animated:YES];
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (RQ_VIP_Module.isSubject1Vip && RQ_YDTQuestion_Module.subject == RQHomePageSubjectType_SubjectOne) {//判断是否 科一vip
|
|
|
+ NSString *questionIds = self.viewModel.dataModel.questionIds;
|
|
|
+ NSArray *arr = [[RQ_YDTQuestion_Module getQuestionWithExerciseType:RQExerciseType_Error_Special_List questionIds:questionIds].rac_sequence.signal map:^id _Nullable(RQYDTQuestionModel *ydtQuestionModel) {
|
|
|
+ return [RQExerciseModel exerciseModelWithRQYDTQuestionModel:ydtQuestionModel];
|
|
|
+ }].toArray;
|
|
|
+ RQExerciseViewModel *exerciseViewModel = [[RQExerciseViewModel alloc] initWithServices:RQ_APPDELEGATE.services params:@{
|
|
|
+ RQHomePageCarTypeKey : @(RQ_YDTQuestion_Module.carType),
|
|
|
+ RQHomePageSubjectTypeKey : @(RQ_YDTQuestion_Module.subject),
|
|
|
+ RQHomeSubPageTypeKey : @(RQHomeSubPageType_SequentialPractice),
|
|
|
+ RQViewModelIDKey : @"标题",
|
|
|
+ RQExerciseTypeKey : @(RQExerciseType_Error_Special_List),
|
|
|
+ RQViewModelUtilKey : arr,
|
|
|
+ }];
|
|
|
+ [RQ_APPDELEGATE.services pushViewModel:exerciseViewModel animated:YES];
|
|
|
+ }else{
|
|
|
+ //充值
|
|
|
+ [RQ_VIP_Module gotoBuyVipWithVipPageType:RQVIPPageType_Full];
|
|
|
+ }
|
|
|
+
|
|
|
+// NSString *questionIds = self.viewModel.dataModel.questionIds;
|
|
|
+// NSArray *arr = [[RQ_YDTQuestion_Module getQuestionWithExerciseType:RQExerciseType_Error_Special_List questionIds:questionIds].rac_sequence.signal map:^id _Nullable(RQYDTQuestionModel *ydtQuestionModel) {
|
|
|
+// return [RQExerciseModel exerciseModelWithRQYDTQuestionModel:ydtQuestionModel];
|
|
|
+// }].toArray;
|
|
|
+// RQExerciseViewModel *exerciseViewModel = [[RQExerciseViewModel alloc] initWithServices:RQ_APPDELEGATE.services params:@{
|
|
|
+// RQHomePageCarTypeKey : @(RQ_YDTQuestion_Module.carType),
|
|
|
+// RQHomePageSubjectTypeKey : @(RQ_YDTQuestion_Module.subject),
|
|
|
+// RQHomeSubPageTypeKey : @(RQHomeSubPageType_SequentialPractice),
|
|
|
+// RQViewModelIDKey : @"标题",
|
|
|
+// RQExerciseTypeKey : @(RQExerciseType_Error_Special_List),
|
|
|
+// RQViewModelUtilKey : arr,
|
|
|
+// }];
|
|
|
+// [RQ_APPDELEGATE.services pushViewModel:exerciseViewModel animated:YES];
|
|
|
|
|
|
}
|
|
|
|