From b94c6978882fd873e83632d7894374b0dad141d4 Mon Sep 17 00:00:00 2001 From: liujun Date: Mon, 30 Jun 2025 17:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 88 +++++++++++++++++++++------------------ 1 file changed, 47 insertions(+), 41 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index ca797f1..330cbb0 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,10 +1,10 @@ @@ -49,15 +69,12 @@ import { ref } from "vue"; import { useRouter } from "vue-router"; import Verification from "@/components/verification/index"; import { useUserStore } from "@/pinia/user"; -import { getAppPath, getUserInfo, Login } from "@/request/api"; +import { getUserInfo, Login } from "@/request/api"; import { debounce } from "throttle-debounce"; import useForm from "@/hooks/useForm.js"; import dayjs from "dayjs"; import { encrypt } from "@/assets/js/aes_secret.js"; import { ElMessage } from "element-plus"; -import { useQRCode } from "@vueuse/integrations/useQRCode"; -import { getFileUrl } from "@/assets/js/utils.js"; - const userStore = useUserStore(); const router = useRouter(); @@ -74,16 +91,6 @@ const rules = { password: [{ required: true, message: "请输入密码", trigger: "blur" }], code: [{ required: true, message: "请输入验证码", trigger: "blur" }], }; -const fnGetAppDownloadPath = async () => { - const { versionmanager } = await getAppPath(); - appPath.value = useQRCode(() => getFileUrl() + versionmanager.fileUrl, { - width: 100, - height: 100, - margin: 1, - correctLevel: "H", - }); -}; -fnGetAppDownloadPath(); const fnLogin = debounce( 1000, () => { @@ -122,13 +129,10 @@ const fnSubmitLogin = async () => { width: 100%; background-color: #2d3a4b; overflow: hidden; - background-image: url(../../assets/images/login/bg2.png); + background-image: url(../../assets/images/login/bg.png); background-repeat: no-repeat; - background-size: 70% 100%; - float: left; - position: relative; + background-size: 100% 100%; } - .login { width: 100%; max-width: 1920px; @@ -138,21 +142,24 @@ const fnSubmitLogin = async () => { background-color: #fff; .logo { - top: 20px; - left: 20px; - position: absolute; + margin-top: 20px; + margin-left: 20px; + width: 100%; + pointer-events: none; } .form { - float: right; - padding-left: 100px; - padding-right: 100px; - padding-top: 150px; - width: 30%; - height: 100%; - //padding: 40px 50px; - background-color: #d6def2; - //z-index: 1; + border-radius: 5px; + box-shadow: 0 0 20px rgb(109 109 109 / 40%); + position: absolute; + right: 230px; + top: 50%; + transform: translateY(-50%); + width: 400px; + height: 490px; + padding: 40px 50px; + background-color: #fff; + z-index: 1; &:after { content: ""; @@ -212,13 +219,12 @@ const fnSubmitLogin = async () => { width: 100%; height: 80px; font-size: 14px; - color: white; - //color: rgba(0, 0, 0, 0.5); + color: rgba(0, 0, 0, 0.5); text-align: center; position: absolute; bottom: 0; left: 50%; - transform: translateX(-70%); + transform: translateX(-50%); z-index: 1; line-height: 80px; }