From c00da77d00a479fa5d022346a6d9075f90a5c087 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期六, 14 九月 2024 10:05:34 +0800 Subject: [PATCH] 退出登录时间调整,新风,音乐 --- HDL_ON/UI/UI1-Login/LoginPageBLL.cs | 44 ++++++++++++++++++++++++++++++++++---------- 1 files changed, 34 insertions(+), 10 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs index 849ce05..096ad5c 100644 --- a/HDL_ON/UI/UI1-Login/LoginPageBLL.cs +++ b/HDL_ON/UI/UI1-Login/LoginPageBLL.cs @@ -86,6 +86,9 @@ btnAccountViewBottomLine.Height = Application.GetRealHeight(2); return; } +#if __IOS__ + etPassword.Foucs = true; +#endif //鍔犺浇Loading鏁堟灉 var waitPage = new Loading(); bodyView.AddChidren(waitPage); @@ -227,6 +230,9 @@ } //楠岃瘉鐮佷笉闇�瑕侀殣钘� etPassword.SecureTextEntry = false; +#if __IOS__ + etPassword.SetTextContentTypeToOneTimeCode(); +#endif } #endregion } @@ -315,6 +321,7 @@ //} //闅愯棌瀵嗙爜 etPassword.SecureTextEntry = true; + //etPassword.IsNumberKeyboardType = false; } //楠岃瘉鐮佺櫥褰� else if (logintMode == 1) @@ -342,6 +349,9 @@ } //楠岃瘉鐮佷笉闇�瑕侀殣钘� etPassword.SecureTextEntry = false; + etPassword.Text = smsCode; + //etPassword.IsNumberKeyboardType = true; + } } @@ -435,16 +445,23 @@ { btnPasswordViewBottomLine.BackgroundColor = CSS_Color.MainColor; btnPasswordViewBottomLine.Height = Application.GetRealHeight(2); - new Thread(() => { - for(var i = 0; i < 10; i++) - { - Application.RunOnMainThread(() => + +#if __IOS__ + new Thread(() => { + for(var i = 0; i < 10; i++) { - this.Y = 0-Application.GetRealHeight(10 * i); - }); - Thread.Sleep(10); - } - }) { IsBackground = true }.Start(); + Application.RunOnMainThread(() => + { + this.Y = 0-Application.GetRealHeight(10 * i); + }); + Thread.Sleep(10); + } + }) { IsBackground = true }.Start(); + + var sst = etPassword.MyTextContentType; + Console.WriteLine(sst); + etPassword.SetTextContentTypeToOneTimeCode(); +#endif } else { @@ -462,8 +479,8 @@ //褰撶劍鐐瑰湪瀵嗙爜鏂囨湰妗嗘椂锛岀偣鍑婚敭鐩樺洖鎾ゆ寜閿紝瑙﹀彂鐨勪簨浠� etPassword.EditorEnterAction += (obj) => { - LoginEvent(); Application.HideSoftInput(); + LoginEvent(); }; } @@ -620,6 +637,7 @@ { //璺宠浆椤甸潰---- MainPage.GoUserPage(true); + this.RemoveFromParent(); return; } }); @@ -654,6 +672,7 @@ Common.ApiUtlis.Ins.DownloadDataComplete = false; //璺宠浆椤甸潰---- MainPage.GoUserPage(true); + this.RemoveFromParent(); }); } else @@ -713,6 +732,11 @@ //璋冪敤楠岃瘉鐮佺櫥褰曟帴鍙� loginResult = pm.LoginValidCode(account, password); } + if(loginResult == null) + { + + return false; + } if (loginResult.Code == StateCode.SUCCESS) { var revertData = Newtonsoft.Json.JsonConvert.DeserializeObject<UserLoginRes>(loginResult.Data.ToString()); -- Gitblit v1.8.0