| | |
| | | //右边偏移量->增加宽度
|
| | | 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;
|
| | |
| | |
|
| | | 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);
|
| | |
| | | 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;
|
| | |
| | | }
|
| | |
|
| | | //显示可以切换邮箱->一个可以遮住Body的东西
|
| | | var frameTran = new FrameLayoutControl();
|
| | | var frameTran = new FrameLayoutStatuControl();
|
| | | frameTran.UseClickStatu = false;
|
| | | frameTran.BackgroundColor = UserCenterColor.Current.Transparent;
|
| | | bodyFrameLayout.AddChidren(frameTran);
|
| | |
| | | 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);
|
| | |
|
| | |
| | | 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);
|
| | |
| | | if (frameTran.Visible == false)
|
| | | {
|
| | | frameTran.Visible = true;
|
| | | //动画效果
|
| | | frameAnimate.Animate = Animate.UpToDown;
|
| | | }
|
| | | };
|
| | | }
|
| | |
| | | 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)
|
| | | {
|
| | |
| | | System.Threading.Thread.Sleep(1000);
|
| | | if (waitime == 0)
|
| | | {
|
| | | this.canCheckCode = false;
|
| | | Application.RunOnMainThread(() =>
|
| | | {
|
| | | if (btnCode != null)
|
| | |
| | | }
|
| | | });
|
| | | }
|
| | | })
|
| | | { IsBackground = true }.Start();
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|