From 48c76cb0bb6a5acfef5f038b1522de5d6fe7e5de Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Mon, 29 Sep 2025 15:29:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E8=B7=9F=E9=9A=8F?=
=?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E5=8F=98=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/login/index.vue | 212 ++++++++++++++------------------------
1 file changed, 78 insertions(+), 134 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 484ad362..8b51b604 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -7,20 +7,13 @@
-
+
@@ -29,77 +22,43 @@
-
+
{{ $t('login:title:system') }}
-
-
+
+
-
+
-
+
-
+
-
+
-
+ " size="medium" @click.native.prevent="handleLogin">
{{ $t('login:button:login') }}
-
+
-
+
{{ $t('login:button:forgetPassword') }}
@@ -152,19 +98,14 @@
-
-
-
+
+
-
+ ">
+
About
关于
-
+
{{ $t('login:title:system') }}
@@ -247,13 +168,8 @@
-
+
@@ -339,7 +255,13 @@ export default {
this.location = this.$route.query.location
zzSessionStorage.setItem('loginType', this.loginType)
localStorage.setItem('location', this.location)
- if (process.env.VUE_APP_OSS_CONFIG_REGION === 'oss-us-west-1') {
+ // zh-CN navigator.language
+ if (navigator.language !== 'zh-CN') {
+ this.$i18n.locale = 'en'
+ this.setLanguage('en')
+ this.$updateDictionary()
+ }
+ else if (process.env.VUE_APP_OSS_CONFIG_REGION === 'oss-us-west-1') {
this.$i18n.locale = 'en'
this.setLanguage('en')
this.$updateDictionary()
@@ -516,7 +438,7 @@ export default {
Array.isArray(this.$store.state.user.roles) &&
this.$store.state.user.roles.filter((item) => item.IsUserRoleDisabled)
.length ===
- this.$store.state.user.roles.length - 1
+ this.$store.state.user.roles.length - 1
) {
let role = this.$store.state.user.roles.find(
(item) => !item.IsUserRoleDisabled
@@ -640,6 +562,7 @@ $cursor: #fff;
// }
}
}
+
.login-r {
.el-form-item {
border: 1px solid rgba(255, 255, 255, 0.1);
@@ -655,23 +578,28 @@ $cursor: #fff;
$bg: #2d3a4b;
$dark_gray: #889aa4;
$light_gray: #606266;
+
.login-container {
position: relative;
width: 100%;
height: 100%;
overflow: auto;
background: rgb(249, 249, 249);
+
::v-deep .el-input__inner::placeholder {
color: $dark_gray;
}
+
.login-header {
margin: 10px 0px 20px 10px;
height: 3rem;
width: 720px;
+
.login-logo {
height: 100%;
}
}
+
.login-body {
position: absolute;
left: 50%;
@@ -685,32 +613,39 @@ $light_gray: #606266;
box-sizing: border-box;
background: rgb(255, 255, 255);
border-radius: 10px 0px 0px 10px;
+
.login-l {
position: relative;
float: left;
width: 50%;
height: 100%;
+
.login-logo {
position: absolute;
top: 35px;
left: 50px;
+
img {
height: 40px;
}
+
.usa-logo {
height: 60px;
}
}
+
.login-image {
position: absolute;
top: 10px;
left: 0px;
// transform: translateY(-50%);
height: 100%;
+
img {
height: 100%;
}
}
+
.login-image-usa {
width: 100%;
display: flex;
@@ -718,6 +653,7 @@ $light_gray: #606266;
justify-content: flex-end;
}
}
+
.login-r {
position: relative;
float: left;
@@ -735,16 +671,19 @@ $light_gray: #606266;
margin: 0 auto;
overflow: hidden;
}
+
.title-container {
// margin-bottom: 50px;
text-align: center;
margin-top: 20%;
+
.title {
font-size: 35px;
color: $light_gray;
text-align: center;
font-weight: bold;
}
+
.title-logo-message {
font-size: 26px;
color: $light_gray;
@@ -784,6 +723,7 @@ $light_gray: #606266;
}
}
}
+
.login-footer {
position: absolute;
bottom: 50px;
@@ -797,6 +737,7 @@ $light_gray: #606266;
align-items: center;
// color: rgb(180, 190, 199);
color: #909399;
+
a {
display: inline-block;
text-decoration: none;
@@ -805,13 +746,16 @@ $light_gray: #606266;
display: flex;
justify-content: center;
}
+
span {
margin: 0 2px;
}
+
img {
height: 20px;
line-height: 20px;
}
+
// p{
// display: inline-block;
// height:20px;