From eb51679c618d5027070fbd6f3c0519f0f17e7d7d Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期一, 23 十一月 2020 10:07:53 +0800 Subject: [PATCH] Merge branch 'CJL' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into CJL --- HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs | 32 ++++++-------------------------- 1 files changed, 6 insertions(+), 26 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs index f915cbe..57dd341 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPage.cs @@ -171,7 +171,7 @@ /// </summary> Action updataUserName; - public PersonalDataPage(Action upHeadImage, Action upUserName) + public PersonalDataPage(Action upHeadImage,Action upUserName) { updataHeadImage = upHeadImage; updataUserName = upUserName; @@ -197,7 +197,7 @@ Width = Application.GetMinRealAverage(84), Height = Application.GetMinRealAverage(84), Radius = (uint)Application.GetMinRealAverage(42), - ImagePath = UserInfo.Current.headImagePagePath, + ImagePath = MainPage.LoginUser.headImagePagePath, }; headPortraitView.AddChidren(userHeadImageView); @@ -245,7 +245,7 @@ TextAlignment = TextAlignment.CenterRight, TextColor = CSS_Color.PromptingColor1, TextSize = CSS_FontSize.TextFontSize, - Text = string.IsNullOrEmpty( UserInfo.Current.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : UserInfo.Current.userName + Text = string.IsNullOrEmpty(MainPage.LoginUser.userName) ? "涓嶆効鎰忛�忛湶濮撳悕鐨勭敤鎴�" : MainPage.LoginUser.userName }; userNameView.AddChidren(btnUserName); /// <summary> @@ -342,7 +342,7 @@ TextAlignment = TextAlignment.CenterRight, TextColor = CSS_Color.PromptingColor1, TextSize = CSS_FontSize.TextFontSize, - Text = GetBindAccountText( UserInfo.Current.userEmailInfo) + Text = string.IsNullOrEmpty(MainPage.LoginUser.userEmailInfo) ? Language.StringByID(StringId.Unbound) : MainPage.LoginUser.userEmailInfo }; userEmailInfoView.AddChidren(btnUserEmailInfo); /// <summary> @@ -391,7 +391,7 @@ TextAlignment = TextAlignment.CenterRight, TextColor = CSS_Color.PromptingColor1, TextSize = CSS_FontSize.TextFontSize, - Text = GetBindAccountText( UserInfo.Current.userMobileInfo) + Text = string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) ? Language.StringByID(StringId.Unbound) : MainPage.LoginUser.userMobileInfo }; userPhoneInfoView.AddChidren(btnUserPhoneInfo); /// <summary> @@ -532,7 +532,7 @@ }; bodyView.AddChidren(btnLogout); - if (MainPage.Increase) + if(MainPage.Increase) { btnLogout.Y = Application.GetRealHeight(613); btnLogout.Height = Application.GetRealHeight(50); @@ -540,7 +540,6 @@ } LoadEventList(); - } /// <summary> @@ -617,25 +616,6 @@ pictureOptionView.AddChidren(btnCancel); LoadEvent_PictureOptionViewEventList(pictureBaseView); - } - - /// <summary> - /// 鑾峰彇缁戝畾璐﹀彿鏄剧ず鏂囨湰锛岀┖鐨勬椂鍊欐樉绀轰负鏈粦瀹� - /// </summary> - /// <param name="account"></param> - string GetBindAccountText(string account) - { - return string.IsNullOrEmpty(account) ? Language.StringByID(StringId.Unbound) : account; - } - - /// <summary> - /// 鍒ゆ柇鏄惁涓烘湭缁戝畾 - /// </summary> - /// <param name="account"></param> - /// <returns></returns> - bool CheckIfUnbound(string account) - { - return string.IsNullOrEmpty(account) || account == Language.StringByID(StringId.Unbound); } } } -- Gitblit v1.8.0