From e62a10a6f2ede6858a3edb037d6c7017584a72bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Mon, 7 Aug 2023 18:16:50 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=E7=99=BB=E5=BD=95=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- package.json | 1 + src/assets/icons/svg/pc.svg | 1 + src/assets/icons/svg/qr.svg | 1 + src/assets/styles/login.scss | 43 ++++++++++++++++++++++++++++++++++-- src/views/login.vue | 40 ++++++++++++++++++++++++++++++++- 6 files changed, 84 insertions(+), 4 deletions(-) create mode 100644 src/assets/icons/svg/pc.svg create mode 100644 src/assets/icons/svg/qr.svg diff --git a/index.html b/index.html index 2f874e4..e078955 100644 --- a/index.html +++ b/index.html @@ -130,7 +130,7 @@
-
Loading...
+
正在加载系统资源...
diff --git a/package.json b/package.json index 36c6ac0..59d428e 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "md-editor-v3": "^1.11.11", "nprogress": "0.2.0", "pinia": "^2.0.33", + "qrcodejs2-fixes": "^0.0.2", "qs": "^6.11.0", "sortablejs": "^1.15.0", "vue": "^3.3.4", diff --git a/src/assets/icons/svg/pc.svg b/src/assets/icons/svg/pc.svg new file mode 100644 index 0000000..cbcabe7 --- /dev/null +++ b/src/assets/icons/svg/pc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/qr.svg b/src/assets/icons/svg/qr.svg new file mode 100644 index 0000000..4e50218 --- /dev/null +++ b/src/assets/icons/svg/qr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/styles/login.scss b/src/assets/styles/login.scss index 4c6580f..e00fc01 100644 --- a/src/assets/styles/login.scss +++ b/src/assets/styles/login.scss @@ -21,7 +21,7 @@ background: #ffffff; // background-color: hsla(0, 0%, 100%, 0.3); width: var(--base-login-width); - padding: 25px 15px 5px 15px; + padding: 35px 15px 5px 15px; position: relative; .input-icon { @@ -68,6 +68,45 @@ } .langSet { position: absolute; - right: 20px; + left: 20px; top: 10px; } + +.scan-wrap { + position: absolute; + right: 0; + top: 0; + width: 50px; + height: 50px; + cursor: pointer; + transition: all ease 0.3s; + overflow: hidden; + + .icon { + width: 48px; + height: 50px; + display: inline-block; + font-size: 48px; + position: absolute; + right: 1px; + top: 0px; + } + .scan-delta { + position: absolute; + width: 35px; + height: 70px; + z-index: 2; + top: 2px; + right: 21px; + background: var(--el-color-white); + transform: rotate(-45deg); + } +} + +.login-scan-container { + padding: 0 20px 20px; + display: flex; + flex-direction: column; + text-align: center; + align-items: center; +} diff --git a/src/views/login.vue b/src/views/login.vue index 67949cc..d0301c6 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -1,9 +1,13 @@