From 2029e64ec0491f7e511dc15bffaf821bfbabe2de Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 20 七月 2020 14:10:22 +0800
Subject: [PATCH] 上传一个很特别的新版本
---
ZigbeeApp/Shared/Phone/UserCenter/Password/ForgotAccountPasswordForm.cs | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/ForgotAccountPasswordForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/ForgotAccountPasswordForm.cs
index b58e19e..e526f3d 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Password/ForgotAccountPasswordForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/ForgotAccountPasswordForm.cs
@@ -57,7 +57,7 @@
//鍙宠竟鍋忕Щ閲�->澧炲姞瀹藉害
rowPhone.RightOffset = -ControlCommonResourse.XXLeft;
rowPhone.Y = Application.GetRealHeight(23);
- rowPhone.Width = Application.GetMinRealAverage(628);
+ rowPhone.Width = this.GetPictrueRealSize(628);
bodyFrameLayout.AddChidren(rowPhone);
//璇疯緭鍏ラ偖绠辨垨鎵嬫満鍙�
string phoneValue = string.IsNullOrEmpty(UserCenterResourse.UserInfo.Phone) == true ? string.Empty : "+" + UserCenterResourse.UserInfo.AreaCode + " " + UserCenterResourse.UserInfo.Phone;
@@ -70,7 +70,7 @@
var rowCode = new FrameRowControl();
rowCode.Y = rowPhone.Bottom + Application.GetRealHeight(20);
- rowCode.Width = Application.GetMinRealAverage(628);
+ rowCode.Width = this.GetPictrueRealSize(628);
bodyFrameLayout.AddChidren(rowCode);
//璇疯緭鍏ラ獙璇佺爜
var txtCode = rowCode.AddLeftInput("", 600);
@@ -110,7 +110,7 @@
}
//鏄剧ず鍙互鍒囨崲閭->涓�涓彲浠ラ伄浣廈ody鐨勪笢瑗�
- var frameTran = new FrameLayoutControl();
+ var frameTran = new FrameLayoutStatuControl();
frameTran.UseClickStatu = false;
frameTran.BackgroundColor = UserCenterColor.Current.Transparent;
bodyFrameLayout.AddChidren(frameTran);
@@ -122,11 +122,11 @@
var frameList = new FrameLayout();
frameList.X = ControlCommonResourse.XXLeft - Application.GetRealWidth(17);
frameList.Y = rowPhone.Bottom - ControlCommonResourse.BottomLineHeight - 1;
- frameList.Width = Application.GetMinRealAverage(628);
- frameList.Height = Application.GetMinRealAverage(176);
+ frameList.Width = this.GetPictrueRealSize(628);
+ frameList.Height = this.GetPictrueRealSize(176);
frameTran.AddChidren(frameList);
//鍔ㄧ敾鐢�
- var frameAnimate = new FrameLayoutControl();
+ var frameAnimate = new FrameLayoutStatuControl();
frameAnimate.UseClickStatu = false;
frameList.AddChidren(frameAnimate);
@@ -134,8 +134,8 @@
btnPic.UnSelectedImagePath = "Item/ForgotPswList.png";
frameAnimate.AddChidren(btnPic);
var btnEmail = new NormalViewControl(450, 58, true);
- btnEmail.X = Application.GetMinRealAverage(46);
- btnEmail.Y = Application.GetMinRealAverage(32);
+ btnEmail.X = this.GetPictrueRealSize(46);
+ btnEmail.Y = this.GetPictrueRealSize(32);
btnEmail.TextColor = UserCenterColor.Current.TextGrayColor3;
btnEmail.Text = UserCenterResourse.UserInfo.Email;
frameAnimate.AddChidren(btnEmail);
@@ -166,13 +166,13 @@
/// 鍙戦�侀獙璇佺爜
/// </summary>
/// <param name="btnCode"></param>
- private async void SetVerificationCode(NormalViewControl btnCode)
+ private void SetVerificationCode(NormalViewControl btnCode)
{
string account = this.strPhoneEmail.StartsWith("+") == true ? UserCenterResourse.UserInfo.Phone : UserCenterResourse.UserInfo.Email;
var sendCodePra = new SendCodePra();
sendCodePra.Account = account;
sendCodePra.AreaCode = Convert.ToInt32(UserCenterResourse.UserInfo.AreaCode);
- bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ForgetPassword", false, sendCodePra);
+ bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ForgetPassword", false, sendCodePra);
if (flage == false)
{
return;
@@ -197,7 +197,7 @@
System.Threading.Thread.Sleep(1000);
if (waitime == 0)
{
- Application.RunOnMainThread(() =>
+ HdlThreadLogic.Current.RunMain(() =>
{
if (btnCode != null)
{
@@ -210,13 +210,13 @@
});
break;
}
- Application.RunOnMainThread(() =>
+ HdlThreadLogic.Current.RunMain(() =>
{
if (btnCode != null)
{
btnCode.Text = waitime + "s" + repeat;
}
- });
+ }, ShowErrorMode.NO);
}
});
}
@@ -267,14 +267,14 @@
/// 楠岃瘉楠岃瘉鐮�
/// </summary>
/// <returns></returns>
- private async void CheckVerificationCode(TextInputControl txtCode, string code)
+ private void CheckVerificationCode(TextInputControl txtCode, string code)
{
string account = this.strPhoneEmail.StartsWith("+") == true ? UserCenterResourse.UserInfo.Phone : UserCenterResourse.UserInfo.Email;
var checkCodePra = new CheckCodePra();
checkCodePra.Code = code;
checkCodePra.Account = account;
- bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra);
+ bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra);
if (flage == false)
{
//楠岃瘉鐮侀敊璇紝璇烽噸鏂拌緭鍏�
--
Gitblit v1.8.0