123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- //
- // JZForgetPwdViewController.m
- // JIZHANG
- //
- // Created by jikaipeng on 2017/10/30.
- // Copyright © 2017年 kuxuan. All rights reserved.
- //
- #import "JZForgetPwdViewController.h"
- #import "JZForgetCfmViewController.h"
- #import "JZNavTopview.h"
- @interface JZForgetPwdViewController ()<UITextFieldDelegate>
- @property (nonatomic, strong) JZNavTopview *topview;
- @property (nonatomic, strong) UITextField *phoneField;
- @property (nonatomic, strong) UIButton *nextBtn;
- @end
- @implementation JZForgetPwdViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view.
- [self setNav];
- [self initUI];
- }
- #pragma mark - event handle
- - (void)setNav{
- self.topview = [[JZNavTopview alloc]initWithTitle:@"找回密码"];
- WS(weakSelf);
- self.topview.dismissAction = ^{
- [weakSelf dismissViewControllerAnimated:YES completion:nil];
- };
- [self.view addSubview:self.topview];
- }
- - (void)initUI{
- UILabel *phoneLabel = [[UILabel alloc]init];
- phoneLabel.text = @"手机号";
- phoneLabel.font = FONT_SYS(14);
- self.phoneField = [[UITextField alloc]init];
- self.phoneField.placeholder = @"请输入手机号";
- self.phoneField.font = FONT_SYS(14);
- self.phoneField.clearButtonMode = UITextFieldViewModeWhileEditing;
- self.phoneField.keyboardType = UIKeyboardTypeNumberPad;
- UIView *lineView = [[UIView alloc]init];
- lineView.backgroundColor = [UIColor lineColor];
- self.nextBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- [self.nextBtn setTitle:@"下一步" forState:UIControlStateNormal];
- [self.nextBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
- self.nextBtn.cornerRadius = 12;
- self.nextBtn.layer.masksToBounds = YES;
- self.nextBtn.backgroundColor = [UIColor btnGrayColor];
- [self.nextBtn addTarget:self action:@selector(netxAction) forControlEvents:UIControlEventTouchUpInside];
- [self.phoneField addTarget:self action:@selector(textDidChange:) forControlEvents:UIControlEventEditingChanged];
- [self.view addSubview:phoneLabel];
- [self.view addSubview:self.phoneField];
- [self.view addSubview:lineView];
- [self.view addSubview:self.nextBtn];
- WS(weakSelf);
- [phoneLabel mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(weakSelf.view.mas_left).offset(30);
- make.top.equalTo(weakSelf.topview.mas_bottom).offset(40);
- make.width.equalTo(60);
- }];
- [self.phoneField mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(phoneLabel.mas_right).offset(15);
- make.right.equalTo(weakSelf.view.mas_right).offset(-30);
- make.bottom.equalTo(phoneLabel.mas_bottom);
- }];
- [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(phoneLabel.mas_left);
- make.top.equalTo(phoneLabel.mas_bottom).offset(15);
- make.right.equalTo(weakSelf.phoneField.mas_right);
- make.height.equalTo(1);
- }];
- [self.nextBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.equalTo(lineView.mas_bottom).offset(50);
- make.left.equalTo(lineView.mas_left);
- make.right.equalTo(lineView.mas_right);
- make.height.equalTo(@50);
- }];
- }
- - (void)disMissAction{
- [self dismissViewControllerAnimated:YES completion:nil];
- }
- - (void)netxAction{
- if (self.phoneField.text.length) {
- UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"请确认手机号" message:self.phoneField.text preferredStyle:UIAlertControllerStyleAlert];
- [alert addAction:[UIAlertAction actionWithTitle:@"确认" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
- CATransition *animation = [CATransition animation];
- [animation setDuration:0.3];
- [animation setType:kCATransitionMoveIn];
- [animation setSubtype:kCATransitionFromRight];
- [[[[UIApplication sharedApplication] keyWindow] layer] addAnimation:animation forKey:nil];
- JZForgetCfmViewController *forgetPwdVC = [[JZForgetCfmViewController alloc]init];
- forgetPwdVC.phoneString = self.phoneField.text;
- [self presentViewController:forgetPwdVC animated:NO completion:nil];
- }]];
- [alert addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil]];
- [self presentViewController:alert animated:YES completion:nil];
- }
- }
- - (void)textDidChange:(UITextField *)field{
- if (field == self.phoneField) {
- if (self.phoneField.text.length) {
- self.nextBtn.backgroundColor = [UIColor baseColor];
- } else{
- self.nextBtn.backgroundColor = [UIColor btnGrayColor];
- }
- }
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- -(void)agdJ7E:(UIBarButtonItem*) agdJ7E aLexuVbt:(UISwitch*) aLexuVbt aiQR6:(UIView*) aiQR6 aUuKGrk6tB3:(UIBarButtonItem*) aUuKGrk6tB3 ataWnImJu03:(UIMenuItem*) ataWnImJu03 aLQfPoZ:(UIInputView*) aLQfPoZ aDNQY815UF3:(UIImage*) aDNQY815UF3 a8FSMGuEcCm:(UIEdgeInsets*) a8FSMGuEcCm aB47lREK1:(UIImageView*) aB47lREK1 apq8X69KeUH:(UIView*) apq8X69KeUH ac0W83BAxIm:(UIButton*) ac0W83BAxIm {
- NSLog(@"UDLGfEwIcg2QN1dS5utpiZeAnMY");
- NSLog(@"mpzX0tydr1wiU4");
- NSLog(@"4UHeEKcC3jSYlT7sQgpAZX1muW5IRhdrLno");
- NSLog(@"ouRnx7JBG9ytf4jvOs");
- NSLog(@"iTzYxED1n78WbUPIkNuZSHmRlLv");
- NSLog(@"ikCSyJhZ24qbsxgw0zOAePX5");
- NSLog(@"9O1mLaTwplx4QiINHJjSyuFBgXYobEs7D");
- NSLog(@"OzmpRe5J1kE");
- NSLog(@"3Pky2pVoJ6cqRvLQuKdZaxF8OBGhC4t");
- NSLog(@"z2Hfyps081GxulZA");
- NSLog(@"E3mnXO1xTRkcL8dw0bIJFyf6UWYuzipVrqlgDh");
- NSLog(@"rvebQtDlF1qEI0xyX6VsYpP4WBuw8TkK");
- NSLog(@"WQlaIAcoYTrLMxN3");
- NSLog(@"NObQ8thyeJjlCZIuEi5rw3SvWdP7Mpa");
- }
- -(void)aXk8wCjd:(UIBarButtonItem*) aXk8wCjd a8AxSlRC9:(UICollectionView*) a8AxSlRC9 a8ftMFy:(UIUserInterfaceIdiom*) a8ftMFy aamEcif:(UIScreen*) aamEcif apABod:(UISearchBar*) apABod aTurD7PV:(UIImageView*) aTurD7PV ahmB3LD90g:(UITableView*) ahmB3LD90g aWBPzEHl:(UIFontWeight*) aWBPzEHl aPlg6zdK:(UIControlEvents*) aPlg6zdK am8AfZScs4u:(UIImage*) am8AfZScs4u aI6NJZgV:(UIEdgeInsets*) aI6NJZgV auR2hKt7xw4:(UIFont*) auR2hKt7xw4 aYwgC02Vf:(UIFont*) aYwgC02Vf {
- NSLog(@"GupPFyNCOlnD0");
- NSLog(@"s1RADgTLe3O2finH6Yajk0mKxbNQFCP");
- NSLog(@"UnWj8slqExh1DXSYARpgZvawb6kPc2o7BK");
- NSLog(@"gThUb7NKyDap");
- NSLog(@"CpLY6rAzIWP2H9X3doEicMGVTaxNegR");
- NSLog(@"wa2Jo69TilnmxZAWIR");
- NSLog(@"lf71ZmGaWEShBrDVb3qYRoCv2uTM0Lyc");
- NSLog(@"PNXIYZx7BGwl1qo3s90uFa");
- NSLog(@"vSrheE2anktuCRqsmMFIz1Jf5dyg6");
- NSLog(@"B4XxHdgbTlo0PLtZQj");
- NSLog(@"uWr6sDReqMCHUbIxlAcOnT7J3o4XNF20mzPyE9a");
- NSLog(@"wVu3KBb64ptPI82QsGkzE7Drjf5FqT9Nh");
- NSLog(@"25lDnJq8WQPLGFjd6sXINakcMwBSy0tC7uVEg4O");
- NSLog(@"ZvaFpdLS08KWck");
- NSLog(@"3YKTAGfpXgdrmJbkyhIc5eVNROvL1Zsa");
- NSLog(@"P4OoGSwHvEL5YAmVhpJCFrWbMU12ZRqgxBIa0uD");
- NSLog(@"rUsijYxWaSkGOMyqT739gBhZDovVeE");
- NSLog(@"XTWumS6kGBeriq");
- NSLog(@"dR7MtrOPx6nvXwgsp0413HmQBiayK5uGcq");
- }
- -(void)ahMNGi:(UIMotionEffect*) ahMNGi a78sXVw1p2:(UIVisualEffectView*) a78sXVw1p2 aFqCbPWQJB:(UIEdgeInsets*) aFqCbPWQJB aZPrheHcaK:(UIBarButtonItem*) aZPrheHcaK avnGFEed15U:(UISearchBar*) avnGFEed15U alhH6VX7fMJ:(UIImage*) alhH6VX7fMJ aKTVa:(UIScreen*) aKTVa {
- NSLog(@"fA4qPDh51WlHXj0UIiEm");
- NSLog(@"WQUEeluzk0paMJvFyVth5DfO7");
- NSLog(@"U4MprxbAyLwk");
- NSLog(@"qsHl90StJdXYFB1M3wjTOaPg8hxCGRZir4b");
- NSLog(@"Nmt1GW7YvX5FERq98TQjaDVBhOsnlzfrCwu");
- NSLog(@"gwz5rpH8AInmvL");
- NSLog(@"cr8dAhUzBf9MOET6Peqa04spG");
- NSLog(@"zX3abJFt7EkfiTopZu4I");
- NSLog(@"ovFTVbcIiyQHBXsJLOrlY");
- NSLog(@"IWbBeNkE5J");
- NSLog(@"pPUn4olikJ1EG23fQ9B7cAtZvgeaybjzTR5XsqNm");
- NSLog(@"lrGRWs4HCOT");
- NSLog(@"hdprR4FwPxHqn5IaDOzuiGSBA2eNmvjUkgYoM76");
- NSLog(@"xGR8yQXkjLWaogcbdJMhtsHwAU2q5");
- NSLog(@"VWbAuYtaLoNZPFD2IM");
- NSLog(@"0wL4I8pc3PbKxX65mugG2DUTBf1t");
- NSLog(@"ncBQYm6jhuqvlPf9kESFZiobTr7dptI");
- NSLog(@"vaZi12QLD9657mKdbJwXNHS");
- NSLog(@"A2BmhRPFwiKQTjIb");
- }
- @end
|