|
@@ -247,7 +247,7 @@
|
|
[RQ_Exercise_Module rq_showSkillExplanationAlertWithMessage:exerciseModel.explain_jq skillkeyword:exerciseModel.skillkeyword explainGifUrl:exerciseModel.explain_gif mp3Url:exerciseModel.explain_mp3 completeBlock:nil];
|
|
[RQ_Exercise_Module rq_showSkillExplanationAlertWithMessage:exerciseModel.explain_jq skillkeyword:exerciseModel.skillkeyword explainGifUrl:exerciseModel.explain_gif mp3Url:exerciseModel.explain_mp3 completeBlock:nil];
|
|
}
|
|
}
|
|
RQWrongModel *wrongModel = [[RQWrongModel alloc] init];
|
|
RQWrongModel *wrongModel = [[RQWrongModel alloc] init];
|
|
- wrongModel.questionId = exerciseModel._id;
|
|
|
|
|
|
+ wrongModel.questionId = exerciseModel._id==0?exerciseModel.idYdt:exerciseModel._id;
|
|
wrongModel.km = RQ_COMMON_MANAGER.subjectStr;
|
|
wrongModel.km = RQ_COMMON_MANAGER.subjectStr;
|
|
wrongModel.createTime = [NSDate rq_currentTimeSSSInterval];
|
|
wrongModel.createTime = [NSDate rq_currentTimeSSSInterval];
|
|
wrongModel.userId = RQ_USER_MANAGER.currentUserId;
|
|
wrongModel.userId = RQ_USER_MANAGER.currentUserId;
|
|
@@ -515,6 +515,7 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
self.number += 1;
|
|
self.number += 1;
|
|
|
|
+ NSLog(@"$$$-下一页:%zd",self.number);
|
|
[self.coverVC setController:[self creatSubVC] animated:YES isAbove:NO];
|
|
[self.coverVC setController:[self creatSubVC] animated:YES isAbove:NO];
|
|
if (self.viewModel.exerciseType != RQExerciseType_Test && self.viewModel.exerciseType != RQExerciseType_Exam) {
|
|
if (self.viewModel.exerciseType != RQExerciseType_Test && self.viewModel.exerciseType != RQExerciseType_Exam) {
|
|
if (self.viewModel.homeSubEditListType == RQHomeSubEditListType_WrongTopic) {
|
|
if (self.viewModel.homeSubEditListType == RQHomeSubEditListType_WrongTopic) {
|
|
@@ -528,10 +529,12 @@
|
|
}
|
|
}
|
|
|
|
|
|
- (void)jumpLastQuestion{
|
|
- (void)jumpLastQuestion{
|
|
|
|
+
|
|
if (self.number == 0) {
|
|
if (self.number == 0) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
self.number -= 1;
|
|
self.number -= 1;
|
|
|
|
+ NSLog(@"$$$-上一页:%zd",self.number);
|
|
[self.coverVC setController:[self creatSubVC] animated:YES isAbove:YES];
|
|
[self.coverVC setController:[self creatSubVC] animated:YES isAbove:YES];
|
|
if (self.viewModel.exerciseType != RQExerciseType_Test && self.viewModel.exerciseType != RQExerciseType_Exam) {
|
|
if (self.viewModel.exerciseType != RQExerciseType_Test && self.viewModel.exerciseType != RQExerciseType_Exam) {
|
|
if (self.viewModel.homeSubEditListType == RQHomeSubEditListType_WrongTopic) {
|
|
if (self.viewModel.homeSubEditListType == RQHomeSubEditListType_WrongTopic) {
|
|
@@ -678,11 +681,20 @@
|
|
|
|
|
|
[_exerciseToolBarView.lastQuestionView setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
[_exerciseToolBarView.lastQuestionView setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
@strongify(self)
|
|
@strongify(self)
|
|
|
|
+ _exerciseToolBarView.lastQuestionView.userInteractionEnabled = NO;
|
|
[self jumpLastQuestion];
|
|
[self jumpLastQuestion];
|
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(.6f *NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
|
+ _exerciseToolBarView.lastQuestionView.userInteractionEnabled = YES;
|
|
|
|
+ });
|
|
|
|
+
|
|
}];
|
|
}];
|
|
[_exerciseToolBarView.nextQuestionView setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
[_exerciseToolBarView.nextQuestionView setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
@strongify(self)
|
|
@strongify(self)
|
|
|
|
+ _exerciseToolBarView.nextQuestionView.userInteractionEnabled = NO;
|
|
[self jumpNextQuestion];
|
|
[self jumpNextQuestion];
|
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(.6f *NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
|
+ _exerciseToolBarView.nextQuestionView.userInteractionEnabled = YES;
|
|
|
|
+ });
|
|
}];
|
|
}];
|
|
[_exerciseToolBarView.totalNumberOfQuestionsView setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
[_exerciseToolBarView.totalNumberOfQuestionsView setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
@strongify(self)
|
|
@strongify(self)
|
|
@@ -820,12 +832,20 @@
|
|
|
|
|
|
[_handInThePaperView.lastQuestionBtn setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
[_handInThePaperView.lastQuestionBtn setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
@strongify(self)
|
|
@strongify(self)
|
|
|
|
+ _handInThePaperView.lastQuestionBtn.enabled = NO;
|
|
[self jumpLastQuestion];
|
|
[self jumpLastQuestion];
|
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(.6f *NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
|
+ _handInThePaperView.lastQuestionBtn.enabled = YES;
|
|
|
|
+ });
|
|
}];
|
|
}];
|
|
|
|
|
|
[_handInThePaperView.nextQuestionBtn setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
[_handInThePaperView.nextQuestionBtn setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
@strongify(self)
|
|
@strongify(self)
|
|
|
|
+ _handInThePaperView.nextQuestionBtn.enabled = NO;
|
|
[self jumpNextQuestion];
|
|
[self jumpNextQuestion];
|
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(.6f *NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
|
+ _handInThePaperView.nextQuestionBtn.enabled = YES;
|
|
|
|
+ });
|
|
}];
|
|
}];
|
|
|
|
|
|
[_handInThePaperView.totalNumberOfQuestionsBtn setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|
|
[_handInThePaperView.totalNumberOfQuestionsBtn setTapActionWithBlock:^(UITapGestureRecognizer *tap) {
|