94 lines
2.5 KiB
Objective-C
94 lines
2.5 KiB
Objective-C
//
|
|
// ShopCertifyFailViewController.m
|
|
// Ifish
|
|
//
|
|
// Created by imac on 16/8/18.
|
|
// Copyright © 2016年 lianxiang. All rights reserved.
|
|
//
|
|
|
|
#import "ShopCertifyFailViewController.h"
|
|
//#import "ShopCertificationViewController.h"
|
|
#import "UINavigationBar+Background.h"
|
|
#import "WoShiShangJiaViewController.h"
|
|
#import "IfishShopCerNewViewController.h"
|
|
@interface ShopCertifyFailViewController ()
|
|
|
|
@end
|
|
extern BOOL isFromRootVC;
|
|
@implementation ShopCertifyFailViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view from its nib.
|
|
|
|
//self.title = @"认证";
|
|
[self addTitleViewWithTitle:@"认证"];
|
|
[self.statuesViewBtn addTarget:self action:@selector(renZhengShibai) forControlEvents:UIControlEventTouchUpInside];
|
|
self.statuesViewBtn.layer.masksToBounds = YES;
|
|
self.statuesViewBtn.layer.cornerRadius = 5;
|
|
self.statuesViewBtn.layer.borderWidth = 1.0;
|
|
self.statuesViewBtn.layer.borderColor = [UIColor colorWithRed:146/255.0f green:146/255.0f blue:146/255.0f alpha:1].CGColor;
|
|
|
|
self.statysLabel.text = self.statusModel.reason;
|
|
|
|
|
|
|
|
}
|
|
//认证失败
|
|
|
|
-(void)renZhengShibai{
|
|
|
|
IfishShopCerNewViewController *certificationView = [[IfishShopCerNewViewController alloc] init];
|
|
certificationView.statusM = self.statusModel;
|
|
|
|
self.hidesBottomBarWhenPushed = YES;
|
|
|
|
[self.navigationController pushViewController:certificationView animated:YES];
|
|
|
|
|
|
}
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
[super didReceiveMemoryWarning];
|
|
// Dispose of any resources that can be recreated.
|
|
}
|
|
|
|
|
|
-(void)viewWillAppear:(BOOL)animated{
|
|
[super viewWillAppear:animated];
|
|
[self.navigationController.navigationBar setWhiteNav];
|
|
|
|
|
|
}
|
|
|
|
-(void)viewWillDisappear:(BOOL)animated{
|
|
|
|
[super viewWillDisappear:animated];
|
|
|
|
|
|
|
|
}
|
|
|
|
-(void)goBackAction{
|
|
//
|
|
|
|
if (isFromRootVC) {
|
|
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
|
|
return;
|
|
}
|
|
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:2] animated:YES];
|
|
}
|
|
|
|
/*
|
|
#pragma mark - Navigation
|
|
|
|
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
|
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
|
|
// Get the new view controller using [segue destinationViewController].
|
|
// Pass the selected object to the new view controller.
|
|
}
|
|
*/
|
|
|
|
|
|
@end
|