|  | @@ -302,20 +302,27 @@ class LoginActivity : BaseMVVMActivity<ActivityLoginBinding, LoginViewModel>(),
 | 
	
		
			
				|  |  |          loginType = index
 | 
	
		
			
				|  |  |          if (index == 0) {
 | 
	
		
			
				|  |  |              binding {
 | 
	
		
			
				|  |  | -                username.hint = "请输入用户名"
 | 
	
		
			
				|  |  | -                password.hint = "请输入密码"
 | 
	
		
			
				|  |  | -                password.inputType = InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD
 | 
	
		
			
				|  |  | -                tvCode.post {
 | 
	
		
			
				|  |  | +                password.post {
 | 
	
		
			
				|  |  | +                    username.hint = "请输入用户名"
 | 
	
		
			
				|  |  | +                    password.hint = "请输入密码"
 | 
	
		
			
				|  |  | +                    password.inputType =
 | 
	
		
			
				|  |  | +                        InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_PASSWORD
 | 
	
		
			
				|  |  | +                    if (password.text.toString().trim().isNotEmpty()) {
 | 
	
		
			
				|  |  | +                        password.setSelection(password.text.toString().trim().length)
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                      tvCode.clearAnimation()
 | 
	
		
			
				|  |  |                      tvCode.visibility = View.GONE
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |              binding {
 | 
	
		
			
				|  |  | -                username.hint = "请输入手机号"
 | 
	
		
			
				|  |  | -                password.hint = "请输入验证码"
 | 
	
		
			
				|  |  | -                password.inputType = InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
 | 
	
		
			
				|  |  | -                tvCode.post {
 | 
	
		
			
				|  |  | +                password.post {
 | 
	
		
			
				|  |  | +                    username.hint = "请输入手机号"
 | 
	
		
			
				|  |  | +                    password.hint = "请输入验证码"
 | 
	
		
			
				|  |  | +                    password.inputType = InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD or InputType.TYPE_CLASS_NUMBER
 | 
	
		
			
				|  |  | +                    if (password.text.toString().trim().isNotEmpty()) {
 | 
	
		
			
				|  |  | +                        password.setSelection(password.text.toString().trim().length)
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                      tvCode.visibility = View.VISIBLE
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 |