陈嘉乐
2020-07-10 48ba446936b51fffafa7c3600c0dadc6ac0e8c20
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);
@@ -81,7 +81,7 @@
            var btnCode = new NormalViewControl(302, 127, true);
            btnCode.X = rowPhone.Right + Application.GetRealWidth(35);
            btnCode.Y = Application.GetRealHeight(23);
            btnCode.Radius = (uint)Application.GetMinRealAverage(4);
            btnCode.RadiusEx = 12;
            btnCode.TextID = R.MyInternationalizationString.uGetVerificationCode;
            btnCode.TextColor = UserCenterColor.Current.White;
            btnCode.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
@@ -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);
@@ -154,8 +154,6 @@
                if (frameTran.Visible == false)
                {
                    frameTran.Visible = true;
                    //动画效果
                    frameAnimate.Animate = Animate.UpToDown;
                }
            };
        }
@@ -187,11 +185,11 @@
            btnCode.BackgroundColor = 0xfffebca9;
            //?s后重发
            string repeat = Language.StringByID(R.MyInternationalizationString.RepeatSend1);
            //有效时间300秒
            int waitime = 300;
            //有效时间60秒
            int waitime = 60;
            btnCode.Text = waitime + "s" + repeat;
            new System.Threading.Thread(() =>
            HdlThreadLogic.Current.RunThread(() =>
            {
                while (this.Parent != null)
                {
@@ -199,7 +197,6 @@
                    System.Threading.Thread.Sleep(1000);
                    if (waitime == 0)
                    {
                        this.canCheckCode = false;
                        Application.RunOnMainThread(() =>
                        {
                            if (btnCode != null)
@@ -221,8 +218,7 @@
                        }
                    });
                }
            })
            { IsBackground = true }.Start();
            });
        }
        #endregion