Commit 3d0fcb18a00825d974b5c4e8f7e5faefa0053a7b
1 parent
338beb9b
提交0.0.8
Showing
3 changed files
with
35 additions
and
15 deletions
CNLiveServiceCenterModule.podspec
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/Controller/CNLiveBServiceCenterController.m
| ... | ... | @@ -67,6 +67,26 @@ |
| 67 | 67 | return self; |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | +- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
| 71 | +{ | |
| 72 | + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
| 73 | + if (self) { | |
| 74 | + | |
| 75 | + } | |
| 76 | + return self; | |
| 77 | +} | |
| 78 | + | |
| 79 | +- (void)awakeFromNib { | |
| 80 | + [super awakeFromNib]; | |
| 81 | + | |
| 82 | + self.personStatus = @"0"; | |
| 83 | + self.institutionStatus = @"0"; | |
| 84 | + self.centerModel = [[CNLiveBServiceCenterModel alloc]init]; | |
| 85 | + self.centerModel.personStatus = self.personStatus; | |
| 86 | + self.centerModel.institutionStatus = self.institutionStatus; | |
| 87 | + | |
| 88 | +} | |
| 89 | + | |
| 70 | 90 | - (void)dealloc |
| 71 | 91 | { |
| 72 | 92 | |
| ... | ... | @@ -75,7 +95,8 @@ |
| 75 | 95 | - (void)viewWillAppear:(BOOL)animated { |
| 76 | 96 | [super viewWillAppear:animated]; |
| 77 | 97 | self.navigationController.navigationBarHidden = YES; |
| 78 | - // [self loadStatus]; | |
| 98 | + [self loadStatus]; | |
| 99 | + | |
| 79 | 100 | } |
| 80 | 101 | |
| 81 | 102 | - (void)viewDidLoad { |
| ... | ... | @@ -297,13 +318,13 @@ |
| 297 | 318 | /// 详情页 |
| 298 | 319 | id<CNLiveBMineServiceProtocol> organizationValidationProtocol = [[BeeHive shareInstance] createService:@protocol(CNLiveBMineServiceProtocol)]; |
| 299 | 320 | UIViewController *vc = [organizationValidationProtocol getUserInfoViewController]; |
| 300 | - [self setHidesBottomBarWhenPushed:YES]; | |
| 321 | + vc.hidesBottomBarWhenPushed = YES; | |
| 301 | 322 | [self.navigationController pushViewController:vc animated:YES]; |
| 302 | 323 | } |
| 303 | 324 | ///跳转创作者 |
| 304 | 325 | - (void)jumpCreaterVC { |
| 305 | 326 | CNLiveBCreatorViewController *vc = [[CNLiveBCreatorViewController alloc]init]; |
| 306 | - [self setHidesBottomBarWhenPushed:YES]; | |
| 327 | + vc.hidesBottomBarWhenPushed = YES; | |
| 307 | 328 | [self.navigationController pushViewController:vc animated:YES]; |
| 308 | 329 | } |
| 309 | 330 | |
| ... | ... | @@ -409,7 +430,7 @@ |
| 409 | 430 | /// 填表页 |
| 410 | 431 | id<CNLiveBPersonAuthentProtocol> personProtocol = [[BeeHive shareInstance] createService:@protocol(CNLiveBPersonAuthentProtocol)]; |
| 411 | 432 | UIViewController *vc = [personProtocol pushToPersonalCertificationStatusController:dicContent]; |
| 412 | - [self setHidesBottomBarWhenPushed:YES]; | |
| 433 | + vc.hidesBottomBarWhenPushed = YES; | |
| 413 | 434 | [self.navigationController pushViewController:vc animated:YES]; |
| 414 | 435 | |
| 415 | 436 | isEnter = YES; |
| ... | ... | @@ -418,7 +439,7 @@ |
| 418 | 439 | /// 填表页 |
| 419 | 440 | id<CNLiveBPersonAuthentProtocol> personProtocol = [[BeeHive shareInstance] createService:@protocol(CNLiveBPersonAuthentProtocol)]; |
| 420 | 441 | UIViewController *vc = [personProtocol pushToPersonalAuthenticationSuccessController:dicContent]; |
| 421 | - [self setHidesBottomBarWhenPushed:YES]; | |
| 442 | + vc.hidesBottomBarWhenPushed = YES; | |
| 422 | 443 | [self.navigationController pushViewController:vc animated:YES]; |
| 423 | 444 | |
| 424 | 445 | |
| ... | ... | @@ -426,7 +447,7 @@ |
| 426 | 447 | }else if ([ischeckStatusStr isEqualToString:@"2"]) {//审核中 |
| 427 | 448 | id<CNLiveBPersonAuthentProtocol> personProtocol = [[BeeHive shareInstance] createService:@protocol(CNLiveBPersonAuthentProtocol)]; |
| 428 | 449 | UIViewController *vc = [personProtocol pushToPersonalCertificationStatusController:dicContent]; |
| 429 | - [self setHidesBottomBarWhenPushed:YES]; | |
| 450 | + vc.hidesBottomBarWhenPushed = YES; | |
| 430 | 451 | [self.navigationController pushViewController:vc animated:YES]; |
| 431 | 452 | |
| 432 | 453 | |
| ... | ... | @@ -435,7 +456,7 @@ |
| 435 | 456 | }else if ([ischeckStatusStr isEqualToString:@"3"]) {//审核失败 |
| 436 | 457 | id<CNLiveBPersonAuthentProtocol> personProtocol = [[BeeHive shareInstance] createService:@protocol(CNLiveBPersonAuthentProtocol)]; |
| 437 | 458 | UIViewController *vc = [personProtocol pushToPersonalCertificationStatusController:dicContent]; |
| 438 | - [self setHidesBottomBarWhenPushed:YES]; | |
| 459 | + vc.hidesBottomBarWhenPushed = YES; | |
| 439 | 460 | [self.navigationController pushViewController:vc animated:YES]; |
| 440 | 461 | isEnter = YES; |
| 441 | 462 | } |
| ... | ... | @@ -505,7 +526,7 @@ |
| 505 | 526 | /// 填表页 |
| 506 | 527 | id<CNLiveBOrganizationValidationProtocol> organizationValidationProtocol = [[BeeHive shareInstance] createService:@protocol(CNLiveBOrganizationValidationProtocol)]; |
| 507 | 528 | UIViewController *vc = [organizationValidationProtocol getOrganizationValidationController:dicContent]; |
| 508 | - [self setHidesBottomBarWhenPushed:YES]; | |
| 529 | + vc.hidesBottomBarWhenPushed = YES; | |
| 509 | 530 | [self.navigationController pushViewController:vc animated:YES]; |
| 510 | 531 | |
| 511 | 532 | |
| ... | ... | @@ -515,7 +536,7 @@ |
| 515 | 536 | id<CNLiveBOrganizationValidationProtocol> organizationValidationProtocol = [[BeeHive shareInstance] createService:@protocol(CNLiveBOrganizationValidationProtocol)]; |
| 516 | 537 | UIViewController *vc = [organizationValidationProtocol getOrganizationDetailController:dicContent]; |
| 517 | 538 | |
| 518 | - [self setHidesBottomBarWhenPushed:YES]; | |
| 539 | + vc.hidesBottomBarWhenPushed = YES; | |
| 519 | 540 | [self.navigationController pushViewController:vc animated:YES]; |
| 520 | 541 | |
| 521 | 542 | |
| ... | ... | @@ -524,8 +545,7 @@ |
| 524 | 545 | /// 详情页 |
| 525 | 546 | id<CNLiveBOrganizationValidationProtocol> organizationValidationProtocol = [[BeeHive shareInstance] createService:@protocol(CNLiveBOrganizationValidationProtocol)]; |
| 526 | 547 | UIViewController *vc = [organizationValidationProtocol getOrganizationAuditController:dicContent]; |
| 527 | - | |
| 528 | - [self setHidesBottomBarWhenPushed:YES]; | |
| 548 | + vc.hidesBottomBarWhenPushed = YES; | |
| 529 | 549 | [self.navigationController pushViewController:vc animated:YES]; |
| 530 | 550 | isEnter = YES; |
| 531 | 551 | } | ... | ... |
Example/CNLiveServiceCenterModule/Base.lproj/Main.storyboard
| ... | ... | @@ -24,10 +24,11 @@ |
| 24 | 24 | </objects> |
| 25 | 25 | <point key="canvasLocation" x="-455" y="455"/> |
| 26 | 26 | </scene> |
| 27 | - <!--View Controller--> | |
| 27 | + <!--LiveB Service Center Controller--> | |
| 28 | 28 | <scene sceneID="wQg-tq-qST"> |
| 29 | 29 | <objects> |
| 30 | - <viewController id="whP-gf-Uak" customClass="CNLIVEBViewController" sceneMemberID="viewController"> | |
| 30 | + <placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
| 31 | + <viewController id="whP-gf-Uak" customClass="CNLiveBServiceCenterController" sceneMemberID="viewController"> | |
| 31 | 32 | <layoutGuides> |
| 32 | 33 | <viewControllerLayoutGuide type="top" id="uEw-UM-LJ8"/> |
| 33 | 34 | <viewControllerLayoutGuide type="bottom" id="Mvr-aV-6Um"/> |
| ... | ... | @@ -39,7 +40,6 @@ |
| 39 | 40 | </view> |
| 40 | 41 | <navigationItem key="navigationItem" id="WCl-Am-iNL"/> |
| 41 | 42 | </viewController> |
| 42 | - <placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/> | |
| 43 | 43 | </objects> |
| 44 | 44 | <point key="canvasLocation" x="305" y="433"/> |
| 45 | 45 | </scene> | ... | ... |