HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -19,6 +19,7 @@
            LoadEvent_ChangeBindEmail();
            LoadEvent_ChangeBindPhone();
            LoadEvent_SkipModifyPassword();
            GetUserInfo();
        }
        /// <summary>
@@ -85,7 +86,8 @@
            {
                baseView.RemoveFromParent();
            };
            baseView.MouseUpEventHandler = (sender, e) => {
            baseView.MouseUpEventHandler = (sender, e) =>
            {
                baseView.RemoveFromParent();
            };
            btnCancel.MouseUpEventHandler = (sender, e) =>
@@ -170,7 +172,7 @@
                        }.Show(bodyView);
                        return;
                    }
                    if(str == MainPage.LoginUser.userName)
                    if (str == MainPage.LoginUser.userName)
                    {
                        return;
                    }
@@ -223,36 +225,65 @@
        /// </summary>
        void LoadEvent_ChangeBindEmail()
        {
            EventHandler<MouseEventArgs> eventHandler = (sender, e) => {
            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
            {
                Action<string> action = (email) =>
                {
                    btnUserEmailInfo.Text = email;
                    btnUserEmailInfo.Text = GetBindAccountText(email);
                };
                var aep = new AccountBindInfoPage();
                MainPage.BasePageView.AddChidren(aep);
                aep.LoadPage(action,1,StringId.EmailAddress);
                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                if (CheckIfUnbound(btnUserEmailInfo.Text))
                {
                    //未绑定,跳转新绑定页面
                    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;
            userEmailInfoView.MouseUpEventHandler = eventHandler;
        }
        /// <summary>
        /// 修改绑定手机
        /// </summary>
        void LoadEvent_ChangeBindPhone()
        {
            EventHandler<MouseEventArgs> eventHandler = (sender, e) => {
            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
            {
                Action<string> action = (phone) =>
                {
                    btnUserPhoneInfo.Text = phone;
                    btnUserPhoneInfo.Text = GetBindAccountText(phone);
                };
                var aep = new AccountBindInfoPage();
                MainPage.BasePageView.AddChidren(aep);
                aep.LoadPage(action, 2, StringId.PhoneInfo);
                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                if (CheckIfUnbound(btnUserPhoneInfo.Text))
                {
                    //未绑定,跳转新绑定页面
                    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;
@@ -283,7 +314,8 @@
        /// </summary>
        void LoadEvent_SkipModifyPassword()
        {
            EventHandler<MouseEventArgs> eventHandler = (sender, e) => {
            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
            {
                var page = new ResetPasswordOptionPage();
                MainPage.BasePageView.AddChidren(page);
                page.LoadPage();
@@ -294,5 +326,16 @@
            resetPasswordView.MouseUpEventHandler = eventHandler;
        }
        /// <summary>
        ///
        /// </summary>
        void GetUserInfo()
        {
            new System.Threading.Thread(() =>
            {
                new HttpServerRequest().GetUserInfo();
            })
            { IsBackground = true }.Start();
        }
    }
}