| | |
| | | Y = Application.GetRealHeight(276), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealHeight(44), |
| | | Height = Application.GetRealWidth(44), |
| | | SelectedBackgroundColor = CSS_Color.MainColor, |
| | | BackgroundColor = CSS_Color.PromptingColor1, |
| | | TextAlignment = TextAlignment.Center, |
| | |
| | | /// </summary> |
| | | void LoadEvent_VerificationEntryEvent() |
| | | { |
| | | EventHandler<MouseEventArgs> clickEvent = (sender, e) => { |
| | | EventHandler<MouseEventArgs> clickEvent = (sender, e) => |
| | | { |
| | | et.Foucs = true; |
| | | var etCode = et.Text; |
| | | switch (etCode.Length) |
| | |
| | | btnNum5.MouseUpEventHandler = clickEvent; |
| | | btnNum6.MouseUpEventHandler = clickEvent; |
| | | |
| | | et.TextChangeEventHandler = (sender, e) => { |
| | | et.TextChangeEventHandler = (sender, e) => |
| | | { |
| | | var etCode = et.Text; |
| | | switch (etCode.Length) |
| | | { |
| | |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 重发验证码等待线程 |
| | | /// </summary> |
| | |
| | | { |
| | | btnResend.IsSelected = false; |
| | | int time = 60; |
| | | try |
| | | |
| | | //加载Loading效果 |
| | | var waitPage = new Loading(); |
| | | bodyView.AddChidren(waitPage); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | | |
| | | new Thread(() => |
| | | { |
| | | new Thread(() => |
| | | try |
| | | { |
| | | //2.2 获取验证码 |
| | | ResponsePackNew resultObj; |
| | |
| | | } |
| | | else |
| | | { |
| | | resultObj = new DAL.Server.HttpServerRequest().VerificationCodeSend(VerifyType.FIND_PASSWORD, account, true, UserInfo.Current.areaCode.ToString()); |
| | | resultObj = new DAL.Server.HttpServerRequest().VerificationCodeSend(VerifyType.FIND_PASSWORD, account, true, UserInfo.Current.areaCode.ToString()); |
| | | } |
| | | |
| | | if (resultObj.Code != StateCode.SUCCESS) |
| | |
| | | } |
| | | else |
| | | { |
| | | //发送成功,开始倒计时 |
| | | Application.RunOnMainThread(() => |
| | | new Thread(() => |
| | | { |
| | | btnTip.TextID = StringId.VerificationCodePrompt; |
| | | }); |
| | | |
| | | while (time > 0) |
| | | { |
| | | time--; |
| | | //发送成功,开始倒计时 |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | btnResend.Text = time.ToString() + "s"; |
| | | btnTip.TextID = StringId.VerificationCodePrompt; |
| | | }); |
| | | Thread.Sleep(1000); |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | btnResend.IsSelected = true; |
| | | btnResend.TextID = StringId.GetVerificationCode; |
| | | }); |
| | | |
| | | while (time > 0) |
| | | { |
| | | time--; |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | btnResend.Text = time.ToString() + "s"; |
| | | }); |
| | | Thread.Sleep(1000); |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | btnResend.IsSelected = true; |
| | | btnResend.TextID = StringId.GetVerificationCode; |
| | | }); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | catch { } |
| | | finally |
| | | { |
| | | |
| | | }; |
| | | } |
| | | catch { } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | if (waitPage != null) |
| | | { |
| | | waitPage.RemoveFromParent(); |
| | | waitPage = null; |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | /// <summary> |