HDL Home App 第二版本 旧平台金堂用 正在使用
chenqiyang
2022-06-22 dc0309e64f02227d8e1468b7326c07955f804612
ZigbeeApp/Shared/Phone/UserCenter/Password/ForgotAccountPasswordForm.cs
@@ -57,7 +57,7 @@
            //右边偏移量->增加宽度
            rowPhone.RightOffset = -ControlCommonResourse.XXLeft;
            rowPhone.Y = Application.GetRealHeight(23);
            rowPhone.Width = Application.GetMinRealAverage(628);
            rowPhone.Width = this.GetPictrueRealSize(628);
            bodyFrameLayout.AddChidren(rowPhone);
            //请输入邮箱或手机号
            string phoneValue = string.IsNullOrEmpty(UserCenterResourse.UserInfo.Phone) == true ? string.Empty : "+" + UserCenterResourse.UserInfo.AreaCode + " " + UserCenterResourse.UserInfo.Phone;
@@ -70,7 +70,7 @@
            var rowCode = new FrameRowControl();
            rowCode.Y = rowPhone.Bottom + Application.GetRealHeight(20);
            rowCode.Width = Application.GetMinRealAverage(628);
            rowCode.Width = this.GetPictrueRealSize(628);
            bodyFrameLayout.AddChidren(rowCode);
            //请输入验证码
            var txtCode = rowCode.AddLeftInput("", 600);
@@ -110,7 +110,7 @@
            }
            //显示可以切换邮箱->一个可以遮住Body的东西
            var frameTran = new FrameLayoutControl();
            var frameTran = new FrameLayoutStatuControl();
            frameTran.UseClickStatu = false;
            frameTran.BackgroundColor = UserCenterColor.Current.Transparent;
            bodyFrameLayout.AddChidren(frameTran);
@@ -122,11 +122,11 @@
            var frameList = new FrameLayout();
            frameList.X = ControlCommonResourse.XXLeft - Application.GetRealWidth(17);
            frameList.Y = rowPhone.Bottom - ControlCommonResourse.BottomLineHeight - 1;
            frameList.Width = Application.GetMinRealAverage(628);
            frameList.Height = Application.GetMinRealAverage(176);
            frameList.Width = this.GetPictrueRealSize(628);
            frameList.Height = this.GetPictrueRealSize(176);
            frameTran.AddChidren(frameList);
            //动画用
            var frameAnimate = new FrameLayoutControl();
            var frameAnimate = new FrameLayoutStatuControl();
            frameAnimate.UseClickStatu = false;
            frameList.AddChidren(frameAnimate);
@@ -134,8 +134,8 @@
            btnPic.UnSelectedImagePath = "Item/ForgotPswList.png";
            frameAnimate.AddChidren(btnPic);
            var btnEmail = new NormalViewControl(450, 58, true);
            btnEmail.X = Application.GetMinRealAverage(46);
            btnEmail.Y = Application.GetMinRealAverage(32);
            btnEmail.X = this.GetPictrueRealSize(46);
            btnEmail.Y = this.GetPictrueRealSize(32);
            btnEmail.TextColor = UserCenterColor.Current.TextGrayColor3;
            btnEmail.Text = UserCenterResourse.UserInfo.Email;
            frameAnimate.AddChidren(btnEmail);
@@ -166,13 +166,13 @@
        /// 发送验证码
        /// </summary>
        /// <param name="btnCode"></param>
        private async void SetVerificationCode(NormalViewControl btnCode)
        private void SetVerificationCode(NormalViewControl btnCode)
        {
            string account = this.strPhoneEmail.StartsWith("+") == true ? UserCenterResourse.UserInfo.Phone : UserCenterResourse.UserInfo.Email;
            var sendCodePra = new SendCodePra();
            sendCodePra.Account = account;
            sendCodePra.AreaCode = Convert.ToInt32(UserCenterResourse.UserInfo.AreaCode);
            bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ForgetPassword", false, sendCodePra);
            bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ForgetPassword", false, sendCodePra);
            if (flage == false)
            {
                return;
@@ -197,7 +197,7 @@
                    System.Threading.Thread.Sleep(1000);
                    if (waitime == 0)
                    {
                        Application.RunOnMainThread(() =>
                        HdlThreadLogic.Current.RunMain(() =>
                        {
                            if (btnCode != null)
                            {
@@ -210,13 +210,13 @@
                        });
                        break;
                    }
                    Application.RunOnMainThread(() =>
                    HdlThreadLogic.Current.RunMain(() =>
                    {
                        if (btnCode != null)
                        {
                            btnCode.Text = waitime + "s" + repeat;
                        }
                    });
                    }, ShowErrorMode.NO);
                }
            });
        }
@@ -267,14 +267,14 @@
        /// 验证验证码
        /// </summary>
        /// <returns></returns>
        private async void CheckVerificationCode(TextInputControl txtCode, string code)
        private void CheckVerificationCode(TextInputControl txtCode, string code)
        {
            string account = this.strPhoneEmail.StartsWith("+") == true ? UserCenterResourse.UserInfo.Phone : UserCenterResourse.UserInfo.Email;
            var checkCodePra = new CheckCodePra();
            checkCodePra.Code = code;
            checkCodePra.Account = account;
            bool flage = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra);
            bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ValidatorCode", false, checkCodePra);
            if (flage == false)
            {
                //验证码错误,请重新输入