MineTableViewController.m 1.47 KB
Newer Older
Sandy's avatar
Sandy committed
1 2 3 4 5 6 7 8 9
//
//  MineTableViewController.m
//  RealEstateManagement
//
//  Created by Z on 16/6/24.
//  Copyright © 2016年 上海勾芒信息科技. All rights reserved.
//

#import "MineTableViewController.h"
10
#import "LoginViewModel.h"
Sandy's avatar
Sandy committed
11 12 13 14 15
@interface MineTableViewController () <UITableViewDataSource, UITableViewDelegate>
@property (weak, nonatomic) IBOutlet UIImageView *imgViewTopIcon;
@property (weak, nonatomic) IBOutlet UILabel *userName;
@property (weak, nonatomic) IBOutlet UILabel *userCode;
@property (weak, nonatomic) IBOutlet UILabel *tenant;
16
@property (strong, nonatomic) LoginViewModel *viewModel;
Sandy's avatar
Sandy committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
@end

@implementation MineTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    self.imgViewTopIcon.image = APP_ICON;
    
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    //    self.navigationController.navigationBar.barTintColor = kMainBlueColor;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
//    if (indexPath.row == 2) {
//        [[HTTPCilent shareCilent] checkUpdateOnVC:self completeIsLatest:^{
//            [MBProgressHUD j_textOnly:@"当前已经是最新版本"];
//        }];
//    }
}

- (IBAction)loginOut:(id)sender {
41
    [self.viewModel openLogin];
Sandy's avatar
Sandy committed
42 43 44 45 46 47 48
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

49
ZJLazy(LoginViewModel, viewModel);
Sandy's avatar
Sandy committed
50
@end