| | |
| | | /// |
| | | /// </summary> |
| | | FrameLayout bodyView; |
| | | |
| | | /// <summary> |
| | | /// 是否点击了返回,用于屏蔽EditText失去焦点检测事件 |
| | | /// </summary> |
| | | bool isHitBack; |
| | | |
| | | #endregion |
| | | |
| | | public ResetPasswordPage() |
| | |
| | | public void LoadPage() |
| | | { |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.ModifyPassword)).LoadTopView(); |
| | | |
| | | Action backAction = () => |
| | | { |
| | | isHitBack = true; |
| | | }; |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.ModifyPassword)).LoadTopView(backAction); |
| | | |
| | | #region 新密码 |
| | | FrameLayout rowView = new FrameLayout() |
| | |
| | | } |
| | | else |
| | | { |
| | | if (isHitBack) return;//点击返回关闭页面不检测提示 |
| | | |
| | | if (etPassword.Text.Length == 0) return;//没输入不检测提示 |
| | | |
| | | //校验密码是否符合要求 |
| | | if (etPassword.Text.Trim().Length < 6 || etPassword.Text.Trim().Length > 13) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | if (isHitBack) return;//点击返回关闭页面不检测提示 |
| | | |
| | | if (etRepeatPassword.Text.Length == 0) return;//没输入不检测提示 |
| | | |
| | | //校验两次输入的密码是否一致 |
| | | if (etPassword.Text.Trim() != etRepeatPassword.Text.Trim()) |
| | | { |
| | |
| | | } |
| | | }; |
| | | |
| | | Action<View, string> textChangeEventHandler = (view, textStr) => |
| | | { |
| | | LoadMothed_EnableResetButton(); |
| | | }; |
| | | etPassword.TextChangeEventHandler += textChangeEventHandler; |
| | | etRepeatPassword.TextChangeEventHandler += textChangeEventHandler; |
| | | |
| | | } |
| | | |
| | | /// <summary> |