private void checkInput() { if (number.getText().toString().length() != 11) { JUtils.Toast("请输入正确手机号"); return; } if (password.getText().toString().length() < 6 || password.getText().toString().length() > 12) { JUtils.Toast("请输入6-12位密码"); return; } getPresenter().login(number.getText().toString(), password.getText().toString()); }
private void check() { if (passwordOriginal.getText().toString().length() < 6 || passwordOriginal.getText().toString().length() > 12) { JUtils.Toast("请输入6-12位旧密码"); return; } if (passwordNew.getText().toString().length() < 6 || passwordNew.getText().toString().length() > 12) { JUtils.Toast("请输入6-12位密码"); return; } if (!passwordConfirm.getText().toString().equals(passwordNew.getText().toString())) { JUtils.Toast("2次密码不一致"); return; } getPresenter().edit(passwordOriginal.getText().toString(), passwordNew.getText().toString()); }