From 557c8c4f75aafc97533721766272410042440d34 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期六, 21 八月 2021 11:00:29 +0800
Subject: [PATCH] 安防功能
---
HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs | 80 ++++++++++++++++++++++++---------------
1 files changed, 49 insertions(+), 31 deletions(-)
diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
index 01d6efe..27c7bdd 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResetAccountPassword/ResetPasswordVerificationCodePage.cs
@@ -282,7 +282,8 @@
/// </summary>
void LoadEvent_VerificationEntryEvent()
{
- EventHandler<MouseEventArgs> clickEvent = (sender, e) => {
+ EventHandler<MouseEventArgs> clickEvent = (sender, e) =>
+ {
et.Foucs = true;
var etCode = et.Text;
switch (etCode.Length)
@@ -380,7 +381,8 @@
btnNum5.MouseUpEventHandler = clickEvent;
btnNum6.MouseUpEventHandler = clickEvent;
- et.TextChangeEventHandler = (sender, e) => {
+ et.TextChangeEventHandler = (sender, e) =>
+ {
var etCode = et.Text;
switch (etCode.Length)
{
@@ -559,7 +561,7 @@
{ IsBackground = true }.Start();
}
-
+
/// <summary>
/// 閲嶅彂楠岃瘉鐮佺瓑寰呯嚎绋�
/// </summary>
@@ -567,9 +569,15 @@
{
btnResend.IsSelected = false;
int time = 60;
- try
+
+ //鍔犺浇Loading鏁堟灉
+ var waitPage = new Loading();
+ bodyView.AddChidren(waitPage);
+ waitPage.Start(Language.StringByID(StringId.PleaseWait));
+
+ new Thread(() =>
{
- new Thread(() =>
+ try
{
//2.2 鑾峰彇楠岃瘉鐮�
ResponsePackNew resultObj;
@@ -579,7 +587,7 @@
}
else
{
- resultObj = new DAL.Server.HttpServerRequest().VerificationCodeSend(VerifyType.FIND_PASSWORD, account, true, UserInfo.Current.areaCode.ToString());
+ resultObj = new DAL.Server.HttpServerRequest().VerificationCodeSend(VerifyType.FIND_PASSWORD, account, true, UserInfo.Current.areaCode.ToString());
}
if (resultObj.Code != StateCode.SUCCESS)
@@ -594,36 +602,46 @@
}
else
{
- //鍙戦�佹垚鍔燂紝寮�濮嬪�掕鏃�
- Application.RunOnMainThread(() =>
+ new Thread(() =>
{
- btnTip.TextID = StringId.VerificationCodePrompt;
- });
-
- while (time > 0)
- {
- time--;
+ //鍙戦�佹垚鍔燂紝寮�濮嬪�掕鏃�
Application.RunOnMainThread(() =>
{
- btnResend.Text = time.ToString() + "s";
+ btnTip.TextID = StringId.VerificationCodePrompt;
});
- Thread.Sleep(1000);
- }
- Application.RunOnMainThread(() =>
- {
- btnResend.IsSelected = true;
- btnResend.TextID = StringId.GetVerificationCode;
- });
+
+ while (time > 0)
+ {
+ time--;
+ Application.RunOnMainThread(() =>
+ {
+ btnResend.Text = time.ToString() + "s";
+ });
+ Thread.Sleep(1000);
+ }
+ Application.RunOnMainThread(() =>
+ {
+ btnResend.IsSelected = true;
+ btnResend.TextID = StringId.GetVerificationCode;
+ });
+ })
+ { IsBackground = true }.Start();
}
- })
- { IsBackground = true }.Start();
- }
-
- catch { }
- finally
- {
-
- };
+ }
+ catch { }
+ finally
+ {
+ Application.RunOnMainThread(() =>
+ {
+ if (waitPage != null)
+ {
+ waitPage.RemoveFromParent();
+ waitPage = null;
+ }
+ });
+ }
+ })
+ { IsBackground = true }.Start();
}
/// <summary>
--
Gitblit v1.8.0