From f788a1e320b8505435ed66e2456ddb2d0a838f76 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 19 十一月 2020 19:58:14 +0800 Subject: [PATCH] 2020-11-19 1.优化绑定和解绑页面。2.修改密码功能实现,UI界面实现,接口实现。 --- HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs index c268179..541ceb0 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/AccountBindInfoPage.cs @@ -30,7 +30,7 @@ /// </summary> /// <param name="act">鍒锋柊缁戝畾淇℃伅鏂规硶</param> /// <param name="option">淇淇℃伅鐨勭被鍨�:1:閭锛�2:鎵嬫満</param> - public void LoadPage(Action<string> act,int ot,int tId) + public void LoadPage(Action<string> act, int ot, int tId) { action = act; optionType = ot; @@ -53,7 +53,7 @@ TextColor = CSS_Color.FirstLevelTitleColor, TextSize = CSS_FontSize.SubheadingFontSize, TextAlignment = TextAlignment.CenterLeft, - TextID = optionType == 1 ? StringId.CurrentEmail : StringId.CurPhone, + TextID = optionType == 1 ? StringId.CurrentEmail : StringId.CurPhone, }; rowView.AddChidren(btnTitle); @@ -85,7 +85,8 @@ }; bodyView.AddChidren(btnChangeBind); - if( (!string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) && optionType == 1) || (!string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) && optionType == 2)) + //鍚屾椂缁戝畾閭鎴栬�呮墜鏈烘墠鏄剧ず"鏇存崲楠岃瘉鏂瑰紡" + if (!string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) && !string.IsNullOrEmpty(MainPage.LoginUser.userEmailInfo)) { Button btnUnbind = new Button() { @@ -114,17 +115,18 @@ /// </summary> void LoadEvent_SkipChangeBandAccountInfo(Button button) { - EventHandler<MouseEventArgs> eventHandler = (sender, e) => { + EventHandler<MouseEventArgs> eventHandler = (sender, e) => + { var cbe = new ChangeBindAccountPage(); cbe.isUnbind = false; MainPage.BasePageView.AddChidren(cbe); if (optionType == 1) { - cbe.LoadPage(action, optionType, StringId.ModifyBindingEmail, StringId.CurrentEmail); + cbe.LoadPage(action, optionType, StringId.ModifyBindingEmail); } - else if(optionType == 2) + else if (optionType == 2) { - cbe.LoadPage(action, optionType, StringId.ModifyBindingPhone, StringId.CurPhone); + cbe.LoadPage(action, optionType, StringId.ModifyBindingPhone); } MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; @@ -136,17 +138,18 @@ /// </summary> void LoadEvent_SkipDelBandAccountInfo(Button button) { - EventHandler<MouseEventArgs> eventHandler = (sender, e) => { + EventHandler<MouseEventArgs> eventHandler = (sender, e) => + { var cbe = new ChangeBindAccountPage(); cbe.isUnbind = true;//鏄惁涓鸿В缁戞爣璁� MainPage.BasePageView.AddChidren(cbe); if (optionType == 1) { - cbe.LoadPage(action, optionType, StringId.UnbindEmail, StringId.CurrentEmail); + cbe.LoadPage(action, optionType, StringId.UnbindEmail); } - else if(optionType == 2) + else if (optionType == 2) { - cbe.LoadPage(action, optionType, StringId.UnbindPhone, StringId.CurPhone); + cbe.LoadPage(action, optionType, StringId.UnbindPhone); } MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; }; -- Gitblit v1.8.0