From 16dab0a337c7790a8f3a369c1dcf5d9933ab2d1d Mon Sep 17 00:00:00 2001 From: Nevermore <15972699417@163.com> Date: Fri, 2 Aug 2024 21:38:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/LoginDialog/index.vue | 40 +++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/src/components/LoginDialog/index.vue b/src/components/LoginDialog/index.vue index ced930de..06cba609 100644 --- a/src/components/LoginDialog/index.vue +++ b/src/components/LoginDialog/index.vue @@ -2,18 +2,35 @@ - 微信扫码一键登录 + {{tipInfo}}登录 仅用于身份识别,yft-design不会获取您的任何隐私信息~ - +
+ +
+ + + + + + + + +
+
@@ -21,10 +38,10 @@ - + - +
@@ -49,6 +66,8 @@ import { localStorage } from '@/utils/storage'; const dialogWidth = computed(() => isMobile() ? '75%' : '35%') const qrcode = ref('') const dialogVisible = ref(false) +const loginType = ref(1) +const tipInfo = ref('微信') const { loginStatus, username } = storeToRefs(useUserStore()) const props = defineProps({ visible: { @@ -63,9 +82,6 @@ const emit = defineEmits<{ watch(() => props.visible, (val) => { dialogVisible.value = val - // if (val) { - // getOauthWechat() - // } }) const closeLogin = () => { @@ -97,6 +113,16 @@ const loginGithub = async () => { } } +const loginQQ = () => { + loginType.value = 1 + tipInfo.value = '微信' +} + +const loginEmail = () => { + loginType.value = 2 + tipInfo.value = '邮箱' +} +