JXNewRegisterVc.m 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. //
  2. // JXNewRegisterVc.m
  3. // shiku_im
  4. //
  5. // Created by 123 on 2020/5/6.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import "JXNewRegisterVc.h"
  9. #import "PSRegisterBaseVC.h"
  10. #import "JXBaseInfoVc.h"
  11. @interface JXNewRegisterVc ()
  12. @property (weak, nonatomic) IBOutlet UITextField *phoneTF;
  13. @property (weak, nonatomic) IBOutlet UITextField *pwdTF;
  14. @property (weak, nonatomic) IBOutlet UIButton *shuaBtn;
  15. @property (weak, nonatomic) IBOutlet UILabel *rightCodeL;
  16. @property (weak, nonatomic) IBOutlet UITextField *numberTF;
  17. @property (weak, nonatomic) IBOutlet UITextField *coderTF;
  18. @property (weak, nonatomic) IBOutlet UIButton *tongyiBtn;
  19. @end
  20. @implementation JXNewRegisterVc
  21. - (IBAction)gobacBtn:(id)sender {
  22. [g_navigation dismissViewController:self animated:YES];
  23. }
  24. - (void)viewDidLoad {
  25. [super viewDidLoad];
  26. // [JXRegisterShowView showView];
  27. self.tongyiBtn.layer.cornerRadius=20;
  28. self.tongyiBtn.layer.masksToBounds=YES;
  29. [_shuaBtn addTarget:self action:@selector(shuaBtnClick) forControlEvents:UIControlEventTouchUpInside];
  30. [_tongyiBtn addTarget:self action:@selector(tongyiBtnClick) forControlEvents:UIControlEventTouchUpInside];
  31. }
  32. - (void)tongyiBtnClick{
  33. JXBaseInfoVc *vcc=[JXBaseInfoVc new];
  34. [g_navigation pushViewController:vcc animated:YES];
  35. return;
  36. JXUserObject* user = [JXUserObject sharedInstance];
  37. user.telephone = _phoneTF.text;
  38. user.password = [g_server getMD5String:_pwdTF.text];
  39. // user.companyId = [NSNumber numberWithInt:self.isCompany];
  40. PSRegisterBaseVC* vc = [PSRegisterBaseVC alloc];
  41. vc.password = _pwdTF.text;
  42. vc.isRegister = YES;
  43. vc.inviteCodeStr = _coderTF.text;
  44. vc.smsCode = _coderTF.text;
  45. vc.resumeId = nil;
  46. //vc.isSmsRegister = self.isSmsRegister;
  47. //vc.resume = [[resumeBaseData alloc]init];
  48. vc.user = user;
  49. //vc.type = self.type;
  50. vc = [vc init];
  51. [g_navigation pushViewController:vc animated:YES];
  52. //[self actionQuit];
  53. }
  54. /**
  55. * 刷新
  56. */
  57. - (void)shuaBtnClick{
  58. int a = arc4random() % 9000+999;
  59. NSLog(@"aaa %d",a);
  60. self.rightCodeL.text=[NSString stringWithFormat:@"%d",a];
  61. }
  62. /**
  63. * 协议 和隐私
  64. */
  65. - (IBAction)xieyiandYSBtn:(UIButton *)sender {
  66. }
  67. /**
  68. * 获取验证码
  69. */
  70. - (IBAction)getCoderBtn:(UIButton *)sender {
  71. if (sender.tag==0) {//获取验证码
  72. }else{ //同意协议并登录
  73. }
  74. }
  75. @end