From c3e1b733fc45bd9f0b88bfb560cfa87a270b079b Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 09 九月 2020 17:33:58 +0800 Subject: [PATCH] 20200909 --- HDL_ON/UI/UI1-Login/LoginPageBLL.cs | 45 ++++++++++++++++++++++++++++++++------------- 1 files changed, 32 insertions(+), 13 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs index 15b85eb..10c3df6 100644 --- a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs +++ b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs @@ -41,7 +41,7 @@ var tip = new Tip() { Text = Language.StringByID(StringId.PlsEntryPhoneNumber), - CloseTime = 3, + CloseTime = 1, Direction = AMPopTipDirection.None }; tip.Show(bodyView); @@ -55,7 +55,7 @@ var tip = new Tip() { Text = Language.StringByID(StringId.PlsEntryCorrectMobilNeumber), - CloseTime = 3, + CloseTime = 1, Direction = AMPopTipDirection.None }; tip.Show(bodyView); @@ -132,7 +132,7 @@ var tip = new Tip() { Text = tipStr, - CloseTime = 3, + CloseTime = 1, Direction = AMPopTipDirection.None }; tip.Show(bodyView); @@ -344,7 +344,7 @@ var tip = new Tip() { Text = Language.StringByID(StringId.PlsEntryCorrectMobilNeumber), - CloseTime = 3, + CloseTime = 1, Direction = AMPopTipDirection.None }; tip.Show(bodyView); @@ -367,7 +367,7 @@ var tip = new Tip() { Text = Language.StringByID(StringId.PlsEntryCorrectEmailAddress), - CloseTime = 3, + CloseTime = 1, Direction = AMPopTipDirection.None }; tip.Show(bodyView); @@ -378,7 +378,7 @@ } }; //褰撶劍鐐瑰湪瀵嗙爜鏂囨湰妗嗘椂锛屾枃鏈搴曠嚎鐐逛寒 - etPassword.FoucsChanged += (sender, e) => + etPassword.FoucsChanged = (sender, e) => { if (etPassword.Foucs) { @@ -400,8 +400,13 @@ //褰撶劍鐐瑰湪瀵嗙爜鏂囨湰妗嗘椂锛岀偣鍑婚敭鐩樺洖鎾ゆ寜閿紝瑙﹀彂鐨勪簨浠� etPassword.EditorEnterAction += (obj) => { - etPassword.Foucs = false; + Application.HideSoftInput(); }; + etPassword.MouseUpEventHandler = (sender, e) => + { + etPassword.Foucs = true; + }; + } /// <summary> @@ -442,7 +447,7 @@ var tip = new Tip() { Text = Language.StringByID(StringId.PlsEntryCorrectMobilNeumber), - CloseTime = 3, + CloseTime = 1, Direction = AMPopTipDirection.None }; tip.Show(bodyView); @@ -456,7 +461,7 @@ var tip = new Tip() { Text = Language.StringByID(StringId.PlsEntryCorrectEmailAddress), - CloseTime = 3, + CloseTime = 1, Direction = AMPopTipDirection.None }; tip.Show(bodyView); @@ -540,6 +545,20 @@ * Wait : 鎺ㄩ�佹敞鍐� */ + /* + 鏌ョ湅鏈湴鏄惁瀛樺湪鏁版嵁 + 瀛樺湪鍒欏鍑� + */ + var isExis = FileUtils.IsExisFolder(DB_ResidenceData.residenceData.CurReginID); + if (isExis) + { + FileUtils.DeleteAllFile(); + string regionRootPath = FileUtils.CreateRegionBackup(DB_ResidenceData.residenceData.CurReginID); + FileUtils.RestoreRegionFiles(regionRootPath); + DB_ResidenceData.residenceData.EixtAccount(); + OnAppConfig.Instance.RefreshUserConfig(); + DB_ResidenceData.InitRoomFunction(); + } Application.RunOnMainThread(() => { //璺宠浆椤甸潰---- @@ -582,7 +601,7 @@ } else { - //璋冪敤鐧诲綍鎺ュ彛 + //璋冪敤楠岃瘉鐮佺櫥褰曟帴鍙� loginResult = pm.LoginValidCode(account, password); } if (loginResult.StateCode.ToUpper() == "SUCCESS") @@ -595,10 +614,10 @@ ID = (int)loginDataStr.GetValue("UserID"), masterID = (int)loginDataStr.GetValue("MainUserID"), accountType = (int)loginDataStr.GetValue("UserType"), + loginTokenString = loginDataStr.GetValue("Token").ToString(), accountString = account, password = password, lastTime = DateTime.Now, - SIP_Account = loginDataStr.GetValue("AllVisionRegisterDevUserNameGuid").ToString(), userName = loginDataStr.GetValue("Remark").ToString(), }; MainPage.LoginUser.SaveUserInfo(); @@ -656,7 +675,7 @@ var tip = new Tip() { Text = tipStr, - CloseTime = 3, + CloseTime = 1, Direction = AMPopTipDirection.None }; tip.Show(bodyView); @@ -692,7 +711,7 @@ var tip = new Tip() { Text = tipStr, - CloseTime = 3, + CloseTime = 1, Direction = AMPopTipDirection.None }; tip.Show(bodyView); -- Gitblit v1.8.0