From f788a1e320b8505435ed66e2456ddb2d0a838f76 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 19 十一月 2020 19:58:14 +0800 Subject: [PATCH] 2020-11-19 1.优化绑定和解绑页面。2.修改密码功能实现,UI界面实现,接口实现。 --- HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs | 49 ++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 40 insertions(+), 9 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs index 1ce3c56..9898786 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AccountBindInfo/NewBindVerificationCodePage.cs @@ -35,6 +35,8 @@ Button btnResend; + Button btnTip; + Action<string> action; int titleId; @@ -88,13 +90,13 @@ this.verAccount = account; this.isModifyBind = isModifyBind; - 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), @@ -559,31 +561,33 @@ if (isPhone) { MainPage.LoginUser.userMobileInfo = verAccount; - tipMsg = "璇蜂娇鐢ㄦ柊鐨勬墜鏈鸿处鍙风櫥褰旳PP"; + //璇蜂娇鐢ㄦ柊鐨勬墜鏈鸿处鍙风櫥褰旳PP + tipMsg = Language.StringByID(StringId.PleaseLoginWithNewMobileAccount); if (isModifyBind) { //鐧诲綍鎵嬫満淇敼瀹屾垚 - tipTitle = "鐧诲綍鎵嬫満淇敼瀹屾垚"; + tipTitle = Language.StringByID(StringId.LoginMobileAccountModificationCompleted); } else { //鐧诲綍鎵嬫満缁戝畾瀹屾垚 - tipTitle = "鐧诲綍鎵嬫満缁戝畾瀹屾垚"; + tipTitle = Language.StringByID(StringId.LoginMobileAccountBindCompleted); } } else { MainPage.LoginUser.userEmailInfo = verAccount; - tipMsg = "璇蜂娇鐢ㄦ柊鐨勯偖绠辫处鍙风櫥褰旳PP"; + //璇蜂娇鐢ㄦ柊鐨勯偖绠辫处鍙风櫥褰旳PP + tipMsg = Language.StringByID(StringId.PleaseLoginWithNewEmailAccount); if (isModifyBind) { //鐧诲綍閭淇敼瀹屾垚 - tipTitle = "鐧诲綍閭淇敼瀹屾垚"; + tipTitle = Language.StringByID(StringId.LoginEmailAccountModificationCompleted); } else { //鐧诲綍閭缁戝畾瀹屾垚 - tipTitle = "鐧诲綍閭缁戝畾瀹屾垚"; + tipTitle = Language.StringByID(StringId.LoginEmailAccountBindCompleted); } } @@ -675,6 +679,33 @@ LoadThread_SendVerCode(); }; } + + /// <summary> + /// 杩斿洖浜屾纭浜嬩欢 + /// </summary> + void BackConfirmAction() + { + //楠岃瘉鐮佸彂閫佹垚鍔燂紝浜屾纭閫�鍑� + if (btnTip.TextID == StringId.VerificationCodePrompt) + { + Action cancelAction = () => + { + if (bodyView != null) + { + bodyView.RemoveFromParent(); + } + }; + HDLCommon.Current.ShowConfirmDialog(StringId.Tip, StringId.VerificationCodeMayBeDelayed, null, cancelAction, StringId.ReturnStr, StringId.WaitAMoment); + } + else + { + //鐩存帴鍏抽棴 + if (bodyView != null) + { + bodyView.RemoveFromParent(); + } + } + } } } -- Gitblit v1.8.0