|
|
@@ -60,12 +60,14 @@ import ieCaptcha from '@/components/ie-sms/ie-captcha.vue';
|
|
|
import { useUserStore } from '@/store/userStore';
|
|
|
import { useTransferPage } from '@/hooks/useTransferPage';
|
|
|
import { validatePhone } from '@/hooks/useValidation';
|
|
|
+import { useAppConfig } from '@/hooks/useAppConfig';
|
|
|
import { verifyCard } from '@/api/modules/user';
|
|
|
import { EnumBindScene, EnumSmsApiType } from '@/common/enum';
|
|
|
import { login } from '@/api/modules/login';
|
|
|
import { LoginRequestDTO, MobileLoginResponseDTO } from '@/types/user';
|
|
|
const { transferBack, transferTo } = useTransferPage();
|
|
|
const userStore = useUserStore();
|
|
|
+const { isSmsCaptchaEnable } = useAppConfig();
|
|
|
|
|
|
const loginType = ref('phone');
|
|
|
const phone = ref('');
|
|
|
@@ -146,7 +148,11 @@ const handleLogin = async () => {
|
|
|
if (loginType.value === 'phone') {
|
|
|
submitLogin();
|
|
|
} else if (loginType.value === 'card') {
|
|
|
- captchaRef.value.open();
|
|
|
+ if (isSmsCaptchaEnable.value) {
|
|
|
+ captchaRef.value.open();
|
|
|
+ } else {
|
|
|
+ submitLogin();
|
|
|
+ }
|
|
|
userStore.rememberLoginInfo(!!rememberPassword.value[0], cardNo.value, cardPassword.value);
|
|
|
// submitLogin();
|
|
|
}
|