Skip to content

Commit

Permalink
[Feat] #187 - 휴대폰 인증
Browse files Browse the repository at this point in the history
- 휴대폰 번호 인증 시 인증번호 받기 클릭하면 휴대폰 입력란 비활성화
  • Loading branch information
WooBinHam committed Sep 20, 2023
1 parent 173adc7 commit e95927a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class PhoneVerifyFragment : BaseFragment<FragmentPhoneVerifyBinding, PhoneVerify
clTop.btnBack.setOnClickListener {
navigateToBackStack()
}
etFindUserIdPhoneNumber.apply {
isEnabled = true
}
}
getVerficationCodeBtn()
sendVerifyCode()
Expand Down Expand Up @@ -71,6 +74,9 @@ class PhoneVerifyFragment : BaseFragment<FragmentPhoneVerifyBinding, PhoneVerify

private fun getVerficationCodeBtn() {
binding.btnFindUserIdSendVarificationCode.setOnClickListener {
binding.etFindUserIdPhoneNumber.apply {
isEnabled = false
}
val phoneNumber = binding.etFindUserIdPhoneNumber.text.toString()
if (phoneNumber == "") {
viewModel.showToastMessage(resources.getString(R.string.please_input_phoneNum))
Expand Down Expand Up @@ -100,6 +106,7 @@ class PhoneVerifyFragment : BaseFragment<FragmentPhoneVerifyBinding, PhoneVerify
if (codeStr == "") {
viewModel.showToastMessage(resources.getString(R.string.please_input_verifyNum))
} else {
Log.d("인증번호 형태", "$phoneNumber ${codeStr.toInt()}")
viewModel.checkVerifyCode(phoneNumber, codeStr.toInt())
}
}
Expand Down

0 comments on commit e95927a

Please sign in to comment.