Commit 4b38baaa authored by tyyin lan's avatar tyyin lan

chore: 谷歌登录按钮加载判断

parent 615fb043
...@@ -101,6 +101,7 @@ const currentPhoneNumberArea = ref<'+86' | '+852'>('+852') ...@@ -101,6 +101,7 @@ const currentPhoneNumberArea = ref<'+86' | '+852'>('+852')
const countdownActive = ref(true) const countdownActive = ref(true)
const isShowCountdown = ref(false) const isShowCountdown = ref(false)
const countdownDuration = ref<number>(60000) const countdownDuration = ref<number>(60000)
const googleLoginBtnLoading = ref(false)
const phoneNumberAreaOptions = computed(() => { const phoneNumberAreaOptions = computed(() => {
return [ return [
...@@ -353,6 +354,8 @@ function initializeGoogleSignIn(clientId: string) { ...@@ -353,6 +354,8 @@ function initializeGoogleSignIn(clientId: string) {
logo_alignment: 'left', logo_alignment: 'left',
locale: systemLanguageStore.currentLanguage, locale: systemLanguageStore.currentLanguage,
}) })
googleLoginBtnLoading.value = true
} }
// window.google.accounts.id.prompt((notification: any) => { // window.google.accounts.id.prompt((notification: any) => {
...@@ -631,9 +634,11 @@ function getGoogleLoginClientId() { ...@@ -631,9 +634,11 @@ function getGoogleLoginClientId() {
</button> </button>
</div> </div>
<div class="py-[10px] text-center text-[12px] text-[#999999]">{{ t('common_module.or') }}</div> <div v-show="googleLoginBtnLoading" class="py-[10px] text-center text-[12px] text-[#999999]">
{{ t('common_module.or') }}
</div>
<div class="flex-center flex"> <div v-show="googleLoginBtnLoading" class="flex-center flex">
<div ref="googleLoginBtnRef"></div> <div ref="googleLoginBtnRef"></div>
</div> </div>
</div> </div>
......
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