JXForgetPwdVc.m 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. //
  2. // JXForgetPwdVc.m
  3. // shiku_im
  4. //
  5. // Created by 123 on 2020/5/26.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import "JXForgetPwdVc.h"
  9. #import "JXAccountPwd2.h"
  10. @interface JXForgetPwdVc ()
  11. @end
  12. @implementation JXForgetPwdVc
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. [self defineNavBar:@"忘记密码" andRinghtBtnImg:@""];
  16. UILabel *titleB=[[UILabel alloc]init];
  17. titleB.text=@"我们已经发送了验证码到你的手机";
  18. titleB.textColor=kRGBColor(132, 132, 132);
  19. titleB.numberOfLines=0;
  20. titleB.textColor=kRGBColor51;
  21. [self.view addSubview:titleB];
  22. [titleB mas_makeConstraints:^(MASConstraintMaker *make) {
  23. make.top.mas_equalTo(JX_SCREEN_TOP+20);
  24. make.centerX.mas_equalTo(self.view.mas_centerX);
  25. }];
  26. UILabel *phoneL=[[UILabel alloc]init];
  27. phoneL.text=@"15833751534";
  28. phoneL.font=[UIFont systemFontOfSize:20 weight:UIFontWeightMedium];
  29. phoneL.textColor=kRGBColor51;
  30. [self.view addSubview:phoneL];
  31. [phoneL mas_makeConstraints:^(MASConstraintMaker *make) {
  32. make.centerX.mas_equalTo(titleB.mas_centerX);
  33. make.top.mas_equalTo(titleB.mas_bottom).mas_offset(20);
  34. }];
  35. UILabel *codeL=[[UILabel alloc]init];
  36. codeL.text=@"验证码";
  37. codeL.font=[UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
  38. codeL.textColor=kRGBColor51;
  39. [self.view addSubview:codeL];
  40. [codeL mas_makeConstraints:^(MASConstraintMaker *make) {
  41. make.left.mas_equalTo(20);
  42. make.top.mas_equalTo(phoneL.mas_bottom).mas_offset(30);
  43. }];
  44. UITextField *codeTF=[[UITextField alloc]init];
  45. codeTF.text=@"45721";
  46. [self.view addSubview:codeTF];
  47. [codeTF mas_makeConstraints:^(MASConstraintMaker *make) {
  48. make.left.mas_equalTo(codeL.mas_right).mas_offset(10);
  49. make.right.mas_equalTo(-20);
  50. make.centerY.mas_equalTo(codeL.mas_centerY).mas_offset(0);
  51. make.height.mas_equalTo(40);
  52. }];
  53. UIView *line_view=[[UIView alloc]init];
  54. line_view.backgroundColor=kRGBColor(222, 29, 19);
  55. [self.view addSubview:line_view];
  56. [line_view mas_makeConstraints:^(MASConstraintMaker *make) {
  57. make.top.mas_equalTo(codeL.mas_bottom).mas_offset(15);
  58. make.left.mas_equalTo(20);
  59. make.right.mas_equalTo(-20);
  60. make.height.mas_equalTo(1);
  61. }];
  62. UILabel *noCodeL=[[UILabel alloc]init];
  63. noCodeL.text=@"收不到验证码?";
  64. noCodeL.textColor=kRGBColor(222, 29, 19);;
  65. [self.view addSubview:noCodeL];
  66. [noCodeL mas_makeConstraints:^(MASConstraintMaker *make) {
  67. make.top.mas_equalTo(line_view.mas_bottom).mas_offset(20);
  68. make.centerX.mas_equalTo(self.view.mas_centerX);
  69. }];
  70. UIButton *nextBtn=[[UIButton alloc]init];
  71. [nextBtn setTitle:@"下一步" forState:UIControlStateNormal];
  72. nextBtn.backgroundColor=kRGBColor(165, 23, 23);
  73. [self.view addSubview:nextBtn];
  74. [nextBtn addTarget:self action:@selector(nexBtnClick) forControlEvents:UIControlEventTouchUpInside];
  75. [nextBtn mas_makeConstraints:^(MASConstraintMaker *make) {
  76. make.top.mas_equalTo(noCodeL.mas_bottom).mas_offset(20);
  77. make.left.mas_equalTo(20);
  78. make.right.mas_equalTo(-20);
  79. make.height.mas_equalTo(44);
  80. }];
  81. }
  82. - (void)nexBtnClick{
  83. JXAccountPwd2 *vc=[JXAccountPwd2 new];
  84. [g_navigation pushViewController:vc animated:YES];
  85. }
  86. @end