JLChen
2020-12-14 15978205aa7e4aeca8af3d3d34a80a85f0265f63
HDL_ON/UI/UI2/4-PersonalCenter/PersonalCenterPage.cs
@@ -201,13 +201,12 @@
                TextAlignment = TextAlignment.Center,
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextSize = CSS_FontSize.SubheadingFontSize,
                Text = string.IsNullOrEmpty(MainPage.LoginUser.userName) ? "不愿意透露姓名的用户" : MainPage.LoginUser.userName
                Text = string.IsNullOrEmpty(UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName
            };
            personalInfoView.AddChidren(btnUserName);
            if (!string.IsNullOrEmpty(MainPage.LoginUser.userName))
            if (!string.IsNullOrEmpty( UserInfo.Current.userName))
            {
                btnUserName.Text = MainPage.LoginUser.userName; ;
                btnUserName.Text =  UserInfo.Current.userName; ;
            }
            btnEmail = new Button()
            {
@@ -216,7 +215,7 @@
                TextAlignment = TextAlignment.Center,
                TextColor = CSS_Color.TextualColor,
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                Text = MainPage.LoginUser.accountString
                Text =  UserInfo.Current.AccountString
            };
            personalInfoView.AddChidren(btnEmail);
@@ -227,15 +226,15 @@
                Width = Application.GetMinRealAverage(84),
                Height = Application.GetMinRealAverage(84),
                Radius = (uint)Application.GetMinRealAverage(42),
                ImagePath = MainPage.LoginUser.headImagePagePath
                ImagePath =  UserInfo.Current.headImagePagePath
            };
            bodyView.AddChidren(userHeadImageView);
            //if ( MainPage.LoginUser.headImagePageBytes==null)
            //if (  UserInfo.Current.headImagePageBytes==null)
            //{
            //    userHeadImageView.ImagePath = MainPage.LoginUser.headImagePagePath;
            //    userHeadImageView.ImagePath =  UserInfo.Current.headImagePagePath;
            //}else
            //{
            //    userHeadImageView.ImageBytes = MainPage.LoginUser.headImagePageBytes;
            //    userHeadImageView.ImageBytes =  UserInfo.Current.headImagePageBytes;
            //}
            #endregion
@@ -254,7 +253,7 @@
            contentView.RemoveAll();
            #region 住宅信息区域
            if (!DB_ResidenceData.residenceData.residecenInfo.IsOthreShare)
            if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
            {
                residenceInfoView = new FrameLayout()
                {
@@ -303,7 +302,7 @@
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = CSS_Color.FirstLevelTitleColor,
                TextSize = CSS_FontSize.EmphasisFontSize_FirstLevel,
                Text = DB_ResidenceData.residenceData.residecenInfo.Name,
                Text = DB_ResidenceData.Instance.CurrentRegion.Name,
            };
            residenceInfoView.AddChidren(btnCurResidenceName);
@@ -323,7 +322,7 @@
                Y = Application.GetRealHeight(15),
                Width = Application.GetMinRealAverage(20),
                Height = Application.GetMinRealAverage(20),
                UnSelectedImagePath = DB_ResidenceData.residenceData.residecenInfo.IsOthreShare
                UnSelectedImagePath = DB_ResidenceData.Instance.CurrentRegion.IsOthreShare
                                    == false ? "PersonalCenter/AdminTypeIcon.png" : "PersonalCenter/MemberTypeIcon.png",
            };
            userTypeView.AddChidren(btnUserTypeIcon);
@@ -336,13 +335,13 @@
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = CSS_Color.MainBackgroundColor,
                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
                TextID = DB_ResidenceData.residenceData.residecenInfo.IsOthreShare
                TextID = DB_ResidenceData.Instance.CurrentRegion.IsOthreShare
                        == false ? StringId.Administrators : StringId.Member
            };
            userTypeView.AddChidren(btnUserTypeName);
            #endregion
            #region 住宅管理
            if (!DB_ResidenceData.residenceData.residecenInfo.IsOthreShare)
            if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
            {
                #region ---住宅管理区域
                residenceManageView = new FrameLayout()