Commit 4722af92 authored by tyyin lan's avatar tyyin lan

chore(登录页): sms获取优化

parent 55414155
...@@ -160,7 +160,7 @@ function onCountdownFinish() { ...@@ -160,7 +160,7 @@ function onCountdownFinish() {
function getInputPhoneNumber() { function getInputPhoneNumber() {
return currentPhoneNumberArea.value !== '+86' return currentPhoneNumberArea.value !== '+86'
? `${currentPhoneNumberArea.value}${smsLoginForm.value.phoneNumber}` ? encodeURIComponent(`${currentPhoneNumberArea.value}${smsLoginForm.value.phoneNumber}`)
: smsLoginForm.value.phoneNumber : smsLoginForm.value.phoneNumber
} }
...@@ -195,7 +195,7 @@ function handleLoginSubmit(method: LoginMethod) { ...@@ -195,7 +195,7 @@ function handleLoginSubmit(method: LoginMethod) {
payload = { payload = {
loginChannel: 'MEMBER_PLATFOMR_SMS', loginChannel: 'MEMBER_PLATFOMR_SMS',
account: getInputPhoneNumber(), account: smsLoginForm.value.phoneNumber,
authCode: smsLoginForm.value.code, authCode: smsLoginForm.value.code,
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment