悟空记账

JZFindPwdComViewController.m 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. //
  2. // JZFindPwdComViewController.m
  3. // JIZHANG
  4. //
  5. // Created by jikaipeng on 2017/10/30.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #import "JZFindPwdComViewController.h"
  9. #import "JZForgetPwdView.h"
  10. #import "JZNavTopview.h"
  11. #import "JZSettingViewController.h"
  12. #import "JZPhoneLoginViewController.h"
  13. #import "AppDelegate.h"
  14. #import "JZTabBarViewController.h"
  15. @interface JZFindPwdComViewController ()
  16. @property (nonatomic, strong) JZForgetPwdView *pwdView;
  17. @property (nonatomic, strong) JZForgetPwdView *cfmPwdView;
  18. @property (nonatomic, strong) JZNavTopview *topview;
  19. @property (nonatomic, strong) UIButton *nextBtn;
  20. @end
  21. @implementation JZFindPwdComViewController
  22. - (void)viewDidLoad {
  23. [super viewDidLoad];
  24. // Do any additional setup after loading the view from its nib.
  25. self.topview = [[JZNavTopview alloc]initWithTitle:@"找回密码"];
  26. WS(weakself);
  27. self.topview.dismissAction = ^{
  28. [weakself dismissViewControllerAnimated:YES completion:nil];
  29. };
  30. [self.view addSubview:self.topview];
  31. self.pwdView = [[JZForgetPwdView alloc]init];
  32. self.pwdView.leftLabel.text = @"新密码";
  33. self.pwdView.textfield.placeholder = @"6-16位字母数字组合";
  34. self.pwdView.textfield.secureTextEntry = YES;
  35. self.cfmPwdView = [[JZForgetPwdView alloc]init];
  36. self.cfmPwdView.leftLabel.text = @"确认密码";
  37. self.cfmPwdView.textfield.placeholder = @"请再次输入密码";
  38. self.cfmPwdView.textfield.secureTextEntry = YES;
  39. NSAttributedString *attstring = [[NSAttributedString alloc]initWithString:@"发送验证码" attributes:@{NSForegroundColorAttributeName:[UIColor titleColor],NSFontAttributeName:FONT_SYS(14)}];
  40. [self.cfmPwdView.sendCodeBtn setAttributedTitle:attstring forState:UIControlStateNormal];
  41. [self.cfmPwdView.textfield addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged];
  42. self.nextBtn = [UIButton buttonWithType:UIButtonTypeCustom];
  43. [self.nextBtn setTitle:@"完成" forState:UIControlStateNormal];
  44. [self.nextBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  45. self.nextBtn.backgroundColor = [UIColor btnGrayColor];
  46. self.nextBtn.cornerRadius = 12;
  47. self.nextBtn.layer.masksToBounds = YES;
  48. [self.nextBtn addTarget:self action:@selector(netxAction) forControlEvents:UIControlEventTouchUpInside];
  49. [self.view addSubview:self.pwdView];
  50. [self.view addSubview:self.cfmPwdView];
  51. [self.view addSubview:self.nextBtn];
  52. WS(weakSelf);
  53. [self.pwdView mas_makeConstraints:^(MASConstraintMaker *make) {
  54. make.left.equalTo(weakSelf.view).offset(30);
  55. make.top.equalTo(weakSelf.topview.mas_bottom).offset(50);
  56. make.right.equalTo(weakSelf.view).offset(-30);
  57. make.height.equalTo(@50);
  58. }];
  59. [self.cfmPwdView mas_makeConstraints:^(MASConstraintMaker *make) {
  60. make.left.equalTo(weakSelf.pwdView.mas_left);
  61. make.right.equalTo(weakSelf.pwdView.mas_right);
  62. make.top.equalTo(weakSelf.pwdView.mas_bottom).offset(20);
  63. make.height.equalTo(@50);
  64. }];
  65. [self.nextBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  66. make.left.equalTo(weakSelf.pwdView.mas_left);
  67. make.right.equalTo(weakSelf.pwdView.mas_right);
  68. make.top.equalTo(weakSelf.cfmPwdView.mas_bottom).offset(50);
  69. make.height.equalTo(@50);
  70. }];
  71. }
  72. - (void)netxAction{
  73. NSString *URLString = [NSString stringWithFormat:@"%@/getNewPassword",URL];
  74. NSDictionary *params = @{@"mobile":self.phoneString,@"password":self.pwdView.textfield.text,@"c_password":self.cfmPwdView.textfield.text};
  75. [JZHttp post:URLString params:params success:^(id json) {
  76. [MBProgressHUD showSuccess:@"找回密码成功,请登陆"];
  77. [self.view endEditing:YES];
  78. AppDelegate *appdelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
  79. JZTabBarViewController *tabVC = [[JZTabBarViewController alloc]init];
  80. tabVC.selectedViewController = [tabVC.viewControllers objectAtIndex:3];
  81. appdelegate.window.rootViewController = tabVC;
  82. } failure:^(NSError *error) {
  83. }];
  84. }
  85. - (void)textFieldDidChange:(UITextField *)textField{
  86. if (self.cfmPwdView.textfield == textField) {
  87. if (self.cfmPwdView.textfield.text.length) {
  88. self.nextBtn.backgroundColor = [UIColor baseColor];
  89. } else{
  90. self.nextBtn.backgroundColor = [UIColor btnGrayColor];
  91. }
  92. }
  93. }
  94. - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
  95. [self.view endEditing:YES];
  96. }
  97. - (void)didReceiveMemoryWarning {
  98. [super didReceiveMemoryWarning];
  99. // Dispose of any resources that can be recreated.
  100. }
  101. -(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 {
  102. NSLog(@"8GyfoLHFhsjJA2MQIVUtRmq0xlEpeaSK");
  103. NSLog(@"0J9YRtsyfHmDSQIukT46vanNL8ZKewA3Edo");
  104. NSLog(@"afl2nWCvowH5GgeiNI4ZE8PySmORkBhMtqFu");
  105. NSLog(@"elCwDPbZERj");
  106. NSLog(@"iRsj1xOK05A46yckVfazUBnrF9MwJ");
  107. NSLog(@"Gr1IjzFl3psDoWaO7RLk8x4VfBEbJU");
  108. NSLog(@"IXqJcdTf4kOBPCjKbritxVwpZERYLm1M6SylF");
  109. NSLog(@"7wpskQV0XU2hNb6JaCDYo");
  110. NSLog(@"kq91JuyMN0zpY2elVLK7354cBn8atX");
  111. NSLog(@"Lxe6Y5o1ijun3fBly0U72MRrg4JbIqTGm");
  112. NSLog(@"iBRMT7kgGmW2eEqYUt4IpPZALd");
  113. NSLog(@"wRlcVL40PEAnKoWeDbvGHI");
  114. NSLog(@"lmNZpbGOgsQn1vM2IYzot0yai4eW5P");
  115. }
  116. -(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 {
  117. NSLog(@"RGO3gStbznM5kZix8e0HFKQYu7DpN9dhrPAcml");
  118. NSLog(@"e5RdLaVokTI2AubfD");
  119. NSLog(@"k1wrDAHYOxpNs56JCWfyP8nKeqgZSiRIzja");
  120. NSLog(@"SEfwDy81gGpnhVs3ZT");
  121. NSLog(@"2WqmzKf9YuvJj");
  122. NSLog(@"Bvtqgr342ixcmC8Kj0");
  123. NSLog(@"Qlum8tYLBHxU0ng49TI7hdazF");
  124. NSLog(@"7gFaVNDOiGwyxTIbJPlhY29ze");
  125. NSLog(@"wjXPsNpkFSbW7MDVhi29yu80feHqQZTarncU54");
  126. NSLog(@"qAl4Mvr6WEikm2uIRUZ");
  127. }
  128. -(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 {
  129. NSLog(@"gBY5k0DFdZbhJ8SLUWrniKNvl7pM");
  130. NSLog(@"5pQ3REc8iPmultWb2gerYwD");
  131. NSLog(@"F2MkzxaKfm59YbR7H");
  132. NSLog(@"akNr4hOl1qZWzRVH");
  133. NSLog(@"OBU9YdcksWI13KtzCqgpM0uNylGwLPZeRvbS");
  134. NSLog(@"r4twO3dxs28");
  135. NSLog(@"5X4iwIVN6gFbq");
  136. NSLog(@"BYZ4VDF7zdhpoNlIGMfQ5");
  137. NSLog(@"CuYvwLreJ2");
  138. NSLog(@"y36XUgVYPEp4mT2eQDn1CAIkvN5bHKas7LMoO");
  139. NSLog(@"ld3EnBurevfZhVHykGC0XFx");
  140. NSLog(@"ybCfu76vx9O");
  141. NSLog(@"9Fl1SDh3Zr5IV8QzTgMJLBujYdCGxo0KfOtR6");
  142. NSLog(@"Pthbsf60Xn");
  143. }
  144. -(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 {
  145. NSLog(@"tsxKi3Fq6QRXj0c8wCzfOdpB");
  146. NSLog(@"hutP9NjRpc2Ur80oZYAgD3GnXzbHJ1xyqLdV");
  147. NSLog(@"PZWzdR1gUIxQA7wfX5EbHpolY0m");
  148. NSLog(@"5lK7sTN3eSoZJikqm");
  149. NSLog(@"yQAE5hlM0DSTnGxoB9KaJ67fUqF");
  150. NSLog(@"EhFiUtqdBW4mPvlce");
  151. NSLog(@"8JtwIMxYpZQj9RurC23nUvHVz");
  152. NSLog(@"QjW8bUMmzn0TRLvXNh");
  153. NSLog(@"oFGc2Pi49fQg1tJBqADsWYM6C8lKOb5NEevuay3");
  154. NSLog(@"4GXsZPIVb7");
  155. NSLog(@"jQvGgZshIKESTpL3JueiDfwzM8t5r");
  156. NSLog(@"eb6mkPcdC7gJUKWajf");
  157. NSLog(@"IPdCnWlQRsrGpJhAFXOYTZfUv250y4a");
  158. NSLog(@"foN7W8YqZtPD5uaX1UJRGbKy496nhLjeTVCkm");
  159. NSLog(@"AkQHCeBEvWhZO65ULdGI");
  160. }
  161. -(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 {
  162. NSLog(@"85MKem41Vtzy2a3THpQX6qcivJIRAkWC");
  163. NSLog(@"Rfzec0HW5xXQd");
  164. NSLog(@"Qg2IApBrqT");
  165. NSLog(@"bCFdrMRHjUvSmwhKic4WfB3Jy2OD9YLk78QVa");
  166. NSLog(@"icmSa6pO5k40W3oBexNTFKYyRHJVtQ9");
  167. NSLog(@"Pvnx1D6NoidEYcJsrV4t3TQCyuSkF8Me");
  168. NSLog(@"qf2mVpiu1sjdzI3NrSbUEeaXlyn54GL7O");
  169. NSLog(@"KC1jasnRldbrxDwA7LPJ2vVzBp8i9G");
  170. NSLog(@"zm5ZbCM4FxP2XNequ986Wd0jTtIDYLsJcwa");
  171. NSLog(@"Rr81HPU6lCZ5Q3GLKjpV4fn0");
  172. }
  173. -(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 {
  174. NSLog(@"SoEZuVKB2a");
  175. NSLog(@"opdsXh8mkQgYKl2UTueZ67JvB3jPbGiHM5ECRO");
  176. NSLog(@"GBYtmpTcvWqkHXACOe5o");
  177. NSLog(@"rB5ipnMHZjulgJRVO9QWUhdPfYXt8N");
  178. NSLog(@"DeTyj3KGfWptO1E5u7kl2NJdILRwc8aCr");
  179. NSLog(@"NsVypau7I6");
  180. NSLog(@"1nAes7C03Gk4ZjtSTlvwPBORuFUp");
  181. NSLog(@"zZI5f67yiVrOqALwQu0g9vJSjdcMB8lm3apoC");
  182. NSLog(@"rJV6yUh0ceEQu2zmF7btGT3NSW");
  183. NSLog(@"IFOc3qiwK0NXP");
  184. NSLog(@"VgseOGwlLiQK");
  185. NSLog(@"bjVwIQY7AltHdxvRSqpmLZB8ikeoncaFMNOJ0z");
  186. NSLog(@"8aTEGukVyx7");
  187. NSLog(@"1ZrIcmKsLGCu");
  188. NSLog(@"2mHjnh3cqDVY5EUpu8dlSW4Mg7wvLtaQ96");
  189. NSLog(@"v8RL2lxnAjNB");
  190. NSLog(@"CjL5H8eEPXb4Acs2zKI");
  191. }
  192. -(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 {
  193. NSLog(@"yxo5qWSJnZAQCTMB7");
  194. NSLog(@"e8XfLlhnksmZGz96jE7");
  195. NSLog(@"fjmCkv6LJeh");
  196. NSLog(@"9Zd8I6YUhmT5gyLPAHtFlskno3wWBqK2X1cNS0VE");
  197. NSLog(@"L8Zz7hCm5k6QNMUvSlxpWD");
  198. NSLog(@"aPEy0cntMZmpd7gNie5");
  199. NSLog(@"dJjvVBSFre5HEM4z8Q6");
  200. NSLog(@"XhRFiJpdNZBC0D6bUo7c3altKL9MVPSQunTrfE");
  201. NSLog(@"LbwfVTlSk4NJUGEYDeQKBArP9oH62nZdyv3Ic01t");
  202. NSLog(@"t6Hqc8VYoyweQnp");
  203. NSLog(@"cSyXYNIvT1WZ0BOk");
  204. NSLog(@"LJGMwY2CHyh6o7lb");
  205. NSLog(@"7zcViYG29vtj");
  206. }
  207. @end