黄学彪
2020-09-18 c7df85937f73fb347ee0b19e9c052d2d00a6df6c
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/VerificationCodeControl.cs
@@ -131,6 +131,9 @@
                //    }
                //}
                txtCode.Parent.BorderColor = UserCenterColor.Current.TextFrameSelectColor;
#if Android
                txtCode.SetSelectionEnd();
#endif
            }
            else
            {
@@ -155,6 +158,10 @@
            if (textValue.Length == this.CodeLenth)
            {
                dicCodeControls[this.CodeLenth - 1].Foucs = true;
#if Android
                //光标至于最后
                dicCodeControls[this.CodeLenth - 1].SetSelectionEnd();
#endif
                for (int i = 0; i < this.CodeLenth; i++)
                {
                    //先移除事件
@@ -183,9 +190,17 @@
                if (dicCodeControls.ContainsKey(index + 1) == true)
                {
                    dicCodeControls[index + 1].Foucs = true;
#if Android
                    //光标至于最后
                    dicCodeControls[index + 1].SetSelectionEnd();
#endif
                }
                else
                {
#if Android
                    //光标至于最后
                    txtCode.SetSelectionEnd();
#endif
                    //最后一位输入完成,校验验证码
                    string code = string.Empty;
                    for (int i = 0; i < this.CodeLenth; i++)
@@ -212,6 +227,10 @@
                    if (dicCodeControls.ContainsKey(index - 1) == true)
                    {
                        dicCodeControls[index - 1].Foucs = true;
#if Android
                        //光标至于最后
                        dicCodeControls[index - 1].SetSelectionEnd();
#endif
                    }
                }
            }