From 54c202bd4867092fca2bc6f96bec0cfd1056a46a Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期一, 06 十一月 2023 11:24:20 +0800 Subject: [PATCH] 2023年11月06日11:23:46 --- HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs | 40 ++++++++++++++-------------------------- 1 files changed, 14 insertions(+), 26 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs index c64c35c..c4df7f8 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/CancelAccountPage.cs @@ -1,7 +1,7 @@ 锘縰sing System; using Shared; using HDL_ON.UI.CSS; -using Xamarin.Essentials; +//using Xamarin.Essentials; using HDL_ON.DAL.Server; namespace HDL_ON.UI @@ -135,8 +135,9 @@ TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.TextFontSize, PlaceholderTextColor = CSS_Color.PromptingColor1, - PlaceholderText = Language.StringByID(StringId.PlsEntryPhoneNumber), + PlaceholderText = UserInfo.Current.AccountString,// Language.StringByID(StringId.PlsEntryPhoneNumber), TextAlignment = TextAlignment.CenterLeft, + Enable = false }; accountView.AddChidren(etAccount); @@ -196,7 +197,7 @@ var btnLogin = new Button() { Gravity = Gravity.CenterHorizontal, - Y = Application.GetRealHeight(403), + Y = Application.GetRealHeight(353), Width = Application.GetRealWidth(220), Height = Application.GetRealWidth(44), Radius = (uint)Application.GetRealWidth(22), @@ -209,22 +210,9 @@ }; bodyView.AddChidren(btnLogin); - string account = ""; - etAccount.TextChangeEventHandler = (sender, e) => - { - account = etAccount.Text.Trim(); - if (account.Length > 0 && etPassword.Text.Trim().Length > 0) - { - btnLogin.IsSelected = true; - } - else - { - btnLogin.IsSelected = false; - } - }; etPassword.TextChangeEventHandler += (sender, e) => { - if (etAccount.Text.Trim().Length > 0 && etPassword.Text.Trim().Length > 0) + if ( etPassword.Text.Trim().Length > 0) { btnLogin.IsSelected = true; } @@ -367,14 +355,14 @@ phoneRow.AddChidren(btnImage); phoneRow.AddChidren(new Button() { X = Application.GetRealWidth(16), Y = Application.GetRealWidth(49), Height = Application.GetRealHeight(1), BackgroundColor = CSS_Color.DividingLineColor }); - EventHandler<MouseEventArgs> eventHandler = (sender, e) => - { - PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); - }; + //EventHandler<MouseEventArgs> eventHandler = (sender, e) => + //{ + // PhoneDialer.Open(Constant.SUPPORT_TELEPHONENUMBER); + //}; - phoneRow.MouseUpEventHandler = eventHandler; - btnPhoneText.MouseUpEventHandler = eventHandler; - btnImage.MouseUpEventHandler = eventHandler; + //phoneRow.MouseUpEventHandler = eventHandler; + //btnPhoneText.MouseUpEventHandler = eventHandler; + //btnImage.MouseUpEventHandler = eventHandler; #endregion #region 鑱旂郴閭 @@ -463,8 +451,8 @@ /// <param name="text"></param> void CopyToClipboard(string text) { - Clipboard.SetTextAsync(text); - Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); + //Clipboard.SetTextAsync(text); + //Utlis.ShowTip(text + "\n" + Language.StringByID(StringId.CopySuccess)); } -- Gitblit v1.8.0