From 18a7f9f40e5fab3bee5d4ac3d8fd0273dea052d6 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期日, 26 四月 2020 12:05:28 +0800
Subject: [PATCH] 先上传一个非最新的版本
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswSecondarySecurityForm.cs | 34 +++++++++++++---------------------
1 files changed, 13 insertions(+), 21 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswSecondarySecurityForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswSecondarySecurityForm.cs
index 3764cf8..cfcdc6e 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswSecondarySecurityForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/PswSecondarySecurityForm.cs
@@ -43,7 +43,7 @@
frameBack.Width = Application.GetRealWidth(965);
frameBack.Height = Application.GetRealHeight(1711);
frameBack.BackgroundColor = UserCenterColor.Current.White;
- frameBack.Radius = 6;
+ frameBack.Radius = (uint)Application.GetRealHeight(17);
bodyFrameLayout.AddChidren(frameBack);
//瀵嗙爜杈撳叆鎺т欢
@@ -62,10 +62,10 @@
};
pswControl.FinishInputEvent += (strPsw) =>
{
- if (UserCenterResourse.Option.PswAuthentication != strPsw)
+ if (UserCenterResourse.AccountOption.PswAuthentication != strPsw)
{
- UserCenterResourse.Option.PasswordInputCount--;
- if (UserCenterResourse.Option.PasswordInputCount <= 0)
+ UserCenterResourse.AccountOption.PasswordInputCount--;
+ if (UserCenterResourse.AccountOption.PasswordInputCount <= 0)
{
//绠$悊鍛樿韩浠介獙璇佸け璐�,璇烽噸鏂扮櫥褰�
string msg2 = Language.StringByID(R.MyInternationalizationString.uCheckAdministratorFailAndReload);
@@ -78,7 +78,7 @@
return;
}
//閲嶇疆鍓╀綑瀵嗙爜娆℃暟
- UserCenterResourse.Option.ResetPasswordCount();
+ UserCenterResourse.AccountOption.ResetPasswordCount();
//鐣岄潰鍏抽棴
this.CloseForm();
SuccessAction?.Invoke();
@@ -86,14 +86,10 @@
};
//鎵嬪娍寮�閿�
- var btnGesture = new NormalClickButton(frameBack.Width / 2, Application.GetRealHeight(127));
- btnGesture.oldBackgroundColor = 0xfff5f6fa;
- btnGesture.BackgroundColor = 0xfff5f6fa;
- btnGesture.Text = i_GestureText;
- btnGesture.TextColor = UserCenterColor.Current.TextColor1;
- btnGesture.Gravity = Gravity.BottomLeft;
+ var btnGesture = new BottomLeftClickButton(frameBack.Width / 2, Application.GetRealHeight(127));
frameBack.AddChidren(btnGesture);
- if (string.IsNullOrEmpty(UserCenterResourse.Option.GestureAuthentication) == true)
+ btnGesture.InitControl(i_GestureText);
+ if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == true)
{
//娌℃湁鍚敤鎵嬪娍寮�閿�
btnGesture.CanClick = false;
@@ -106,14 +102,10 @@
};
//Touch ID寮�閿�
- var btnTouch = new NormalClickButton(frameBack.Width / 2, Application.GetRealHeight(127));
- btnTouch.BackgroundColor = 0xff232323;
- btnTouch.oldBackgroundColor = 0xff232323;
- btnTouch.Text = i_TouchText;
- btnTouch.TextColor = UserCenterColor.Current.White;
- btnTouch.Gravity = Gravity.BottomRight;
+ var btnTouch = new BottomRightClickButton(frameBack.Width - btnGesture.Width, btnGesture.Height);
frameBack.AddChidren(btnTouch);
- if (UserCenterResourse.Option.FingerprintAuthentication == false)
+ btnTouch.InitControl(i_TouchText);
+ if (UserCenterResourse.AccountOption.FingerprintAuthentication == false)
{
//娌℃湁鍚敤Touch ID
btnTouch.CanClick = false;
@@ -146,13 +138,13 @@
TouchIDUtils.Instance.OnHDLTouchIDStateBackEvent = null;
//瀵嗙爜楠岃瘉
- if (string.IsNullOrEmpty(UserCenterResourse.Option.PswAuthentication) == false)
+ if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == false)
{
var form = new PswSecondarySecurityForm();
this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
}
//鎵嬪娍楠岃瘉
- else if (string.IsNullOrEmpty(UserCenterResourse.Option.GestureAuthentication) == false)
+ else if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == false)
{
var form = new PswGestureSecirityForm();
this.AddFromAndRemoveNowForm(form, i_TouchText, i_PasswordText, i_GestureText, SuccessAction);
--
Gitblit v1.8.0