123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- //
- // JZFindPwdComViewController.m
- // JIZHANG
- //
- // Created by jikaipeng on 2017/10/30.
- // Copyright © 2017年 kuxuan. All rights reserved.
- //
- #import "JZFindPwdComViewController.h"
- #import "JZForgetPwdView.h"
- #import "JZNavTopview.h"
- #import "JZSettingViewController.h"
- #import "JZPhoneLoginViewController.h"
- #import "AppDelegate.h"
- #import "JZTabBarViewController.h"
- @interface JZFindPwdComViewController ()
- @property (nonatomic, strong) JZForgetPwdView *pwdView;
- @property (nonatomic, strong) JZForgetPwdView *cfmPwdView;
- @property (nonatomic, strong) JZNavTopview *topview;
- @property (nonatomic, strong) UIButton *nextBtn;
- @end
- @implementation JZFindPwdComViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view from its nib.
- self.topview = [[JZNavTopview alloc]initWithTitle:@"找回密码"];
- WS(weakself);
- self.topview.dismissAction = ^{
- [weakself dismissViewControllerAnimated:YES completion:nil];
- };
- [self.view addSubview:self.topview];
- self.pwdView = [[JZForgetPwdView alloc]init];
- self.pwdView.leftLabel.text = @"新密码";
- self.pwdView.textfield.placeholder = @"6-16位字母数字组合";
- self.pwdView.textfield.secureTextEntry = YES;
- self.cfmPwdView = [[JZForgetPwdView alloc]init];
- self.cfmPwdView.leftLabel.text = @"确认密码";
- self.cfmPwdView.textfield.placeholder = @"请再次输入密码";
- self.cfmPwdView.textfield.secureTextEntry = YES;
- NSAttributedString *attstring = [[NSAttributedString alloc]initWithString:@"发送验证码" attributes:@{NSForegroundColorAttributeName:[UIColor titleColor],NSFontAttributeName:FONT_SYS(14)}];
- [self.cfmPwdView.sendCodeBtn setAttributedTitle:attstring forState:UIControlStateNormal];
- [self.cfmPwdView.textfield addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
- self.nextBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- [self.nextBtn setTitle:@"完成" forState:UIControlStateNormal];
- [self.nextBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
- self.nextBtn.backgroundColor = [UIColor btnGrayColor];
- self.nextBtn.cornerRadius = 12;
- self.nextBtn.layer.masksToBounds = YES;
- [self.nextBtn addTarget:self action:@selector(netxAction) forControlEvents:UIControlEventTouchUpInside];
- [self.view addSubview:self.pwdView];
- [self.view addSubview:self.cfmPwdView];
- [self.view addSubview:self.nextBtn];
- WS(weakSelf);
- [self.pwdView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(weakSelf.view).offset(30);
- make.top.equalTo(weakSelf.topview.mas_bottom).offset(50);
- make.right.equalTo(weakSelf.view).offset(-30);
- make.height.equalTo(@50);
- }];
- [self.cfmPwdView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(weakSelf.pwdView.mas_left);
- make.right.equalTo(weakSelf.pwdView.mas_right);
- make.top.equalTo(weakSelf.pwdView.mas_bottom).offset(20);
- make.height.equalTo(@50);
- }];
- [self.nextBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.equalTo(weakSelf.pwdView.mas_left);
- make.right.equalTo(weakSelf.pwdView.mas_right);
- make.top.equalTo(weakSelf.cfmPwdView.mas_bottom).offset(50);
- make.height.equalTo(@50);
- }];
- }
- - (void)netxAction{
- NSString *URLString = [NSString stringWithFormat:@"%@/getNewPassword",URL];
- NSDictionary *params = @{@"mobile":self.phoneString,@"password":self.pwdView.textfield.text,@"c_password":self.cfmPwdView.textfield.text};
- [JZHttp post:URLString params:params success:^(id json) {
- [MBProgressHUD showSuccess:@"找回密码成功,请登陆"];
- [self.view endEditing:YES];
- AppDelegate *appdelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
- JZTabBarViewController *tabVC = [[JZTabBarViewController alloc]init];
- tabVC.selectedViewController = [tabVC.viewControllers objectAtIndex:3];
- appdelegate.window.rootViewController = tabVC;
- } failure:^(NSError *error) {
-
- }];
- }
- - (void)textFieldDidChange:(UITextField *)textField{
- if (self.cfmPwdView.textfield == textField) {
- if (self.cfmPwdView.textfield.text.length) {
- self.nextBtn.backgroundColor = [UIColor baseColor];
- } else{
- self.nextBtn.backgroundColor = [UIColor btnGrayColor];
- }
- }
- }
- - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
- [self.view endEditing:YES];
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- -(void)ajAt5g1GYf:(UIControl*) ajAt5g1GYf akG34UXnIO:(UIImageView*) akG34UXnIO aZfr4CtskQ:(UIFontWeight*) aZfr4CtskQ a7CSJY:(UISwitch*) a7CSJY a7ZhFTon0sq:(UISearchBar*) a7ZhFTon0sq aRoPjDVks:(UIMotionEffect*) aRoPjDVks atWPN1Z2gf:(UITableView*) atWPN1Z2gf aZmu0oynUk:(UIFont*) aZmu0oynUk {
- NSLog(@"8GyfoLHFhsjJA2MQIVUtRmq0xlEpeaSK");
- NSLog(@"0J9YRtsyfHmDSQIukT46vanNL8ZKewA3Edo");
- NSLog(@"afl2nWCvowH5GgeiNI4ZE8PySmORkBhMtqFu");
- NSLog(@"elCwDPbZERj");
- NSLog(@"iRsj1xOK05A46yckVfazUBnrF9MwJ");
- NSLog(@"Gr1IjzFl3psDoWaO7RLk8x4VfBEbJU");
- NSLog(@"IXqJcdTf4kOBPCjKbritxVwpZERYLm1M6SylF");
- NSLog(@"7wpskQV0XU2hNb6JaCDYo");
- NSLog(@"kq91JuyMN0zpY2elVLK7354cBn8atX");
- NSLog(@"Lxe6Y5o1ijun3fBly0U72MRrg4JbIqTGm");
- NSLog(@"iBRMT7kgGmW2eEqYUt4IpPZALd");
- NSLog(@"wRlcVL40PEAnKoWeDbvGHI");
- NSLog(@"lmNZpbGOgsQn1vM2IYzot0yai4eW5P");
- }
- -(void)aBlcEsCV:(UIEvent*) aBlcEsCV ai2ko:(UIEdgeInsets*) ai2ko a4vux:(UIImage*) a4vux awsbHp:(UIEvent*) awsbHp aO92nlIUHW:(UIImage*) aO92nlIUHW a81moa7h:(UIMotionEffect*) a81moa7h ayVkIf6rQ:(UIMotionEffect*) ayVkIf6rQ anfHg50cx:(UIControlEvents*) anfHg50cx aMg8z:(UISwitch*) aMg8z ag3jbAp:(UIWindow*) ag3jbAp ag8dIHy:(UIFont*) ag8dIHy aXUvhGBPe:(UIEdgeInsets*) aXUvhGBPe a8frKT0:(UICollectionView*) a8frKT0 ak4eOqy:(UIScreen*) ak4eOqy aU8ZDsvxH:(UIImageView*) aU8ZDsvxH aoi6qmXa48f:(UIEvent*) aoi6qmXa48f {
- NSLog(@"RGO3gStbznM5kZix8e0HFKQYu7DpN9dhrPAcml");
- NSLog(@"e5RdLaVokTI2AubfD");
- NSLog(@"k1wrDAHYOxpNs56JCWfyP8nKeqgZSiRIzja");
- NSLog(@"SEfwDy81gGpnhVs3ZT");
- NSLog(@"2WqmzKf9YuvJj");
- NSLog(@"Bvtqgr342ixcmC8Kj0");
- NSLog(@"Qlum8tYLBHxU0ng49TI7hdazF");
- NSLog(@"7gFaVNDOiGwyxTIbJPlhY29ze");
- NSLog(@"wjXPsNpkFSbW7MDVhi29yu80feHqQZTarncU54");
- NSLog(@"qAl4Mvr6WEikm2uIRUZ");
- }
- -(void)azj8u5vF:(UISwitch*) azj8u5vF anLmUAljT:(UIColor*) anLmUAljT a1uwBb:(UIFont*) a1uwBb ajhnOFds:(UICollectionView*) ajhnOFds aeNdqIRDh:(UIFont*) aeNdqIRDh aO507NReGV:(UIApplication*) aO507NReGV aLnw3JvHYW:(UIFont*) aLnw3JvHYW a4yCD:(UIDevice*) a4yCD aj7pqtSdEGr:(UIMotionEffect*) aj7pqtSdEGr afkwurC:(UIImageView*) afkwurC aoSuPt:(UIFont*) aoSuPt aRpoYDsrfO:(UITableView*) aRpoYDsrfO apU6J0vuM:(UIKeyCommand*) apU6J0vuM aTdRB2muI5:(UIActivity*) aTdRB2muI5 asUTZRFvG:(UIScreen*) asUTZRFvG agd92pL:(UIBezierPath*) agd92pL {
- NSLog(@"gBY5k0DFdZbhJ8SLUWrniKNvl7pM");
- NSLog(@"5pQ3REc8iPmultWb2gerYwD");
- NSLog(@"F2MkzxaKfm59YbR7H");
- NSLog(@"akNr4hOl1qZWzRVH");
- NSLog(@"OBU9YdcksWI13KtzCqgpM0uNylGwLPZeRvbS");
- NSLog(@"r4twO3dxs28");
- NSLog(@"5X4iwIVN6gFbq");
- NSLog(@"BYZ4VDF7zdhpoNlIGMfQ5");
- NSLog(@"CuYvwLreJ2");
- NSLog(@"y36XUgVYPEp4mT2eQDn1CAIkvN5bHKas7LMoO");
- NSLog(@"ld3EnBurevfZhVHykGC0XFx");
- NSLog(@"ybCfu76vx9O");
- NSLog(@"9Fl1SDh3Zr5IV8QzTgMJLBujYdCGxo0KfOtR6");
- NSLog(@"Pthbsf60Xn");
- }
- -(void)a8tHgZvO:(UISwitch*) a8tHgZvO aOF2s6f:(UITableView*) aOF2s6f abM6zE9B1c:(UIDocument*) abM6zE9B1c a0l9q:(UIView*) a0l9q ahJAOT:(UILabel*) ahJAOT azatmRX0K:(UIKeyCommand*) azatmRX0K agjym:(UIKeyCommand*) agjym aVj5Z:(UIInputView*) aVj5Z aSeoQ:(UIVisualEffectView*) aSeoQ a9k5L0EyO:(UISwitch*) a9k5L0EyO aSs894LuN:(UIRegion*) aSs894LuN {
- NSLog(@"tsxKi3Fq6QRXj0c8wCzfOdpB");
- NSLog(@"hutP9NjRpc2Ur80oZYAgD3GnXzbHJ1xyqLdV");
- NSLog(@"PZWzdR1gUIxQA7wfX5EbHpolY0m");
- NSLog(@"5lK7sTN3eSoZJikqm");
- NSLog(@"yQAE5hlM0DSTnGxoB9KaJ67fUqF");
- NSLog(@"EhFiUtqdBW4mPvlce");
- NSLog(@"8JtwIMxYpZQj9RurC23nUvHVz");
- NSLog(@"QjW8bUMmzn0TRLvXNh");
- NSLog(@"oFGc2Pi49fQg1tJBqADsWYM6C8lKOb5NEevuay3");
- NSLog(@"4GXsZPIVb7");
- NSLog(@"jQvGgZshIKESTpL3JueiDfwzM8t5r");
- NSLog(@"eb6mkPcdC7gJUKWajf");
- NSLog(@"IPdCnWlQRsrGpJhAFXOYTZfUv250y4a");
- NSLog(@"foN7W8YqZtPD5uaX1UJRGbKy496nhLjeTVCkm");
- NSLog(@"AkQHCeBEvWhZO65ULdGI");
- }
- -(void)agwTRam2Yj:(UIDocument*) agwTRam2Yj aFkWdv2eA0:(UISearchBar*) aFkWdv2eA0 aWPtklE:(UIAlertView*) aWPtklE aFYhtNf9s:(UIControl*) aFYhtNf9s aNtbja6PEel:(UIVisualEffectView*) aNtbja6PEel aF5QWt8XJNp:(UISearchBar*) aF5QWt8XJNp aS1WLy32gM:(UIView*) aS1WLy32gM aByMsQKcLx5:(UIKeyCommand*) aByMsQKcLx5 aDrXR1qp:(UIMotionEffect*) aDrXR1qp adrJ7:(UIMotionEffect*) adrJ7 afPJ1:(UIBarButtonItem*) afPJ1 {
- NSLog(@"85MKem41Vtzy2a3THpQX6qcivJIRAkWC");
- NSLog(@"Rfzec0HW5xXQd");
- NSLog(@"Qg2IApBrqT");
- NSLog(@"bCFdrMRHjUvSmwhKic4WfB3Jy2OD9YLk78QVa");
- NSLog(@"icmSa6pO5k40W3oBexNTFKYyRHJVtQ9");
- NSLog(@"Pvnx1D6NoidEYcJsrV4t3TQCyuSkF8Me");
- NSLog(@"qf2mVpiu1sjdzI3NrSbUEeaXlyn54GL7O");
- NSLog(@"KC1jasnRldbrxDwA7LPJ2vVzBp8i9G");
- NSLog(@"zm5ZbCM4FxP2XNequ986Wd0jTtIDYLsJcwa");
- NSLog(@"Rr81HPU6lCZ5Q3GLKjpV4fn0");
- }
- -(void)a2kbO4udh:(UIBarButtonItem*) a2kbO4udh a7NAL:(UISwitch*) a7NAL aYOdJMD:(UIControl*) aYOdJMD aD4SCM:(UIBezierPath*) aD4SCM aPWobu:(UIKeyCommand*) aPWobu aegiIpKnQT:(UIEdgeInsets*) aegiIpKnQT aVifP9u7U:(UIControlEvents*) aVifP9u7U ahQiNdX:(UILabel*) ahQiNdX {
- NSLog(@"SoEZuVKB2a");
- NSLog(@"opdsXh8mkQgYKl2UTueZ67JvB3jPbGiHM5ECRO");
- NSLog(@"GBYtmpTcvWqkHXACOe5o");
- NSLog(@"rB5ipnMHZjulgJRVO9QWUhdPfYXt8N");
- NSLog(@"DeTyj3KGfWptO1E5u7kl2NJdILRwc8aCr");
- NSLog(@"NsVypau7I6");
- NSLog(@"1nAes7C03Gk4ZjtSTlvwPBORuFUp");
- NSLog(@"zZI5f67yiVrOqALwQu0g9vJSjdcMB8lm3apoC");
- NSLog(@"rJV6yUh0ceEQu2zmF7btGT3NSW");
- NSLog(@"IFOc3qiwK0NXP");
- NSLog(@"VgseOGwlLiQK");
- NSLog(@"bjVwIQY7AltHdxvRSqpmLZB8ikeoncaFMNOJ0z");
- NSLog(@"8aTEGukVyx7");
- NSLog(@"1ZrIcmKsLGCu");
- NSLog(@"2mHjnh3cqDVY5EUpu8dlSW4Mg7wvLtaQ96");
- NSLog(@"v8RL2lxnAjNB");
- NSLog(@"CjL5H8eEPXb4Acs2zKI");
- }
- -(void)a4aWCotKjvH:(UIUserInterfaceIdiom*) a4aWCotKjvH a1JKITjfB:(UIMenuItem*) a1JKITjfB aaU3Kvc4VS:(UIWindow*) aaU3Kvc4VS a4vhu:(UIAlertView*) a4vhu aqwXi:(UIActivity*) aqwXi aHgbkRD:(UIWindow*) aHgbkRD ak5WhujtV:(UIBarButtonItem*) ak5WhujtV aWcGZHEv:(UIRegion*) aWcGZHEv a3Cl65F9R:(UIBezierPath*) a3Cl65F9R aZUG479:(UIDocument*) aZUG479 aR806KGW:(UIMotionEffect*) aR806KGW auzgD1:(UIControl*) auzgD1 as9xyBoW:(UIBarButtonItem*) as9xyBoW aSoNavDk:(UIUserInterfaceIdiom*) aSoNavDk {
- NSLog(@"yxo5qWSJnZAQCTMB7");
- NSLog(@"e8XfLlhnksmZGz96jE7");
- NSLog(@"fjmCkv6LJeh");
- NSLog(@"9Zd8I6YUhmT5gyLPAHtFlskno3wWBqK2X1cNS0VE");
- NSLog(@"L8Zz7hCm5k6QNMUvSlxpWD");
- NSLog(@"aPEy0cntMZmpd7gNie5");
- NSLog(@"dJjvVBSFre5HEM4z8Q6");
- NSLog(@"XhRFiJpdNZBC0D6bUo7c3altKL9MVPSQunTrfE");
- NSLog(@"LbwfVTlSk4NJUGEYDeQKBArP9oH62nZdyv3Ic01t");
- NSLog(@"t6Hqc8VYoyweQnp");
- NSLog(@"cSyXYNIvT1WZ0BOk");
- NSLog(@"LJGMwY2CHyh6o7lb");
- NSLog(@"7zcViYG29vtj");
- }
- @end
|