| | |
| | | btnErrorMsg.TextAlignment = TextAlignment.Center;
|
| | | btnErrorMsg.TextColor = 0xfff75858;
|
| | | btnErrorMsg.TextID = R.MyInternationalizationString.uVerificationCodeErrorInputAgain;
|
| | | btnErrorMsg.IsBold = true;
|
| | | bodyFrameLayout.AddChidren(btnErrorMsg);
|
| | | btnErrorMsg.Visible = false;
|
| | |
|
| | |
| | | bodyFrameLayout.AddChidren(btnNext);
|
| | | btnNext.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //清空输入的值
|
| | | btnCodeControl.ClearInputValue();
|
| | | //发送验证码到邮箱
|
| | | this.SendCodeToEmail(btnNext);
|
| | | };
|
| | |
| | | /// <summary>
|
| | | /// 发送验证码到邮箱
|
| | | /// </summary>
|
| | | private async void SendCodeToEmail(BottomClickButton btnNext)
|
| | | private void SendCodeToEmail(BottomClickButton btnNext)
|
| | | {
|
| | | var sendCodePra = new SendCodePra();
|
| | |
|
| | | bool falge = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/LoginSendVerCode", false, sendCodePra);
|
| | | bool falge = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/LoginSendVerCode", false, sendCodePra);
|
| | | if (falge == false)
|
| | | {
|
| | | return;
|
| | |
| | | /// 验证验证码
|
| | | /// </summary>
|
| | | /// <returns></returns>
|
| | | private async void CheckVerificationCode(string code)
|
| | | private void CheckVerificationCode(string code)
|
| | | {
|
| | | if (this.canCheckCode == false)
|
| | | {
|
| | |
| | | var checkCodePra = new CheckCodePra();
|
| | | checkCodePra.Code = code;
|
| | |
|
| | | bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra);
|
| | | bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra);
|
| | | if (flage == false)
|
| | | {
|
| | | //验证码错误,请重新输入
|