重庆迈尖科技有限公司
2018-06-29 82ad101839771e904ebbe6e4b83e01281bc27e77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
//  WXUserModule.m
//  MIduo
//
//  Created by 重庆迈尖科技有限公司 on 2018/6/28.
//  Copyright © 2018年 yeshi. All rights reserved.
//
 
#import "WXUserModule.h"
 
@implementation WXUserModule
 
@synthesize weexInstance;
 
WX_EXPORT_METHOD_SYNC(@selector(getUserInfo))
WX_EXPORT_METHOD(@selector(login))
 
#pragma mark --- 获取用户信息 ---
- (NSString *)getUserInfo {
    
    NSString *str = @"测试信息";
    
    return str;
}
 
#pragma mark --- 跳转到登录界面 ---
- (void)login {
    
    LoginViewController *LoginVC = [[LoginViewController alloc] init];
    LoginVC.hidesBottomBarWhenPushed = YES;
    [weexInstance.viewController.navigationController pushViewController:LoginVC animated:YES];
}
 
 
@end