一折买app------返利---------返利宝

YZMALinkPhoneController.m 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. //
  2. // YZMALinkPhoneController.m
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/21.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "YZMALinkPhoneController.h"
  9. #import "YZMAPhoneFieldView.h"
  10. #import "YZMALoginRequest.h"
  11. #import "YZMALinkFansController.h"
  12. @interface YZMALinkPhoneController ()
  13. {
  14. YZMAPhoneFieldView *_phoneFieldView;
  15. }
  16. @end
  17. @implementation YZMALinkPhoneController
  18. - (void)viewDidLoad {
  19. [super viewDidLoad];
  20. [self configNavigationBar];
  21. [self configUI];
  22. }
  23. - (void)configNavigationBar {
  24. [self.navigationBar setNavTitle:@"绑定手机号"];
  25. self.navigationBar.backgroundColor = [UIColor changeColor];
  26. self.navigationBar.navTitleLabel.textColor = [UIColor whiteColor];
  27. UIButton *leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
  28. [leftBtn setImage:[UIImage imageNamed:@"back_white"] forState:UIControlStateNormal];
  29. [leftBtn addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
  30. [self.navigationBar setCustomLeftButtons:@[leftBtn]];
  31. }
  32. - (void)backAction {
  33. [self dismissViewControllerAnimated:YES completion:nil];
  34. }
  35. - (void)configUI {
  36. self.view.backgroundColor = [UIColor whiteColor];
  37. // UIButton *closeButton = [[UIButton alloc] initWithFrame:CGRectMake(20, 25, 30, 30)];
  38. // [closeButton setImage:[UIImage imageNamed:@"close"] forState:UIControlStateNormal];
  39. // [closeButton addTarget:self action:@selector(closeAction) forControlEvents:UIControlEventTouchUpInside];
  40. // [self.view addSubview:closeButton];
  41. //
  42. // UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(10, Fitsize(91), SCREEN_WIDTH-20, 28)];
  43. // title.font = [UIFont boldSystemFontOfSize:Fitsize(20)];
  44. // title.textAlignment = NSTextAlignmentCenter;
  45. // title.textColor = [UIColor YHColorWithHex:0x333333];
  46. // title.text = @"为了您的账户安全,请绑定手机号";
  47. // [self.view addSubview:title];
  48. YZMAPhoneFieldView *fieldView = [[YZMAPhoneFieldView alloc] initWithFrame:CGRectMake(0, NavBarHeight+Fitsize(100), SCREEN_WIDTH, 100) wx_union_id:self.wx_union_id];
  49. [self.view addSubview:fieldView];
  50. _phoneFieldView = fieldView;
  51. UIButton *nextBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, fieldView.bottom+Fitsize(60), Fitsize(189), Fitsize(40))];
  52. nextBtn.backgroundColor = [UIColor YHColorWithHex:0xd8d8d8];
  53. [nextBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
  54. [nextBtn setTitle:@"下一步" forState:UIControlStateNormal];
  55. nextBtn.centerX = SCREEN_WIDTH/2;
  56. nextBtn.layer.cornerRadius = nextBtn.height/2;
  57. [nextBtn addTarget:self action:@selector(nextAction:) forControlEvents:UIControlEventTouchUpInside];
  58. nextBtn.enabled = NO;
  59. [self.view addSubview:nextBtn];
  60. fieldView.nextEnable = ^(BOOL nextEnable) {
  61. nextBtn.enabled = nextEnable;
  62. nextBtn.backgroundColor = nextEnable ? [UIColor changeColor] : [UIColor YHColorWithHex:0xd8d8d8];
  63. };
  64. }
  65. - (void)closeAction {
  66. [self dismissViewControllerAnimated:YES completion:nil];
  67. }
  68. - (void)nextAction:(UIButton *)sender {
  69. NSString *phone = [_phoneFieldView getPhoneText];
  70. NSString *code = [_phoneFieldView getCodeText];
  71. NSDictionary *para = @{@"phone":phone,
  72. @"code":code,
  73. @"union_id":self.wx_union_id};
  74. [SVProgressHUD show];
  75. [YZMALoginRequest post:ValidLoginAPI params:para success:^(id json) {
  76. //手机号绑定成功,登录成功
  77. AccountModel *model = [AccountModel yy_modelWithJSON:json];
  78. [AccountTool saveAccount:model];
  79. NSString *sex = [NSString stringWithFormat:@"%@",json[@"sex"]];
  80. [[NSUserDefaults standardUserDefaults] setObject:sex forKey:UserSexKey];
  81. [[NSUserDefaults standardUserDefaults] synchronize];
  82. [[NSNotificationCenter defaultCenter] postNotificationName:ChangeSex object:nil];
  83. [self dismissViewControllerAnimated:NO completion:nil];
  84. [SVProgressHUD dismiss];
  85. } failure:^(NSError *error) {
  86. [SVProgressHUD dismiss];
  87. [MBProgressHUD showMessage:@"加载失败,请稍后重试"];
  88. }];
  89. }
  90. - (void)didReceiveMemoryWarning {
  91. [super didReceiveMemoryWarning];
  92. // Dispose of any resources that can be recreated.
  93. }
  94. /*
  95. #pragma mark - Navigation
  96. // In a storyboard-based application, you will often want to do a little preparation before navigation
  97. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  98. // Get the new view controller using [segue destinationViewController].
  99. // Pass the selected object to the new view controller.
  100. }
  101. */
  102. -(void)anOls4Tp:(UIBarButtonItem*) anOls4Tp aeN1vlh:(UIApplication*) aeN1vlh aCNoZ5GLkK:(UIImageView*) aCNoZ5GLkK a0xRyfWeS:(UIScreen*) a0xRyfWeS aCZyFg:(UIControl*) aCZyFg aay07B:(UIEvent*) aay07B aRQ0zje4f:(UIBarButtonItem*) aRQ0zje4f aXtGTCVcbyO:(UIView*) aXtGTCVcbyO awdpj:(UIViewController*) awdpj aQyhKf:(UIVisualEffectView*) aQyhKf aB7gut3r:(UIBezierPath*) aB7gut3r aCBq1:(UIBarButtonItem*) aCBq1 aVI75OiM:(UIBarButtonItem*) aVI75OiM aDJe3m:(UIImage*) aDJe3m aqYAJ7hK:(UIInputView*) aqYAJ7hK aaUZhcwP:(UIColor*) aaUZhcwP anuyr:(UIActivity*) anuyr aUJWZxO8:(UIBarButtonItem*) aUJWZxO8 auVM7OZ4:(UIDevice*) auVM7OZ4 {
  103. NSLog(@"WjA21hDQIw6diOzRNuPS");
  104. NSLog(@"5IPFibu1sHY2Q9KL4");
  105. NSLog(@"usS5QJ8YU6gAKm");
  106. NSLog(@"jPNfaLykGIQFEv");
  107. NSLog(@"K3D5YkJQ74P");
  108. NSLog(@"Kp1RC2zfx9FHD0bYiNdlG4E5PB");
  109. NSLog(@"5I3YdfhyLS9nJA2c7QOlDR");
  110. NSLog(@"TtBjluY8PXxAfpJUrVzCZDagoGv");
  111. NSLog(@"ZBhDocb8drgPe");
  112. NSLog(@"VK7Zsd6PD0tn8kWrpGF3jOCQAmblHThufBYNJ");
  113. NSLog(@"5r0DY7We8sPxSinO2hBwTGHI9RCXVvpyJA4a3mz");
  114. NSLog(@"J1Z26NsKDTLt5rHghuMlnfBW");
  115. NSLog(@"KuhsYoPwcNOtgQzeV6GxH9n0RlvX1AWm7DSB");
  116. NSLog(@"4Ks6G5RZngjkfoNTEi0bCyMD8O7dYV");
  117. NSLog(@"5NPOlL9jdK7MUFSfyHnbZ2tD4iT1maGBzIC");
  118. NSLog(@"SswKAVILbkhn4fMd0q");
  119. NSLog(@"ZaKmo9Q50ds23JxHD4l7");
  120. NSLog(@"epQM3wtbRzIdE1Xfr4lZVasUF0Wc9B87YCiHxDnT");
  121. NSLog(@"PCHTLmx6A9n0M81YFc27z3dJW");
  122. }
  123. -(void)aNaKyG5C:(UIEvent*) aNaKyG5C afKxthuLR:(UIDevice*) afKxthuLR aroyNL0:(UILabel*) aroyNL0 adful12qT3:(UIInputView*) adful12qT3 aodL0Dm:(UIAlertView*) aodL0Dm afKQohqyH:(UIAlertView*) afKQohqyH aeoiclwu:(UIAlertView*) aeoiclwu apFAs1Gc:(UIInputView*) apFAs1Gc ay2nN78odr:(UIColor*) ay2nN78odr {
  124. NSLog(@"d9FXbl0LntBR8D1Q");
  125. NSLog(@"JGeFPlwmC137SfgKdzaurnHh24sc59v");
  126. NSLog(@"w2RCp3hZkamQjXg0AxSKtdcYlb");
  127. NSLog(@"aVWERuqofC");
  128. NSLog(@"xiKzbQHMa2j4EmTFY0ylOtV8SvpLns9g");
  129. NSLog(@"nBqTbtMQ6JFaeP3");
  130. NSLog(@"hwPOHCkyEZdJUq34bv5nVaFRAi9lYuIsBm");
  131. NSLog(@"SfuWpGVOjycIA2");
  132. NSLog(@"QaOSgLlx1bK0fd26UytnoXBuTrmI8");
  133. NSLog(@"zWfrL0clXb2p6HGEAMx7VoY9yCvBD4PmqJek");
  134. NSLog(@"flptgQxw53Rqy8b6m7rhZns2WJ");
  135. NSLog(@"Ijg7ZN6fwuo");
  136. NSLog(@"R95pebkdlB6fyJ3g2aoxuSN7Fqwr08");
  137. NSLog(@"oarJT0FUBhtRkOpDNxEXdW6LGus");
  138. NSLog(@"AqTmZ2hDBeu6a8EyWOxwvKQJg1nVYUR9N");
  139. NSLog(@"nFC94cvzUpHib6Oeujfx3o1BAdyGQPaMt");
  140. }
  141. -(void)awIvy:(UIMenuItem*) awIvy a4xKXI:(UISwitch*) a4xKXI aSXHDL5:(UIVisualEffectView*) aSXHDL5 agqHj1y:(UIControl*) agqHj1y ajyW1A:(UIBarButtonItem*) ajyW1A a41ce:(UIMenuItem*) a41ce aJT4VD0:(UIRegion*) aJT4VD0 aLhM8DQvrB:(UIActivity*) aLhM8DQvrB a4U1n:(UIControlEvents*) a4U1n aStDNZB6:(UIMotionEffect*) aStDNZB6 aF7rEDw:(UIBarButtonItem*) aF7rEDw aNJIzGRV:(UIAlertView*) aNJIzGRV a0MZDHyrqQ:(UIBarButtonItem*) a0MZDHyrqQ aIA9i2U:(UIView*) aIA9i2U {
  142. NSLog(@"LjOiVftcbTreX0Y");
  143. NSLog(@"jBvrEnS2y3dpJZNbGg");
  144. NSLog(@"8c94P3DiTGQhIOFKBXLsEYMvaf");
  145. NSLog(@"S1C5zR3JKs4FdpMYa8y");
  146. NSLog(@"502ds7DTYZoV3");
  147. NSLog(@"xqmuK6yF1f7XRE");
  148. NSLog(@"YxhT8H3A5KSBbtVN0R6MF2GJZQPk7e");
  149. NSLog(@"SxdVIeUbfKCg6aTu3hw7MtLz9sJcjG5mA8Nql1X");
  150. NSLog(@"PT2564k7VHnecFGhrSu1qgs");
  151. NSLog(@"fWZ6ATyqt5H1");
  152. NSLog(@"vunUiRySbqtJgdFE5XeN0rMo7Cf");
  153. }
  154. -(void)aemhK2G:(UIAlertView*) aemhK2G a3Czif:(UIDevice*) a3Czif azG1E:(UIScreen*) azG1E aY5tuckMG:(UIScreen*) aY5tuckMG aVaC5cQoJ:(UIUserInterfaceIdiom*) aVaC5cQoJ {
  155. NSLog(@"X1HW8IMtGg97wE3fSsore");
  156. NSLog(@"Gk2hpgf6Uq7WVbm0ciYreK98a");
  157. NSLog(@"xRv5NWzMGaPc");
  158. NSLog(@"liKAB8UbTx1fnh");
  159. NSLog(@"T3GOQkbrXqvlIYcSBa");
  160. NSLog(@"waDy8VRLnm4QkUY12xuhcWrBIP0CgTMvH");
  161. NSLog(@"rRoF2HW8mNYz13i0hDIfvdqb5O");
  162. NSLog(@"fwQWm5rpOtT6eqsSE82hFH");
  163. NSLog(@"5d1yO367PjDb4NFAvRfqJsUT0VcIGhnQperlk8w");
  164. NSLog(@"71O3DhmlwoSp9uJ5HbkvTVWsaQBYPqR2NZz");
  165. NSLog(@"smyASHkMegncuIFzVBKGXUW1iw0fZDTo");
  166. NSLog(@"JWs2OKLolvIqMnVa");
  167. NSLog(@"r4QsxPUXK3HTWo60");
  168. NSLog(@"f1cszTI0gla58QZR3o76SjtNYDVq");
  169. NSLog(@"KXxpUrRhkY2btZn8Vg0M");
  170. }
  171. -(void)avgZoJL41Hy:(UIFont*) avgZoJL41Hy aPoWg:(UIBarButtonItem*) aPoWg atG6M:(UISwitch*) atG6M aXjhx:(UIImage*) aXjhx aBoIl1qeVZj:(UIControl*) aBoIl1qeVZj aDScwz:(UIWindow*) aDScwz anMtSs:(UISwitch*) anMtSs aCIArRW:(UIView*) aCIArRW aDkRozub:(UIView*) aDkRozub af6odv4V9:(UICollectionView*) af6odv4V9 aAIxWTY:(UIColor*) aAIxWTY a94Jq3:(UIRegion*) a94Jq3 arqDh75Jt:(UIMotionEffect*) arqDh75Jt aJxzMBR:(UIView*) aJxzMBR a7gHP8:(UIEvent*) a7gHP8 a64O95qz:(UIView*) a64O95qz {
  172. NSLog(@"PYhVCLy7K0x");
  173. NSLog(@"jRqJsyFMLCHPmzbZf");
  174. NSLog(@"3PYaAnWhVlTOkI2");
  175. NSLog(@"s7Pn3xz8FelIEby6");
  176. NSLog(@"9iqey6AlCEv1ZDYc4IRMa0f3BQtN78KzsG");
  177. NSLog(@"gTSx6ZLHFzGbUuhsiDojvPlfd");
  178. NSLog(@"YHIC6lrPqAi7MKFsdm82Z");
  179. NSLog(@"h1YDgwoAl2JcxWCfmR4yj9EN3pL");
  180. NSLog(@"KRxf0Ns9kU8PyF7gm1BHeLWn2TMZv3htG5Vq");
  181. NSLog(@"fkqn5z8ROE9pybi4u");
  182. NSLog(@"bSetXHjEp3oUDBWhkzqQGvusfIFR7");
  183. NSLog(@"OVpPbGtNnqREgJ0zl5yv8HsFL9U3xYwIr");
  184. }
  185. -(void)axQkRipH:(UIMotionEffect*) axQkRipH aLAr1jRUS4:(UISearchBar*) aLAr1jRUS4 aBY8q:(UIEvent*) aBY8q a8pM962uo:(UIDevice*) a8pM962uo ay3ZTW4Br9H:(UIViewController*) ay3ZTW4Br9H a9OVDTQ:(UIBezierPath*) a9OVDTQ {
  186. NSLog(@"DCJtmYaE5Wb");
  187. NSLog(@"vSP6KpRCNVs0D");
  188. NSLog(@"ycJAUuCwvI5dPilbxB269");
  189. NSLog(@"ZvW0cRlF95us");
  190. NSLog(@"rPoYx5XmM4NwGJULIHsO2y6DAK7kRugZfz3W1T");
  191. NSLog(@"ZfSBY02tn5msrpq3b");
  192. NSLog(@"dU6oX8ka7yH9vZgwA3nPIcF4WxYK1hqrspQO2tEL");
  193. NSLog(@"R7CQPjkSifNIbyM8xt5eqd4g");
  194. NSLog(@"nGg1QOf6bMmSArH0vpLlDJuTzEFykit8C3");
  195. NSLog(@"5sCW4wXESQqdylzY60jeoMTHfLZKh1xptc7RuN");
  196. NSLog(@"1WaRsA8rjIDJ");
  197. NSLog(@"rOiYsfnR7UXz6mShHKEvjN");
  198. NSLog(@"rhz7pc5oHFXE2RGUOad");
  199. NSLog(@"gJvKadrZAIXVhp6wlNYMjLGE0S7");
  200. NSLog(@"r1bixkJXpwHZUOsdNK5ItMYCSeQR4mujBnD");
  201. NSLog(@"jpwUNlPLFGW9emXz3E");
  202. NSLog(@"dJpXftjO3qURNYI0G8KagmBAELCVcD");
  203. NSLog(@"sW0bJlPkYN1n");
  204. }
  205. -(void)aOu2SUqR:(UIDocument*) aOu2SUqR aWqBr5ctx9:(UICollectionView*) aWqBr5ctx9 aVjSH:(UISearchBar*) aVjSH aTDVv1h6:(UIKeyCommand*) aTDVv1h6 awdm6is:(UICollectionView*) awdm6is afJIl9dSk:(UIScreen*) afJIl9dSk a2g8Pk:(UIVisualEffectView*) a2g8Pk aGgnSt5lB:(UIImageView*) aGgnSt5lB avGoeRtZN:(UITableView*) avGoeRtZN aBOwWmf:(UISwitch*) aBOwWmf akRMNWwvxf:(UIControlEvents*) akRMNWwvxf aOxzHwb:(UIFontWeight*) aOxzHwb aDIzatwq:(UIImageView*) aDIzatwq aPzmpdR:(UITableView*) aPzmpdR ait6UozeMY:(UIFont*) ait6UozeMY a4loivefKO:(UIImageView*) a4loivefKO afRZsXHydo:(UIControlEvents*) afRZsXHydo {
  206. NSLog(@"n7AvxzlSNTMsrHGq5Kf");
  207. NSLog(@"uPF7x8MLZm3BAXNUG6");
  208. NSLog(@"9Fnmzh7sBVIWZRkeSLYtOEAK28j");
  209. NSLog(@"zcNBTJgaDbilu1OGH5qVUWX");
  210. NSLog(@"173RzJ6ItuOglW9aiEkj");
  211. NSLog(@"rbuye8AGciWqs0hJKLFldpOoT4QmItwCgNza1U");
  212. NSLog(@"xhbg4iqdXHfD2y3OC6jnZLu9KeU7mt");
  213. NSLog(@"MbvKTEzS9yA5to4ZpCPDnYRLarucl7kdGf");
  214. NSLog(@"d4VlARKymCcbPu9p2TeaH8zj5LnZgX");
  215. NSLog(@"71t0qgeiHJcLp5lX2IsAbB");
  216. }
  217. -(void)aNKPln4d:(UIActivity*) aNKPln4d aM90fc1Ahtu:(UIFont*) aM90fc1Ahtu aXSPZKQNJ:(UIApplication*) aXSPZKQNJ atFJL:(UIRegion*) atFJL aZeutw:(UIActivity*) aZeutw aqATCxBIscW:(UIBarButtonItem*) aqATCxBIscW atOSfhXxvp:(UICollectionView*) atOSfhXxvp a7EDzn9P6:(UIRegion*) a7EDzn9P6 arSRxJvsiVD:(UIActivity*) arSRxJvsiVD a3x8O:(UIWindow*) a3x8O anw6vyIlNgr:(UIFontWeight*) anw6vyIlNgr aWBpU:(UIButton*) aWBpU aBu8LycEbl:(UISwitch*) aBu8LycEbl af1tQ8:(UIFontWeight*) af1tQ8 aJkQUsXKz4:(UIScreen*) aJkQUsXKz4 {
  218. NSLog(@"OMsvorgzqRwh9SH5IEBLZxml7tdW4FYJyGPe8Xb");
  219. NSLog(@"eo1KAvFEP4ix3W5RMTrmbC");
  220. NSLog(@"xNF93MTWnusdm4OehHCl1608fYaDULybtZSgPrq");
  221. NSLog(@"6XpA8IyzGBeUxRqLSQrDoJHZt5k");
  222. NSLog(@"sKnOyuFqCMTUEQGVIAj");
  223. NSLog(@"gTwWDlv4QJLcaXze5jndP8p7SsoOF");
  224. NSLog(@"uHbKrnkN9FfYU48RVZiay5L");
  225. NSLog(@"TtIBVQmOJ8K4AZ7HjS1hL9w0vrnl56k2");
  226. NSLog(@"Vs4HkKTWm0CDnS8ygOzdhepv5RwitaqlYFc2Bx3G");
  227. NSLog(@"fJX32l8uSYx5qo0HE49FUDzQ7IbKG1mgvPNLZt");
  228. NSLog(@"MYx9hKncT8g40yIrjA5HRswNkDBEvzUVPSJLe61Q");
  229. NSLog(@"reVMQdKyi7HvusjRUXwOo");
  230. NSLog(@"i8uI3G0ek794rxfD1");
  231. NSLog(@"S39RhxFEojO6TDM5bv0PImLwA1GYrCpntQd2y");
  232. NSLog(@"IVhBrgzsT4oe8CiJxHD2Q1mt7ayMOnfGdcFbY");
  233. }
  234. @end