| | |
| | | /// </summary> |
| | | Action updataUserName; |
| | | |
| | | public PersonalDataPage(Action upHeadImage,Action upUserName) |
| | | public PersonalDataPage(Action upHeadImage, Action upUserName) |
| | | { |
| | | updataHeadImage = upHeadImage; |
| | | updataUserName = upUserName; |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = string.IsNullOrEmpty(MainPage.LoginUser.userName) ? "不愿意透露姓名的用户" : MainPage.LoginUser.userName |
| | | Text = string.IsNullOrEmpty(MainPage.LoginUser.userName) ? Language.StringByID(StringId.UsersWhoNameIsEmpty) : MainPage.LoginUser.userName |
| | | }; |
| | | userNameView.AddChidren(btnUserName); |
| | | /// <summary> |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = string.IsNullOrEmpty(MainPage.LoginUser.userEmailInfo) ? Language.StringByID(StringId.Unbound) : MainPage.LoginUser.userEmailInfo |
| | | Text = GetBindAccountText(MainPage.LoginUser.userEmailInfo) |
| | | }; |
| | | userEmailInfoView.AddChidren(btnUserEmailInfo); |
| | | /// <summary> |
| | |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | Text = string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) ? Language.StringByID(StringId.Unbound) : MainPage.LoginUser.userMobileInfo |
| | | Text = GetBindAccountText(MainPage.LoginUser.userMobileInfo) |
| | | }; |
| | | userPhoneInfoView.AddChidren(btnUserPhoneInfo); |
| | | /// <summary> |
| | |
| | | }; |
| | | bodyView.AddChidren(btnLogout); |
| | | |
| | | if(MainPage.Increase) |
| | | if (MainPage.Increase) |
| | | { |
| | | btnLogout.Y = Application.GetRealHeight(613); |
| | | btnLogout.Height = Application.GetRealHeight(50); |
| | |
| | | |
| | | 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); |
| | | } |
| | | } |
| | | } |