From af1cb3ecd0f4b0589e00b28f7f9edccf39e6e12b Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 10 九月 2020 16:15:11 +0800 Subject: [PATCH] 202009101 --- HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockPasswordPage.cs | 82 +++++++++++++++++++++++++++++++++++++++- 1 files changed, 79 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockPasswordPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockPasswordPage.cs index 56fc6e1..caaa650 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockPasswordPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockPasswordPage.cs @@ -7,6 +7,7 @@ public partial class AppUnlockPasswordPage : FrameLayout { FrameLayout bodyView; + EditText etPassword; string passwrod = ""; string oldPasswrod = ""; @@ -17,7 +18,6 @@ oldPasswrod = pw; backAction = action; } - /// <summary> /// @@ -132,7 +132,7 @@ bodyView.AddChidren(btnTipError); - var etPassword = new EditText() + etPassword = new EditText() { Y = Application.GetRealWidth(100), Height = Application.GetRealWidth(0), @@ -205,6 +205,7 @@ { if (passwrod == oldPasswrod) { + //MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); this.RemoveFromParent(); backAction(); return; @@ -229,7 +230,7 @@ } if (MainPage.LoginUser.appUnlockType.Contains("1")) { - MainPage.LoginUser.appUnlockType.Remove("1"); + MainPage.LoginUser.appUnlockType =new System.Collections.Generic.List<string>();//.Remove("1"); MainPage.LoginUser.appUnlockPasswrod = ""; MainPage.LoginUser.SaveUserInfo(); this.RemoveFromParent(); @@ -342,6 +343,81 @@ btnTipIcon4.MouseUpEventHandler = eventHandler; etPassword.Foucs = true; + + + if (optionType == "3" || optionType == "5" || optionType == "6" || optionType == "7") + { + Button btnLoginAccountVerify = new Button() + { + Y = Application.GetRealHeight(517), + Height = Application.GetRealHeight(60), + TextAlignment = TextAlignment.Center, + TextSize = CSS_FontSize.TextFontSize, + TextColor = CSS_Color.MainColor, + TextID = StringId.EnterLoginPasswordVerification, + }; + bodyView.AddChidren(btnLoginAccountVerify); + + btnLoginAccountVerify.MouseUpEventHandler = (sender, e) => + { + if (optionType == "7") + { + MainPage.GoLoginPage(MainPage.LoginUser); + } + else + { + Action<string> action = (pw) => { + var loginResult = new DAL.Server.HttpServerRequest().LoginByPassword(MainPage.LoginUser.accountString, pw); + if (loginResult.StateCode.ToUpper() == "SUCCESS") + { + MainPage.LoginUser.appUnlockPasswrod = ""; + MainPage.LoginUser.appUnlockType = new System.Collections.Generic.List<string>(); + MainPage.LoginUser.SaveUserInfo(); + this.RemoveFromParent(); + backAction(); + } + //鐧诲綍澶辫触 + else + { + string tipStr = "Sever erorr"; + switch (loginResult.StateCode) + { + case "ValidCodeAndPhoneNoEqual": + tipStr = Language.StringByID(StringId.VerificationCodeError); + break; + case "USERNAMEORPWDERROR": + tipStr = Language.StringByID(StringId.LoginFailed_AccountOrPasswordError); + break; + case "ACCOUNTNOEXISTS": + tipStr = Language.StringByID(StringId.ACCOUNTNOEXISTS); + break; + case "NoRecord": + tipStr = Language.StringByID(StringId.PlsGetTheVerificationCode); + break; + case "Self:Net_Error": + tipStr = Language.StringByID(StringId.NetworkAnomaly); + break; + } + //璐﹀彿鎴栬�呭瘑鐮侀敊璇� + Application.RunOnMainThread(() => + { + //鎻愮ず鍘熷洜 + var tip = new Tip() + { + Text = tipStr, + CloseTime = 1, + Direction = AMPopTipDirection.None + }; + tip.Show(bodyView); + }); + } + + }; + new PublicAssmebly().LoadDialog_EditParater(StringId.EnterLoginPasswordVerification, "", action, StringId.PlsEntryPassword, 0, new System.Collections.Generic.List<string>(), true); + } + }; + } + } } } -- Gitblit v1.8.0