From 437c7a6d88d11e500fc19a3dd198aec28412f06b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 20 十一月 2020 17:48:23 +0800 Subject: [PATCH] 2020-11-20 1.修改UserInfo调用方法。2.增加保存用户注册域名信息。 --- HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs index 078316d..44b9478 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindAccountPage.cs @@ -58,11 +58,11 @@ string account; if (optionType == 0) { - account = MainPage.LoginUser.userEmailInfo; + account = UserInfo.Current.userEmailInfo; } else { - account = MainPage.LoginUser.userMobileInfo; + account = UserInfo.Current.userMobileInfo; } bodyView.BackgroundColor = CSS_Color.BackgroundColor; new TopViewDiv(bodyView, Language.StringByID(titleId)).LoadTopView(); @@ -92,7 +92,7 @@ TextColor = CSS_Color.PromptingColor1, TextSize = CSS_FontSize.TextFontSize, TextAlignment = TextAlignment.CenterRight, - //Text = optionType == 1 ? MainPage.LoginUser.userEmailInfo : MainPage.LoginUser.userMobileInfo, + //Text = optionType == 1 ? UserInfo.Current.userEmailInfo : UserInfo.Current.userMobileInfo, }; rowView.AddChidren(btnContent); @@ -117,7 +117,7 @@ //鍚屾椂缁戝畾閭鎴栬�呮墜鏈烘墠鏄剧ず"鏇存崲楠岃瘉鏂瑰紡" - if (!string.IsNullOrEmpty(MainPage.LoginUser.userMobileInfo) && !string.IsNullOrEmpty(MainPage.LoginUser.userEmailInfo)) + if (!string.IsNullOrEmpty( UserInfo.Current.userMobileInfo) && !string.IsNullOrEmpty( UserInfo.Current.userEmailInfo)) { Button btnChangeGetVer = new Button() { @@ -149,12 +149,12 @@ if (optionType == 2) { btnTitle.TextID = isUnbind ? StringId.CurPhone : StringId.PhoneNumberVerification; - btnContent.Text = MainPage.LoginUser.userMobileInfo; + btnContent.Text = UserInfo.Current.userMobileInfo; } else { btnTitle.TextID = isUnbind ? StringId.CurrentEmail : StringId.EmailVerification; - btnContent.Text = MainPage.LoginUser.userEmailInfo; + btnContent.Text = UserInfo.Current.userEmailInfo; } } } @@ -190,11 +190,11 @@ ResponsePackNew resultObj; if (optionType == 1)//閭 { - resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, MainPage.LoginUser.userEmailInfo); + resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, UserInfo.Current.userEmailInfo); } else { - resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, MainPage.LoginUser.userMobileInfo, true, MainPage.LoginUser.areaCode); + resultObj = new HttpServerRequest().VerificationCodeSend(VerifyType.SENSITIVE_DATA, UserInfo.Current.userMobileInfo, true, UserInfo.Current.areaCode); } if (resultObj.Code != StateCode.SUCCESS) -- Gitblit v1.8.0