|
@@ -78,11 +78,7 @@
|
|
|
UserDefaultSetBoolForKey(YES, @"examTipsTop");
|
|
|
|
|
|
NSArray *tipsArray = @[@"考场开启后,才可已进行签到,签到后排考", @"展示为当前考场的排考信息"];
|
|
|
- CGRect rect1 = [self.bodyView convertRect:self.bodyView.signButton.frame toView:[UIApplication sharedApplication].keyWindow];
|
|
|
- rect1.origin.y += (kNaviBarHeight-5);
|
|
|
- rect1.origin.x -= 5;
|
|
|
- rect1.size.width += 10;
|
|
|
- rect1.size.height += 10;
|
|
|
+ CGRect rect1 = CGRectMake((kScreenWidth-140)/2.0f, kNaviBarHeight + 16, 140, 140);
|
|
|
UIBezierPath *pathOne = [UIBezierPath bezierPathWithOvalInRect:rect1];
|
|
|
CGRect rect2 = [self.bodyView convertRect:self.bodyView.examMessageView.frame toView:[UIApplication sharedApplication].keyWindow];
|
|
|
rect2.origin.y += kNaviBarHeight;
|
|
@@ -175,15 +171,15 @@
|
|
|
break;
|
|
|
case JOINROOMACTION_JOIN: // 加入房间
|
|
|
{
|
|
|
- if (self.sourceModel.recordFlag == 1) { // 去录播
|
|
|
+ if (self.sourceModel.classroomSwitch == 1) {
|
|
|
+ NSString *roomId = [NSString stringWithFormat:@"%.0f", source.examRegistrationId];
|
|
|
+ [self joinRoomAction:roomId];
|
|
|
+ }
|
|
|
+ else if (self.sourceModel.recordFlag == 1 && self.sourceModel.finishedExam == 4) { // 去录播
|
|
|
RecordExamViewController *ctrl = [[RecordExamViewController alloc] init];
|
|
|
ctrl.examRegistrationId = self.examRegistrationId;
|
|
|
[self.navigationController pushViewController:ctrl animated:YES];
|
|
|
}
|
|
|
- else {
|
|
|
- NSString *roomId = [NSString stringWithFormat:@"%.0f", source.examRegistrationId];
|
|
|
- [self joinRoomAction:roomId];
|
|
|
- }
|
|
|
}
|
|
|
break;
|
|
|
default:
|