From fe2b566c8d9c097d2568ad211088fa5bc6f8c229 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期二, 23 三月 2021 13:48:25 +0800 Subject: [PATCH] 2.增加住宅绑定网关判断,没有绑定网关的住宅,ON+不再显示 --- HDL_ON/UI/UI1-Login/LoginPageBLL.cs | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs index c5a084d..3d05e6d 100644 --- a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs +++ b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs @@ -174,7 +174,7 @@ /// <param name="type">鏄惁閫夋嫨鎵嬫満鐧诲綍</param> void LoginTypeChange(bool isPhone) { - if(isPhone) + if (isPhone) { if (loginType == 0) return; @@ -598,7 +598,7 @@ if (verAccount == etPassword.Text.Trim()) { //璺宠浆椤甸潰---- - MainPage.GoUserPage(); + MainPage.GoUserPage(true); return; } }); @@ -629,15 +629,20 @@ //} Application.RunOnMainThread(() => { + //20201223-鐧诲綍鎴愬姛涔嬪悗锛屽皢涓嬭浇鏁版嵁瀹屾垚鏍囪鏍囪涓篺alse锛岄槻姝富椤垫彁鍓嶅姞杞� + Common.ApiUtlis.Ins.DownloadDataComplete = false; //璺宠浆椤甸潰---- - MainPage.GoUserPage(); + MainPage.GoUserPage(true); }); } else { - BindingResidencePage page = new BindingResidencePage(); - MainPage.BaseView.AddChidren(page); - page.LoadView(); + //Application.RunOnMainThread(() => + //{ + // BindingResidencePage page = new BindingResidencePage(); + // MainPage.BaseView.AddChidren(page); + // page.LoadView(); + //}); @@ -764,7 +769,7 @@ IMessageCommon.Current.ShowErrorInfoAlter(loginResult.Code); }); - + } return result; } @@ -790,7 +795,7 @@ var unlockDatetime = Utlis.UnixToDateTimeMS(revertData.unlockTime); var unlockTimeInt = unlockDatetime.Minute - DateTime.Now.Minute; - if(unlockTimeInt <= 0) + if (unlockTimeInt <= 0) { unlockTimeInt = 1; } @@ -835,6 +840,9 @@ { btnRegister.MouseUpEventHandler += (sender, e) => { + //2020-12-22 澧炲姞鐐瑰嚮闅愯棌閿洏浜嬩欢 + Application.HideSoftInput(); + //鍒ゆ柇鏄惁鍚屾剰浜嗛殣绉佹斂绛� if (CheckPrivacyPolicy() == false) return; @@ -849,6 +857,7 @@ MainPage.Log($"login callBackAction : {ex.Message}"); } }; + var registerPage = new RegisterPage(autoLoginAction); registerPage.Show(); @@ -863,6 +872,9 @@ { btnForgetPassword.MouseUpEventHandler += (sender, e) => { + //2020-12-22 澧炲姞鐐瑰嚮闅愯棌閿洏浜嬩欢 + Application.HideSoftInput(); + //鍒ゆ柇鏄惁鍚屾剰浜嗛殣绉佹斂绛� if (CheckPrivacyPolicy() == false) return; @@ -878,6 +890,7 @@ MainPage.Log($"login callBackAction : {ex.Message}"); } }; + var forgetPasswordDialog = new ForgetPasswordPage(autoLoginAction); forgetPasswordDialog.Show(); forgetPasswordDialog.ShowDialog(); -- Gitblit v1.8.0