//
//  MineTableViewController.m
//  RealEstateManagement
//
//  Created by Z on 16/6/24.
//  Copyright © 2016年 上海勾芒信息科技. All rights reserved.
//

#import "MineTableViewController.h"
#import "LoginViewModel.h"
@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;
@property (strong, nonatomic) LoginViewModel *viewModel;
@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 {
    [self.viewModel openLogin];
}

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

ZJLazy(LoginViewModel, viewModel);
@end
