// // JXNewRegisterVc.m // shiku_im // // Created by 123 on 2020/5/6. // Copyright © 2020 Reese. All rights reserved. // #import "JXNewRegisterVc.h" #import "PSRegisterBaseVC.h" #import "JXBaseInfoVc.h" @interface JXNewRegisterVc () @property (weak, nonatomic) IBOutlet UITextField *phoneTF; @property (weak, nonatomic) IBOutlet UITextField *pwdTF; @property (weak, nonatomic) IBOutlet UIButton *shuaBtn; @property (weak, nonatomic) IBOutlet UILabel *rightCodeL; @property (weak, nonatomic) IBOutlet UITextField *numberTF; @property (weak, nonatomic) IBOutlet UITextField *coderTF; @property (weak, nonatomic) IBOutlet UIButton *tongyiBtn; @end @implementation JXNewRegisterVc - (IBAction)gobacBtn:(id)sender { [g_navigation dismissViewController:self animated:YES]; } - (void)viewDidLoad { [super viewDidLoad]; // [JXRegisterShowView showView]; self.tongyiBtn.layer.cornerRadius=20; self.tongyiBtn.layer.masksToBounds=YES; [_shuaBtn addTarget:self action:@selector(shuaBtnClick) forControlEvents:UIControlEventTouchUpInside]; [_tongyiBtn addTarget:self action:@selector(tongyiBtnClick) forControlEvents:UIControlEventTouchUpInside]; } - (void)tongyiBtnClick{ JXBaseInfoVc *vcc=[JXBaseInfoVc new]; [g_navigation pushViewController:vcc animated:YES]; return; JXUserObject* user = [JXUserObject sharedInstance]; user.telephone = _phoneTF.text; user.password = [g_server getMD5String:_pwdTF.text]; // user.companyId = [NSNumber numberWithInt:self.isCompany]; PSRegisterBaseVC* vc = [PSRegisterBaseVC alloc]; vc.password = _pwdTF.text; vc.isRegister = YES; vc.inviteCodeStr = _coderTF.text; vc.smsCode = _coderTF.text; vc.resumeId = nil; //vc.isSmsRegister = self.isSmsRegister; //vc.resume = [[resumeBaseData alloc]init]; vc.user = user; //vc.type = self.type; vc = [vc init]; [g_navigation pushViewController:vc animated:YES]; //[self actionQuit]; } /** * 刷新 */ - (void)shuaBtnClick{ int a = arc4random() % 9000+999; NSLog(@"aaa %d",a); self.rightCodeL.text=[NSString stringWithFormat:@"%d",a]; } /** * 协议 和隐私 */ - (IBAction)xieyiandYSBtn:(UIButton *)sender { } /** * 获取验证码 */ - (IBAction)getCoderBtn:(UIButton *)sender { if (sender.tag==0) {//获取验证码 }else{ //同意协议并登录 } } @end