From ec074f7a42c10995732739c842e60ed84aedce20 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 20 十一月 2020 18:02:59 +0800 Subject: [PATCH] 2020-11-20 1.更新 --- HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs | 50 ++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 40 insertions(+), 10 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs index 09df67e..64b49a8 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs @@ -35,6 +35,8 @@ Button btnResend; + Button btnTip; + Action<string> action; /// <summary> @@ -80,10 +82,11 @@ Action backAction = () => { Application.HideSoftInput(); + BackConfirmAction(); }; - new TopViewDiv(bodyView, Language.StringByID(tId)).LoadTopView(backAction); + new TopViewDiv(bodyView, Language.StringByID(tId), false).LoadTopView(backAction); - Button btnTip = new Button() + btnTip = new Button() { Y = Application.GetRealHeight(64), Height = Application.GetRealHeight(84), @@ -509,7 +512,7 @@ { act = new PublicAssmebly().TipLoadingMsgDialog(Language.StringByID(StringId.SavingPleaseWait)); }); - var verAccount = optionType == 1 ? MainPage.LoginUser.userEmailInfo : MainPage.LoginUser.userMobileInfo; + var verAccount = optionType == 1 ? UserInfo.Current.userEmailInfo : UserInfo.Current.userMobileInfo; var isPhone = optionType == 2; var resultObj = new HttpServerRequest().ValidatorCode(VerifyType.SENSITIVE_DATA, verAccount, etCode, isPhone); if (resultObj.Code == StateCode.SUCCESS) @@ -519,7 +522,7 @@ else { //澶辫触鎻愮ず - IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Verification_Check, resultObj.Code); + IMessageCommon.Current.ShowErrorInfoAlter(resultObj.Code); } Application.RunOnMainThread(() => { @@ -564,7 +567,7 @@ { Application.RunOnMainThread(() => { - MainPage.LoginUser.userEmailInfo = account; + UserInfo.Current.userEmailInfo = account; var page = new OperationResultDisPalyPage(); page.Show(); page.LoadPage(true, Language.StringByID(StringId.UnbindEmail), Language.StringByID(StringId.UnbindEmailSuccess), ""); @@ -579,7 +582,7 @@ else { //澶辫触鎻愮ず - IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Member_UnbindWithAccount, result2); + IMessageCommon.Current.ShowErrorInfoAlter(result2); } }) { IsBackground = true }.Start(); @@ -594,7 +597,7 @@ { Application.RunOnMainThread(() => { - MainPage.LoginUser.userMobileInfo = account; + UserInfo.Current.userMobileInfo = account; var page = new OperationResultDisPalyPage(); page.Show(); page.LoadPage(true, Language.StringByID(StringId.UnbindPhone), Language.StringByID(StringId.UnbindPhoneSuccess), ""); @@ -609,7 +612,7 @@ else { //澶辫触鎻愮ず - IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Member_UnbindWithAccount, result2); + IMessageCommon.Current.ShowErrorInfoAlter(result2); } }) { IsBackground = true }.Start(); @@ -640,11 +643,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); } }) { IsBackground = true }.Start(); @@ -697,5 +700,32 @@ aep.LoadPage(action, isPhone, true); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; } + + /// <summary> + /// 杩斿洖浜屾纭浜嬩欢 + /// </summary> + void BackConfirmAction() + { + //楠岃瘉鐮佸彂閫佹垚鍔燂紝浜屾纭閫�鍑� + if (btnTip.TextID == StringId.VerificationCodePrompt) + { + Action cancelAction = () => + { + if (bodyView != null) + { + bodyView.RemoveFromParent(); + } + }; + new ConfirmDialog().ShowDialog(StringId.Tip, StringId.VerificationCodeMayBeDelayed, null, cancelAction, StringId.ReturnStr, StringId.WaitAMoment); + } + else + { + //鐩存帴鍏抽棴 + if (bodyView != null) + { + bodyView.RemoveFromParent(); + } + } + } } } -- Gitblit v1.8.0