JLChen
2020-11-18 7153e420d66bce0a06b7e972ac3a5c34197fa2e5
HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -19,6 +19,7 @@
            LoadEvent_ChangeBindEmail();
            LoadEvent_ChangeBindPhone();
            LoadEvent_SkipModifyPassword();
            GetUserInfo();
        }
        /// <summary>
@@ -229,10 +230,22 @@
                    btnUserEmailInfo.Text = email;
                };
                var aep = new AccountBindInfoPage();
                MainPage.BasePageView.AddChidren(aep);
                aep.LoadPage(action,1,StringId.EmailAddress);
                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                if(btnUserEmailInfo.Text == Language.StringByID(StringId.Unbound))
                {
                    //未绑定,跳转新绑定页面
                    var aep = new NewBindAccountPage();
                    MainPage.BasePageView.AddChidren(aep);
                    aep.LoadPage(action);
                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                }
                else
                {
                    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;
@@ -249,10 +262,23 @@
                    btnUserPhoneInfo.Text = phone;
                };
                var aep = new AccountBindInfoPage();
                MainPage.BasePageView.AddChidren(aep);
                aep.LoadPage(action, 2, StringId.PhoneInfo);
                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                if (btnUserPhoneInfo.Text == Language.StringByID(StringId.Unbound))
                {
                    //未绑定,跳转新绑定页面
                    var aep = new NewBindAccountPage();
                    MainPage.BasePageView.AddChidren(aep);
                    aep.LoadPage(action, true);
                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                }
                else
                {
                    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;
@@ -294,5 +320,16 @@
            resetPasswordView.MouseUpEventHandler = eventHandler;
        }
        /// <summary>
        ///
        /// </summary>
        void GetUserInfo()
        {
            new System.Threading.Thread(() =>
            {
              new HttpServerRequest().GetUserInfo();
            })
            { IsBackground = true }.Start();
        }
    }
}