From dc0309e64f02227d8e1468b7326c07955f804612 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期三, 22 六月 2022 11:22:18 +0800 Subject: [PATCH] 修改引用路径 --- ZigbeeApp/Shared/Phone/UserCenter/Password/ForgotAccountPasswordForm.cs | 34 ++++++++++++++++------------------ 1 files changed, 16 insertions(+), 18 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/ForgotAccountPasswordForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/ForgotAccountPasswordForm.cs index 9c535f6..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); @@ -81,7 +81,7 @@ var btnCode = new NormalViewControl(302, 127, true); btnCode.X = rowPhone.Right + Application.GetRealWidth(35); btnCode.Y = Application.GetRealHeight(23); - btnCode.Radius = (uint)Application.GetMinRealAverage(4); + btnCode.RadiusEx = 12; btnCode.TextID = R.MyInternationalizationString.uGetVerificationCode; btnCode.TextColor = UserCenterColor.Current.White; btnCode.BackgroundColor = UserCenterColor.Current.TextOrangeColor; @@ -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); @@ -154,8 +154,6 @@ if (frameTran.Visible == false) { frameTran.Visible = true; - //鍔ㄧ敾鏁堟灉 - frameAnimate.Animate = Animate.UpToDown; } }; } @@ -168,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; @@ -199,7 +197,7 @@ System.Threading.Thread.Sleep(1000); if (waitime == 0) { - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { if (btnCode != null) { @@ -212,13 +210,13 @@ }); break; } - Application.RunOnMainThread(() => + HdlThreadLogic.Current.RunMain(() => { if (btnCode != null) { btnCode.Text = waitime + "s" + repeat; } - }); + }, ShowErrorMode.NO); } }); } @@ -269,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