微信登陆,bug修改
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
#define TUICHUAlertTAg 4100
|
||||
#import "IfishUserDefaultHelper.h"
|
||||
#import "SettingResetViewController.h"
|
||||
|
||||
#import "RegistViewController.h"
|
||||
@interface IfishSetViewController ()<UITableViewDelegate,UITableViewDataSource,UIAlertViewDelegate>
|
||||
|
||||
@property(nonatomic,strong)UITableView *tableView;
|
||||
@@ -34,9 +34,23 @@ extern BOOL firstLogIn;
|
||||
}
|
||||
|
||||
-(void)loadData{
|
||||
self.titles=@[@[@"更换手机",@"修改密码",@"恢复出厂模式"],@[@"切换账号"]];
|
||||
self.imgs = @[@[@"personal_iocn_replace",@"replace_iocn_code",@"setting-reset"],@[@"personal_iocn_switch"]];
|
||||
|
||||
|
||||
self.titles=@[@[@"更换手机",@"修改密码",@"恢复出厂模式"],@[@"切换账号",@"绑定手机"]];
|
||||
self.imgs = @[@[@"personal_iocn_replace",@"replace_iocn_code",@"setting-reset"],@[@"personal_iocn_switch",@"renyuan"]];
|
||||
UserModel*model=[dataContorl getUserInfo];
|
||||
if ([CommonUtils getNotNilStr:model.phoneNumber].length)
|
||||
{
|
||||
self.titles=@[@[@"更换手机",@"修改密码",@"恢复出厂模式"],@[@"切换账号"]];
|
||||
self.imgs = @[@[@"personal_iocn_replace",@"replace_iocn_code",@"setting-reset"],@[@"personal_iocn_switch"]];
|
||||
}
|
||||
|
||||
}
|
||||
-(void)viewWillAppear:(BOOL)animated
|
||||
{
|
||||
[super viewWillAppear:animated];
|
||||
[self loadData];
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
-(void)creatTab{
|
||||
|
||||
@@ -130,6 +144,15 @@ extern BOOL firstLogIn;
|
||||
[alert show];
|
||||
|
||||
}
|
||||
else if (indexPath.section==1&&indexPath.row==1){
|
||||
|
||||
RegistViewController*revc=[[RegistViewController alloc]init];
|
||||
revc.hidesBottomBarWhenPushed=YES;
|
||||
revc.isBind=YES;
|
||||
[self.navigationController pushViewController:revc animated:YES];
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user