From afb4070f2569407ce4ac0099a51c10068e6fbf38 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 7 Aug 2024 17:41:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20base=20=E7=99=BB=E5=BD=95=E9=A1=B5?= =?UTF-8?q?=E7=BE=8E=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/components/passwordForm.vue | 4 +- src/views/login/components/phoneForm.vue | 4 +- src/views/login/index.vue | 57 +++++++++++++++++++-- 3 files changed, 56 insertions(+), 9 deletions(-) diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue index a91258f3..81bcb0d4 100644 --- a/src/views/login/components/passwordForm.vue +++ b/src/views/login/components/passwordForm.vue @@ -14,7 +14,7 @@ - + @@ -23,7 +23,7 @@ - {{ $t("login.signIn") + {{ $t("login.signIn") }} diff --git a/src/views/login/components/phoneForm.vue b/src/views/login/components/phoneForm.vue index de04661d..47483181 100644 --- a/src/views/login/components/phoneForm.vue +++ b/src/views/login/components/phoneForm.vue @@ -6,7 +6,7 @@ - + - {{ $t('login.signIn') + {{ $t('login.signIn') }} - + --> + @@ -119,7 +129,12 @@ export default { showApp: false, appUrl: 'http://222.222.144.147:6013/media/zc_ehs.apk', showH5: false, - h5Url: 'http://222.222.144.147:6013/h5/' + h5Url: 'http://222.222.144.147:6013/h5/', + loginType:'password', + loginTypeOptions: [ + {label: "账号登录", value: "password"}, + {label: "手机登录", value: "phone"}, + ] } }, watch: { @@ -170,6 +185,9 @@ export default { } that.$API.system.config.base.req(req).then((res) => { that.baseConfig = res.base; + if (that.baseConfig.base_right == undefined || that.baseConfig.base_right == null) { + that.baseConfig.base_right = "中存大数据"; + } that.$store.commit("SET_baseName", res.base.base_name); that.$store.commit("SET_baseLogo", res.base.base_logo); that.$TOOL.data.set("BASE_INFO", res) @@ -221,7 +239,7 @@ export default { } .login_adv { - width: 33.33333%; + width: 40%; background-color: #555; background-size: cover; background-position: center center; @@ -379,6 +397,35 @@ export default { top: 20px; right: 20px; } +.copyright { + position: absolute; + bottom: 30px; + right: 30px; + font-size: 16px; + color: rgb(36, 93, 116); +} + +.copyright a { + color: #fff; +} + +.copyright a:hover { + color: #fff; +} + +.login-form:deep(.login-msg) { + display: flex; + width: 100%; +} + +.login-form:deep(.login-msg) .el-input { + flex: 1; +} + +.login-form:deep(.login-msg) .el-button { + margin-left: 10px; + --el-button-size: 42px; +} .login-form:deep(.login-msg-yzm) { display: flex;