wei
2021-02-01 8da70e1a39328e1769b02bb1e05303916bb30eb5
HDL_ON/UI/UI2/UserPage.cs
@@ -2,12 +2,12 @@
using HDL_ON.Entity;
using Shared;
using HDL_ON.UI.CSS;
using HDL_ON.DAL.Server;
namespace HDL_ON.UI
{
    public partial class UserPage : FrameLayout
    {
        #region 控件列表
        /// <summary>
        /// 当前区域
@@ -17,6 +17,7 @@
        /// 内容区域
        /// </summary>
        FrameLayout ContextView;
        //VerticalRefreshLayout ContextView;
        /// <summary>
        /// 导航栏区域
        /// </summary>
@@ -128,8 +129,11 @@
                ContextView.AddChidren(homePage);
                homePage.LoadPage();
                //刷新功能状态
                DB_ResidenceData.residenceData.RefreshResidenceFunctionStatus();
                //注册推送ID
                RegisteredPush();
                //2020-12-07 增加版本检测更新方法
                HDLCommon.Current.CheckIfNeedForceUpdate();
            }
            catch (Exception ex)
            {
@@ -303,9 +307,9 @@
        /// <summary>
        /// 切换到收藏界面
        /// </summary>
        void ChooseCollection()
        void ChooseCollection(bool qiangzhishuaxin = false)
        {
            if (CurAnimationEffect == 0)
            if (CurAnimationEffect == 0 || qiangzhishuaxin)
            {
                return;
            }
@@ -358,6 +362,7 @@
                            btnClassificationText.IsSelected = false;
                            btnIntellectualizationText.IsSelected = false;
                            btnPersonalCenterText.IsSelected = false;
                            btnNavigationSelectionIcon.UnSelectedImagePath = "Navigation/HomePageIconOn.png";
                        }
                        if (index == (total/2))
                        {
@@ -374,7 +379,7 @@
                {
                    btnNavigationSelectionIcon.SetRotation(0f);
                });
            }) { IsBackground = true }.Start();
            }) { IsBackground = true ,Priority = System.Threading.ThreadPriority.Highest}.Start();
            #endregion
            ContextView.RemoveAll();
            var homePage = new HomePage();
@@ -438,6 +443,7 @@
                            btnCollectionText.IsSelected = false;
                            btnIntellectualizationText.IsSelected = false;
                            btnPersonalCenterText.IsSelected = false;
                            btnNavigationSelectionIcon.UnSelectedImagePath = "Navigation/ClassificationIconOn.png";
                        }
                        if (index == (total / 2 ))
                        {
@@ -462,7 +468,7 @@
                    btnNavigationSelectionIcon.SetRotation(0f);
                });
            })
            { IsBackground = true }.Start();
            { IsBackground = true, Priority = System.Threading.ThreadPriority.Highest }.Start();
            #endregion
            ContextView.RemoveAll();
            var classificaitionView = new ClassificationPage();
@@ -527,6 +533,7 @@
                            btnCollectionIcon.IsSelected = false;
                            btnClassificationIcon.IsSelected = false;
                            btnPersonalCenterIcon.IsSelected = false;
                            btnNavigationSelectionIcon.UnSelectedImagePath = "Navigation/IntellectualizationIconOn.png";
                        }
                        if (index == (total / 2 ))
                        {
@@ -551,7 +558,7 @@
                    btnNavigationSelectionIcon.SetRotation(0f);
                });
            })
            { IsBackground = true }.Start();
            { IsBackground = true, Priority = System.Threading.ThreadPriority.Highest }.Start();
            #endregion
            ContextView.RemoveAll();
            var intelligenceView = new IntelligencePage();
@@ -567,7 +574,7 @@
        void ChoosePersonalCenter()
        {
#if DEBUG
            if(MainPage.LocalMode)
            if(MainPage.NoLoginMode)
            {
                return;
            }
@@ -624,6 +631,7 @@
                            btnCollectionIcon.IsSelected = false;
                            btnClassificationIcon.IsSelected = false;
                            btnIntellectualizationIcon.IsSelected = false;
                            btnNavigationSelectionIcon.UnSelectedImagePath = "Navigation/PersonalCenterIconOn.png";
                        }
                        if (index == (total / 2 ))
                        {
@@ -640,7 +648,7 @@
                    btnNavigationSelectionIcon.SetRotation(0f);
                });
            })
            { IsBackground = true }.Start();
            { IsBackground = true, Priority = System.Threading.ThreadPriority.Highest }.Start();
            #endregion
            ContextView.RemoveAll();
@@ -648,5 +656,13 @@
            ContextView.AddChidren(personalCenterPage);
            personalCenterPage.LoadView();
        }
        /// <summary>
        /// 注册推送
        /// </summary>
        void RegisteredPush()
        {
            new HttpServerRequest().RegisteredPush();
        }
    }
}