|
|
@@ -1,12 +1,11 @@
|
|
|
//
|
|
|
// inputPWDViewController.m
|
|
|
-// 隐私保护
|
|
|
+ //
|
|
|
//
|
|
|
-// Created by xd h on 2023/10/12.
|
|
|
+// Created David on 2023/10/12.
|
|
|
//
|
|
|
|
|
|
#import "inputPWDViewController.h"
|
|
|
-#import "connectDeviceManager.h"
|
|
|
#import "RSATool.h"
|
|
|
#import "forgetPwdViewController.h"
|
|
|
#import "SceneDelegate.h"
|
|
|
@@ -181,7 +180,7 @@
|
|
|
//忘记密码按钮
|
|
|
UIButton *forgetPwdBut = [[UIButton alloc] init];
|
|
|
[forgetPwdBut setTitle:NSLocalizedString(@"input_pwd_forget_pwd",nil) forState:(UIControlStateNormal)];
|
|
|
- [forgetPwdBut setTitleColor:[UIColor hwColor:@"#13B2EB" alpha:1.0] forState:(UIControlStateNormal)];
|
|
|
+ [forgetPwdBut setTitleColor:HWFFD315Color forState:(UIControlStateNormal)];
|
|
|
[forgetPwdBut addTarget:self action:@selector(forgetPwdFun) forControlEvents:UIControlEventTouchUpInside];
|
|
|
//forgetPwdBut.backgroundColor = [UIColor redColor];
|
|
|
[self.view addSubview:forgetPwdBut];
|
|
|
@@ -259,7 +258,7 @@
|
|
|
/*OK*/
|
|
|
UIButton *keyBoardBtnOK = [[UIButton alloc] init];
|
|
|
[keyBoardBtnOK setBackgroundColor:[UIColor clearColor]];
|
|
|
- [keyBoardBtnOK setTitleColor:HW13B2EBColor forState:(UIControlStateNormal)];
|
|
|
+ [keyBoardBtnOK setTitleColor:HWFFD315Color forState:(UIControlStateNormal)];
|
|
|
[keyBoardBtnOK.titleLabel setFont:[UIFont boldSystemFontOfSize:30.f]];
|
|
|
[keyBoardBtnOK setTitle:@"OK" forState:(UIControlStateNormal)];
|
|
|
[keyBoardBtnOK addTarget:self action:@selector(keyBoardBtnOKPressed) forControlEvents:(UIControlEventTouchUpInside)];
|
|
|
@@ -347,15 +346,15 @@
|
|
|
gl.frame = CGRectMake(0,0,250,40.f);
|
|
|
gl.startPoint = CGPointMake(0, 0.5);
|
|
|
gl.endPoint = CGPointMake(1, 0.5);
|
|
|
- gl.colors = @[(__bridge id)HW0CDEFDColor.CGColor, (__bridge id)HW058DFBColor.CGColor];
|
|
|
+ gl.colors = @[(__bridge id)[UIColor hwColor:@"#FFD315"].CGColor, (__bridge id)[UIColor hwColor:@"#FFD315"].CGColor];
|
|
|
gl.locations = @[@(0), @(1.0f)];
|
|
|
|
|
|
[unableBtn.layer addSublayer:gl];
|
|
|
[unableBtn setUserInteractionEnabled:NO];
|
|
|
[unableBtn setTitle:NSLocalizedString(@"guide_set_pwd_guide",nil) forState:(UIControlStateNormal)];
|
|
|
- [unableBtn setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
|
|
|
+ [unableBtn setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
|
|
|
[unableBtn.titleLabel setFont:[UIFont systemFontOfSize:14.f]];
|
|
|
- [unableBtn.layer setCornerRadius:8.f];
|
|
|
+ [unableBtn.layer setCornerRadius:20.f];
|
|
|
unableBtn.clipsToBounds = YES;
|
|
|
[bgView addSubview:unableBtn];
|
|
|
[unableBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
@@ -413,58 +412,6 @@
|
|
|
[self verifyPwdFun:pwd];
|
|
|
return;
|
|
|
|
|
|
-
|
|
|
-// //是否已经有密码了 有就是输入密码 没有就是设置密码
|
|
|
-// NSString *curPwd = ksharedAppDelegate.DeviceThirdIdMod.data.password;
|
|
|
-//
|
|
|
-// NSString*desPwdStr = [RSATool AES128Decrypt:curPwd key:AESCODEKEEYY];
|
|
|
-//
|
|
|
-// if([desPwdStr isEqualToString:pwd]){
|
|
|
-// [connectDeviceManager shareInstance].isFirstInputPwdDone = YES;
|
|
|
-// if(_isQRCodeType){
|
|
|
-// [[NSNotificationCenter defaultCenter] postNotificationName:GuideOkNotification object:nil];
|
|
|
-// }
|
|
|
-//
|
|
|
-// dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
-// [[NSNotificationCenter defaultCenter] postNotificationName:ShowImgAndVoiceNotification object:nil];
|
|
|
-// });
|
|
|
-//
|
|
|
-// //view 加载在windows上
|
|
|
-// [self.view removeFromSuperview];
|
|
|
-//
|
|
|
-// }
|
|
|
-// else{
|
|
|
-// [self deleteBoardBtnPressed];
|
|
|
-// [self deleteBoardBtnPressed];
|
|
|
-// [self deleteBoardBtnPressed];
|
|
|
-// [self deleteBoardBtnPressed];
|
|
|
-//
|
|
|
-// //[[iToast makeText:NSLocalizedString(@"logo_input_pwd_fail",nil)] show];
|
|
|
-// //[[iToast makeText:@"111"] show];
|
|
|
-//
|
|
|
-// _pwdErrorTip = [[UILabel alloc] init];
|
|
|
-// _pwdErrorTip.text = NSLocalizedString(@"logo_input_pwd_fail",nil);
|
|
|
-// _pwdErrorTip.textAlignment = NSTextAlignmentCenter;
|
|
|
-// _pwdErrorTip.textColor = [UIColor whiteColor];
|
|
|
-// _pwdErrorTip.backgroundColor = [UIColor hwColor:@"000000" alpha:0.7];
|
|
|
-// [self.view addSubview:_pwdErrorTip];
|
|
|
-//
|
|
|
-// _pwdErrorTip.layer.masksToBounds = YES;
|
|
|
-// _pwdErrorTip.layer.cornerRadius = 10;
|
|
|
-//
|
|
|
-// [_pwdErrorTip mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
-// make.center.mas_equalTo(0);
|
|
|
-// make.width.mas_equalTo(200);
|
|
|
-// make.height.mas_equalTo(40.f);
|
|
|
-// }];
|
|
|
-//
|
|
|
-// ///
|
|
|
-// [NSTimer scheduledTimerWithTimeInterval:3 repeats:NO block:^(NSTimer * _Nonnull timer) {
|
|
|
-//
|
|
|
-// [self->_pwdErrorTip removeFromSuperview];
|
|
|
-// self->_pwdErrorTip = nil;
|
|
|
-// }];
|
|
|
-// }
|
|
|
}
|
|
|
}
|
|
|
|