123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- //
- // JXForgetPwdVc.m
- // shiku_im
- //
- // Created by 123 on 2020/5/26.
- // Copyright © 2020 Reese. All rights reserved.
- //
- #import "JXForgetPwdVc.h"
- #import "JXAccountPwd2.h"
- @interface JXForgetPwdVc ()
- @end
- @implementation JXForgetPwdVc
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self defineNavBar:@"忘记密码" andRinghtBtnImg:@""];
-
- UILabel *titleB=[[UILabel alloc]init];
- titleB.text=@"我们已经发送了验证码到你的手机";
- titleB.textColor=kRGBColor(132, 132, 132);
- titleB.numberOfLines=0;
- titleB.textColor=kRGBColor51;
- [self.view addSubview:titleB];
- [titleB mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(JX_SCREEN_TOP+20);
- make.centerX.mas_equalTo(self.view.mas_centerX);
- }];
-
- UILabel *phoneL=[[UILabel alloc]init];
- phoneL.text=@"15833751534";
- phoneL.font=[UIFont systemFontOfSize:20 weight:UIFontWeightMedium];
- phoneL.textColor=kRGBColor51;
- [self.view addSubview:phoneL];
- [phoneL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.centerX.mas_equalTo(titleB.mas_centerX);
- make.top.mas_equalTo(titleB.mas_bottom).mas_offset(20);
- }];
-
-
- UILabel *codeL=[[UILabel alloc]init];
- codeL.text=@"验证码";
- codeL.font=[UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
- codeL.textColor=kRGBColor51;
- [self.view addSubview:codeL];
- [codeL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.mas_equalTo(20);
- make.top.mas_equalTo(phoneL.mas_bottom).mas_offset(30);
- }];
-
-
- UITextField *codeTF=[[UITextField alloc]init];
- codeTF.text=@"45721";
- [self.view addSubview:codeTF];
- [codeTF mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.mas_equalTo(codeL.mas_right).mas_offset(10);
- make.right.mas_equalTo(-20);
- make.centerY.mas_equalTo(codeL.mas_centerY).mas_offset(0);
- make.height.mas_equalTo(40);
- }];
-
-
- UIView *line_view=[[UIView alloc]init];
- line_view.backgroundColor=kRGBColor(222, 29, 19);
- [self.view addSubview:line_view];
- [line_view mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(codeL.mas_bottom).mas_offset(15);
- make.left.mas_equalTo(20);
- make.right.mas_equalTo(-20);
- make.height.mas_equalTo(1);
- }];
-
-
- UILabel *noCodeL=[[UILabel alloc]init];
- noCodeL.text=@"收不到验证码?";
- noCodeL.textColor=kRGBColor(222, 29, 19);;
- [self.view addSubview:noCodeL];
- [noCodeL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(line_view.mas_bottom).mas_offset(20);
- make.centerX.mas_equalTo(self.view.mas_centerX);
- }];
-
-
- UIButton *nextBtn=[[UIButton alloc]init];
- [nextBtn setTitle:@"下一步" forState:UIControlStateNormal];
- nextBtn.backgroundColor=kRGBColor(165, 23, 23);
- [self.view addSubview:nextBtn];
- [nextBtn addTarget:self action:@selector(nexBtnClick) forControlEvents:UIControlEventTouchUpInside];
- [nextBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(noCodeL.mas_bottom).mas_offset(20);
- make.left.mas_equalTo(20);
- make.right.mas_equalTo(-20);
- make.height.mas_equalTo(44);
- }];
-
-
- }
-
- - (void)nexBtnClick{
-
- JXAccountPwd2 *vc=[JXAccountPwd2 new];
-
- [g_navigation pushViewController:vc animated:YES];
- }
- @end
|