From ce95a1340c1fbf53cd129ee9e65c2ddb77e0f7fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com>
Date: Wed, 31 Aug 2022 23:56:31 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=AC=AC=E4=B8=89?=
=?UTF-8?q?=E6=96=B9=E6=8E=88=E6=9D=83=E8=AE=A4=E8=AF=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Former-commit-id: ddd9fa77ee442152c5212c69ef0ca879814f213a
---
src/views/login/components/SocialSignin.vue | 81 +++++++++++++++++++++
src/views/login/index.vue | 49 +++++++++++--
2 files changed, 122 insertions(+), 8 deletions(-)
create mode 100644 src/views/login/components/SocialSignin.vue
diff --git a/src/views/login/components/SocialSignin.vue b/src/views/login/components/SocialSignin.vue
new file mode 100644
index 00000000..e0e225fc
--- /dev/null
+++ b/src/views/login/components/SocialSignin.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+ WeChat
+
+
+
+
+
+ QQ
+
+
+
+
+
+
+
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 4bb2c064..ad5a9981 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -89,11 +89,22 @@
>{{ $t('login.login') }}
+
- {{ $t('login.username') }}: admin
+ {{ $t('login.username') }}: admin
+ {{ $t('login.password') }}: 123456
+
+
+
- {{ $t('login.password') }}: 123456
+ Or connect with
+
@@ -101,6 +112,15 @@
{{ $t('login.copyright') }}
{{ $t('login.icp') }}
+
+
+ Can not be simulated on local, so please combine you own business
+ simulation! ! !
+
+
+
+
+
@@ -112,6 +132,7 @@ import { ElForm, ElInput } from 'element-plus';
import router from '@/router';
import LangSelect from '@/components/LangSelect/index.vue';
import SvgIcon from '@/components/SvgIcon/index.vue';
+import SocialSignin from './components/SocialSignin.vue';
// 状态管理依赖
import useStore from '@/store';
@@ -133,13 +154,11 @@ const state = reactive({
username: 'admin',
password: '123456',
code: '',
- uuid: '',
+ uuid: ''
} as LoginFormData,
loginRules: {
username: [{ required: true, trigger: 'blur' }],
- password: [
- { required: true, trigger: 'blur', validator: validatePassword },
- ],
+ password: [{ required: true, trigger: 'blur', validator: validatePassword }]
},
loading: false,
passwordType: 'password',
@@ -149,6 +168,7 @@ const state = reactive({
otherQuery: {},
clientHeight: document.documentElement.clientHeight,
showCopyright: true,
+ showDialog: false
});
function validatePassword(rule: any, value: any, callback: any) {
@@ -167,6 +187,7 @@ const {
captchaBase64,
capslockTooltipDisabled,
showCopyright,
+ showDialog
} = toRefs(state);
function checkCapslock(e: any) {
@@ -225,7 +246,7 @@ watch(
}
},
{
- immediate: true,
+ immediate: true
}
);
@@ -407,4 +428,16 @@ $light_gray: #eee;
}
}
}
+
+.thirdparty-button {
+ position: absolute;
+ right: 40px;
+ bottom: 6px;
+}
+
+@media only screen and (max-width: 470px) {
+ .thirdparty-button {
+ display: none;
+ }
+}