优化提交
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
typedef NS_ENUM(NSInteger) {
|
||||
QXPasswordViewTypeChirldMode = 0,
|
||||
QXPasswordViewTypeChirldModeTwice,
|
||||
QXPasswordViewTypeRoom
|
||||
}QXPasswordViewType;
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -102,17 +102,17 @@ CGFloat labelHeight = 63;
|
||||
make.centerX.centerY.equalTo(self.label1);
|
||||
make.width.height.mas_equalTo(1);
|
||||
}];
|
||||
self.forgotBtn = [[UIButton alloc] init];
|
||||
[self.forgotBtn setTitleColor:QXConfig.themeColor forState:(UIControlStateNormal)];
|
||||
self.forgotBtn.titleLabel.font = [UIFont systemFontOfSize:12];
|
||||
[self.forgotBtn setTitle:[NSString stringWithFormat:@"%@?%@",QXText(@"忘记密码"),QXText(@"请联系客服")] forState:(UIControlStateNormal)];
|
||||
[self.forgotBtn addTarget:self action:@selector(forgotAction) forControlEvents:(UIControlEventTouchUpInside)];
|
||||
[self addSubview:self.forgotBtn];
|
||||
[self.forgotBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.equalTo(self.label1.mas_bottom).offset(10);
|
||||
make.height.mas_equalTo(38);
|
||||
make.centerX.equalTo(self);
|
||||
}];
|
||||
// self.forgotBtn = [[UIButton alloc] init];
|
||||
// [self.forgotBtn setTitleColor:QXConfig.themeColor forState:(UIControlStateNormal)];
|
||||
// self.forgotBtn.titleLabel.font = [UIFont systemFontOfSize:12];
|
||||
// [self.forgotBtn setTitle:[NSString stringWithFormat:@"%@?%@",QXText(@"忘记密码"),QXText(@"请联系客服")] forState:(UIControlStateNormal)];
|
||||
// [self.forgotBtn addTarget:self action:@selector(forgotAction) forControlEvents:(UIControlEventTouchUpInside)];
|
||||
// [self addSubview:self.forgotBtn];
|
||||
// [self.forgotBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
// make.top.equalTo(self.label1.mas_bottom).offset(10);
|
||||
// make.height.mas_equalTo(38);
|
||||
// make.centerX.equalTo(self);
|
||||
// }];
|
||||
}
|
||||
-(void)forgotAction{
|
||||
|
||||
@@ -201,6 +201,10 @@ CGFloat labelHeight = 63;
|
||||
self.titleLabel.text = QXText(@"请输入监护密码");
|
||||
}
|
||||
break;
|
||||
case QXPasswordViewTypeChirldModeTwice:{
|
||||
self.titleLabel.text = QXText(@"请确认监护密码");
|
||||
}
|
||||
break;
|
||||
case QXPasswordViewTypeRoom:{
|
||||
self.titleLabel.text = QXText(@"请输入房间密码");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user