From 611786df5108dca0bdcff03834cc285cba4b8e61 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 13 十月 2020 16:48:43 +0800 Subject: [PATCH] 2020-10-13-1 --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs index a4f5353..7d06a5e 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs @@ -15,6 +15,8 @@ LoadEvent_Logout(); LoadEvent_EditUserName(); LoadEvent_SkipInterpretationSettings(); + LoadEvent_ChangeBindEmail(); + LoadEvent_ChangeBindPhone(); } /// <summary> @@ -133,6 +135,10 @@ }.Show(bodyView); return; } + if(str == MainPage.LoginUser.userName) + { + return; + } var waitPage = new Loading(); waitPage.Start(Language.StringByID(StringId.PleaseWait)); new System.Threading.Thread(() => @@ -195,6 +201,48 @@ btnEditUserNameIcon.MouseUpEventHandler = eventHandler; } + #region 淇敼缁戝畾閭 + /// <summary> + /// 淇敼缁戝畾閭 + /// </summary> + void LoadEvent_ChangeBindEmail() + { + EventHandler<MouseEventArgs> eventHandler = (sender, e) => { + Action<string> action = (email) => + { + btnUserEmailInfo.Text = email; + }; + + var aep = new AccountBindInfoPage(); + MainPage.BasePageView.AddChidren(aep); + aep.LoadPage(action,1,StringId.EmailAddress); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + }; + btnUserEmailInfo.MouseUpEventHandler = eventHandler; + btnUserEmailRight.MouseUpEventHandler = eventHandler; + userEmailInfoView.MouseUpEventHandler = eventHandler; + } + /// <summary> + /// 淇敼缁戝畾鎵嬫満 + /// </summary> + void LoadEvent_ChangeBindPhone() + { + EventHandler<MouseEventArgs> eventHandler = (sender, e) => { + Action<string> action = (phone) => + { + btnUserPhoneInfo.Text = phone; + }; + + var aep = new AccountBindInfoPage(); + MainPage.BasePageView.AddChidren(aep); + aep.LoadPage(action, 2, StringId.PhoneInfo); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + }; + btnUserPhoneInfo.MouseUpEventHandler = eventHandler; + btnUserPhoneRight.MouseUpEventHandler = eventHandler; + userPhoneInfoView.MouseUpEventHandler = eventHandler; + } + #endregion #region 瑙i攣璁剧疆鍖哄煙 void LoadEvent_SkipInterpretationSettings() -- Gitblit v1.8.0