97 lines
2.6 KiB
Objective-C
97 lines
2.6 KiB
Objective-C
//
|
|
// ShopCertifySucssesViewController.m
|
|
// Ifish
|
|
//
|
|
// Created by imac on 16/8/19.
|
|
// Copyright © 2016年 lianxiang. All rights reserved.
|
|
//
|
|
|
|
#import "ShopCertifySucssesViewController.h"
|
|
//#import "WorkbechViewController.h"
|
|
#import "IfishKanHuGuanLiViewController.h"
|
|
#import "UINavigationBar+Background.h"
|
|
@interface ShopCertifySucssesViewController ()
|
|
|
|
@end
|
|
|
|
@implementation ShopCertifySucssesViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view.
|
|
|
|
self.statusImg.image = [UIImage imageNamed:@"shop_certifysuccess"];
|
|
self.statysLabel.text = @"恭喜您的店铺已通过认证";
|
|
[self.statuesViewBtn setTitle:@"前往看护工作台" forState:UIControlStateNormal];
|
|
|
|
[self.statuesViewBtn addTarget:self action:@selector(qianWangKanHuWork) forControlEvents:UIControlEventTouchUpInside];
|
|
//4.4后认证成功后 隐藏前往工作台
|
|
self.statuesViewBtn.hidden = YES;
|
|
|
|
}
|
|
|
|
//前往看护工作台
|
|
|
|
-(void)qianWangKanHuWork{
|
|
CertificationShopModel *ShopsInfo= [[DataCenter defaultDtacenter] valueForKey:@"ShopsInfo"];
|
|
|
|
|
|
if (ShopsInfo) {
|
|
|
|
if ([ShopsInfo.status isEqualToString:@"3"]) {
|
|
|
|
[self.view makeToast:@"此商户已被禁用"];
|
|
return;
|
|
}
|
|
|
|
}
|
|
|
|
IfishKanHuGuanLiViewController *WorkVC=[[IfishKanHuGuanLiViewController alloc] init];
|
|
WorkVC.shopsInfo = ShopsInfo;
|
|
|
|
UserModel *userModel=[[DataCenter defaultDtacenter] valueForKey:@"UserLogIn"];
|
|
userModel.userType = @"1";
|
|
[[DataCenter defaultDtacenter]setValue:userModel forKey:@"UserLogIn"];
|
|
|
|
|
|
self.hidesBottomBarWhenPushed = YES;
|
|
[self.navigationController pushViewController:WorkVC animated:YES];
|
|
|
|
|
|
}
|
|
|
|
//重写父类方法可不做处理 不写会掉用父类方法 push 到认证界面
|
|
|
|
-(void)renZhengShibai{
|
|
|
|
|
|
}
|
|
|
|
-(void)viewDidAppear:(BOOL)animated{
|
|
[super viewDidAppear:animated];
|
|
|
|
}
|
|
|
|
-(void)viewWillAppear:(BOOL)animated{
|
|
[super viewWillAppear:animated];
|
|
[self.navigationController.navigationBar setWhiteNav];
|
|
|
|
}
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
[super didReceiveMemoryWarning];
|
|
// Dispose of any resources that can be recreated.
|
|
}
|
|
|
|
/*
|
|
#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
|