//
|
// 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
|