From 67ed2f4a0ebe1b265a563bad3f82627ed78c3054 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 20 十一月 2020 15:48:11 +0800 Subject: [PATCH] 2020-11-20 1.修改替换正则检测方法。2.修改请求失败tip方法。3.增加隐私政策功能。 --- HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/ChangeBindVerificationCodePage.cs | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 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..4100b9d 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), @@ -519,7 +522,7 @@ else { //澶辫触鎻愮ず - IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Verification_Check, resultObj.Code); + IMessageCommon.Current.ShowErrorInfoAlter(resultObj.Code); } Application.RunOnMainThread(() => { @@ -579,7 +582,7 @@ else { //澶辫触鎻愮ず - IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Member_UnbindWithAccount, result2); + IMessageCommon.Current.ShowErrorInfoAlter(result2); } }) { IsBackground = true }.Start(); @@ -609,7 +612,7 @@ else { //澶辫触鎻愮ず - IMessageCommon.Current.ShowErrorInfoAlter(NewAPI.API_POST_Member_UnbindWithAccount, result2); + IMessageCommon.Current.ShowErrorInfoAlter(result2); } }) { 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