|
@@ -23,8 +23,8 @@
|
|
|
<!-- 个人登录 -->
|
|
|
<div v-show="!isEnterpriseLogin" class="login-tab">
|
|
|
<v-tabs v-model="tab" align-tabs="center" color="primary" class="mb-10" @update:modelValue="tabChange">
|
|
|
- <v-tab :value="1">验证码</v-tab>
|
|
|
<v-tab :value="2">账号</v-tab>
|
|
|
+ <v-tab :value="1">验证码</v-tab>
|
|
|
<!-- <v-tab :value="3">微信</v-tab> -->
|
|
|
</v-tabs>
|
|
|
<v-window v-model="tab">
|
|
@@ -58,8 +58,8 @@
|
|
|
<v-icon v-if="isAgree" size="18" color="primary" class="mr-2" @click="isAgree = !isAgree">mdi-check-circle</v-icon>
|
|
|
<v-icon v-else size="18" color="grey" class="mr-2" @click="isAgree = !isAgree">mdi-check-circle-outline</v-icon>
|
|
|
{{ $t('login.agreeLogin') }}
|
|
|
- <span class="color" style="cursor: pointer;" @click="router.push('/userAgreement')"> [{{ $t('login.userAgreement') }}] </span>和
|
|
|
- <span class="color" style="cursor: pointer;" @click="router.push('/privacyPolicy')">[{{ $t('login.privacyPolicy') }}]</span>
|
|
|
+ <span class="color" style="cursor: pointer;" @click="windowOpen('/userAgreement')"> [{{ $t('login.userAgreement') }}] </span>和
|
|
|
+ <span class="color" style="cursor: pointer;" @click="windowOpen('/privacyPolicy')">[{{ $t('login.privacyPolicy') }}]</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -105,7 +105,7 @@ onMounted(() => {
|
|
|
|
|
|
const { t } = useI18n()
|
|
|
const router = useRouter()
|
|
|
-const tab = ref(1)
|
|
|
+const tab = ref(2)
|
|
|
const tab1 = ref(1)
|
|
|
const isAgree = ref(false)
|
|
|
const isEnterpriseLogin = ref(route.query?.entLogin || false)
|
|
@@ -113,7 +113,8 @@ const isEnterpriseLogin = ref(route.query?.entLogin || false)
|
|
|
const handleChangeLogin = () => {
|
|
|
isEnterpriseLogin.value = !isEnterpriseLogin.value
|
|
|
nextTick(() => {
|
|
|
- tab.value = isEnterpriseLogin.value ? 2 : 1 // 为了验证邮箱validate
|
|
|
+ // tab.value = isEnterpriseLogin.value ? 2 : 1 // 为了验证邮箱validate,企业邮箱登录时需要tab
|
|
|
+ tab.value = 2 // 为了验证邮箱validate,企业邮箱登录时需要tab=2
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -235,6 +236,11 @@ const verifySuccess = (params) => {
|
|
|
handleLogin()
|
|
|
}
|
|
|
|
|
|
+const windowOpen = (url) => {
|
|
|
+ // router.push(url)
|
|
|
+ if (url) window.open(url)
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|