| | |
| | | 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;
|
| | |
| | | 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
|