| | |
| | | { |
| | | btnPasswordViewBottomLine.BackgroundColor = CSS_Color.MainColor; |
| | | btnPasswordViewBottomLine.Height = Application.GetRealHeight(2); |
| | | new Thread(() => { |
| | | for(var i = 0; i < 10; i++) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | this.Y = 0-Application.GetRealHeight(10 * i); |
| | | }); |
| | | Thread.Sleep(10); |
| | | } |
| | | }) { IsBackground = true }.Start(); |
| | | |
| | | #if __IOS__ |
| | | new Thread(() => { |
| | | for(var i = 0; i < 10; i++) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | this.Y = 0-Application.GetRealHeight(10 * i); |
| | | }); |
| | | Thread.Sleep(10); |
| | | } |
| | | }) { IsBackground = true }.Start(); |
| | | |
| | | var sst = etPassword.MyTextContentType; |
| | | Console.WriteLine(sst); |
| | | etPassword.SetTextContentTypeToOneTimeCode(); |
| | |
| | | //当焦点在密码文本框时,点击键盘回撤按键,触发的事件 |
| | | etPassword.EditorEnterAction += (obj) => |
| | | { |
| | | LoginEvent(); |
| | | Application.HideSoftInput(); |
| | | LoginEvent(); |
| | | }; |
| | | } |
| | | |
| | |
| | | //调用验证码登录接口 |
| | | 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()); |