This commit is contained in:
启星
2025-08-15 18:39:24 +08:00
parent e33abc7e33
commit 4b577a31f0
449 changed files with 520 additions and 1457 deletions

View File

@@ -69,21 +69,25 @@
}
-(void)initSubViews{
// self.logoImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@""]];
// [self.view addSubview:self.logoImageView];
self.backBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, kSafeAreaTop+5, 40, 40)];
[self.backBtn setImage:[UIImage imageNamed:@"back"] forState:(UIControlStateNormal)];
[self.backBtn addTarget:self action:@selector(backAction) forControlEvents:(UIControlEventTouchUpInside)];
[self.view addSubview:self.backBtn];
self.isCodeLogin = YES;
self.welcomeLabel = [[UILabel alloc] initWithFrame:CGRectMake(16, kSafeAreaTop+86, SCREEN_WIDTH-32, 36)];
self.welcomeLabel.font = [UIFont boldSystemFontOfSize:24];
self.welcomeLabel.text = QXText(@"欢迎来到羽声");
self.welcomeLabel.textColor = QXConfig.textColor;
[self.view addSubview:self.welcomeLabel];
// self.isCodeLogin = YES;
// self.welcomeLabel = [[UILabel alloc] initWithFrame:CGRectMake(16, kSafeAreaTop+86, SCREEN_WIDTH-32, 36)];
// self.welcomeLabel.font = [UIFont boldSystemFontOfSize:24];
//// self.welcomeLabel.text = QXText(@"欢迎来到秘地");
//// welcome_midi
// self.welcomeLabel.textColor = QXConfig.textColor;
// [self.view addSubview:self.welcomeLabel];
self.subTitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(16, self.welcomeLabel.bottom+20, SCREEN_WIDTH-32, 27)];
self.logoImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"welcome_midi"]];
self.logoImageView.frame = CGRectMake(16, NavContentHeight+19, 170, 120);
[self.view addSubview:self.logoImageView];
self.subTitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(16, self.logoImageView.bottom+15, SCREEN_WIDTH-32, 27)];
self.subTitleLabel.font = [UIFont boldSystemFontOfSize:18];
self.subTitleLabel.text = QXText(@"验证码登录");
self.subTitleLabel.textColor = QXConfig.textColor;
@@ -91,19 +95,19 @@
self.accountTextField = [[QXLoginTextField alloc] initWithFrame:CGRectMake(16, self.subTitleLabel.bottom+16, SCREEN_WIDTH-32, 44) type:(LoginTextTypeAccount)];
self.accountTextField.backgroundColor = RGB16(0xEFF2F8);
[self.accountTextField addRoundedCornersWithRadius:11];
self.accountTextField.backgroundColor = RGB16(0xF0EEF7);
[self.accountTextField addRoundedCornersWithRadius:22];
[self.view addSubview:self.accountTextField];
self.codeTextField = [[QXLoginTextField alloc] initWithFrame:CGRectMake(16, self.accountTextField.bottom+16, SCREEN_WIDTH-32, 44) type:(LoginTextTypeCode)];
self.codeTextField.backgroundColor = RGB16(0xEFF2F8);
[self.codeTextField addRoundedCornersWithRadius:11];
self.codeTextField.backgroundColor = RGB16(0xF0EEF7);
[self.codeTextField addRoundedCornersWithRadius:22];
self.codeTextField.delegate = self;
[self.view addSubview:self.codeTextField];
self.passwordTextField = [[QXLoginTextField alloc] initWithFrame:CGRectMake(16, self.accountTextField.bottom+16, SCREEN_WIDTH-32, 44) type:(LoginTextTypePassword)];
self.passwordTextField.backgroundColor = RGB16(0xEFF2F8);
[self.passwordTextField addRoundedCornersWithRadius:11];
self.passwordTextField.backgroundColor = RGB16(0xF0EEF7);
[self.passwordTextField addRoundedCornersWithRadius:22];
[self.view addSubview:self.passwordTextField];
self.passwordTextField.hidden = YES;
@@ -244,33 +248,33 @@
model.preferredStatusBarStyle = UIStatusBarStyleDarkContent;
model.logoImage = [UIImage imageNamed:@"login_logo"];
model.logoFrameBlock = ^CGRect(CGSize screenSize, CGSize superViewSize, CGRect frame) {
frame.origin = CGPointMake((SCREEN_WIDTH - 240) * .5, 75 + kSafeAreaTop);
frame.size = CGSizeMake(240, 170);
frame.origin = CGPointMake((SCREEN_WIDTH - 88) * .5, 150+ kSafeAreaTop);
frame.size = CGSizeMake(88, 88);
return frame;
};
model.sloganText = [[NSAttributedString alloc] initWithString:@"本机号码" attributes:@{NSForegroundColorAttributeName : RGB16(0x666666),NSFontAttributeName : [UIFont systemFontOfSize:12]}];
model.sloganFrameBlock = ^CGRect(CGSize screenSize, CGSize superViewSize, CGRect frame) {
frame.origin.y = 329+kSafeAreaTop+40;
frame.origin.y = 280+kSafeAreaTop+40;
return frame;
};
model.numberColor = QXConfig.textColor;
model.numberFont = [UIFont boldSystemFontOfSize:30];
model.numberFrameBlock = ^CGRect(CGSize screenSize, CGSize superViewSize, CGRect frame) {
frame.origin.y = kSafeAreaTop+329;
frame.origin.y = kSafeAreaTop+280;
return frame;
};
model.loginBtnText = [[NSAttributedString alloc] initWithString:@"一键登录" attributes:@{NSForegroundColorAttributeName : QXConfig.textColor,NSFontAttributeName : [UIFont systemFontOfSize:15]}];
model.loginBtnText = [[NSAttributedString alloc] initWithString:@"一键登录" attributes:@{NSForegroundColorAttributeName : QXConfig.btnTextColor,NSFontAttributeName : [UIFont systemFontOfSize:15]}];
model.loginBtnFrameBlock = ^CGRect(CGSize screenSize, CGSize superViewSize, CGRect frame) {
frame.origin.y = 427+kSafeAreaTop;
frame.origin.y = 380+kSafeAreaTop;
frame.origin.x = 38;
frame.size = CGSizeMake(SCREEN_WIDTH-76, 42);
return frame;
};
model.loginBtnBgImgs = @[[UIImage imageNamed:@"login_btn_bg"],[UIImage imageNamed:@"login_btn_bg"],[UIImage imageNamed:@"login_btn_bg"]];
model.loginBtnBgImgs = @[[[UIImage imageNamed:@"login_btn_bg"] imageByTintColor:QXConfig.themeColor],[[UIImage imageNamed:@"login_btn_bg"]imageByTintColor:QXConfig.themeColor],[[UIImage imageNamed:@"login_btn_bg"]imageByTintColor:QXConfig.themeColor]];
model.changeBtnTitle = [[NSAttributedString alloc] initWithString:@"其他手机号登录" attributes:@{NSForegroundColorAttributeName : QXConfig.textColor,NSFontAttributeName : [UIFont systemFontOfSize:15]}];
model.changeBtnFrameBlock = ^CGRect(CGSize screenSize, CGSize superViewSize, CGRect frame) {
frame.origin.y = 427+kSafeAreaTop+12+42;
frame.origin.y = 380+kSafeAreaTop+12+42;
frame.origin.x = 38;
frame.size = CGSizeMake(SCREEN_WIDTH-76, 42);
return frame;
@@ -284,7 +288,7 @@
model.privacyTwo = @[[NSString stringWithFormat:@"%@",QXText(@"《隐私政策》")],[NSString stringWithFormat:@"%@%@?id=4",ServerUrl,QXAppProtocol]];
model.privacyOperatorPreText = @"《";
model.privacyOperatorSufText = @"》";
model.privacyColors = @[RGB16(0x333333),RGB16(0xFF8ACC)];
model.privacyColors = @[RGB16(0x333333),QXConfig.themeColor];
model.privacyAlignment = NSTextAlignmentCenter;