perf:登录页面优化

This commit is contained in:
不做码农 2022-06-25 11:47:53 +08:00
parent c7728902bb
commit f10f608d9a
12 changed files with 26 additions and 16 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

View File

@ -14,13 +14,13 @@
.title { .title {
margin: 0px auto 30px auto; margin: 0px auto 30px auto;
text-align: center; text-align: center;
color: #fff; // color: #fff;
} }
.login-form { .login-form {
border-radius: 6px; border-radius: 6px;
// background: #ffffff; background: #ffffff;
background-color: hsla(0, 0%, 100%, 0.3); // background-color: hsla(0, 0%, 100%, 0.3);
width: 310px; width: 310px;
padding: 25px 15px 5px 15px; padding: 25px 15px 5px 15px;
position: relative; position: relative;

View File

@ -8,6 +8,8 @@
"loginSuccess": "login success", "loginSuccess": "login success",
"loginTimeOut": "Login status has expired, please log in again", "loginTimeOut": "Login status has expired, please log in again",
"reLogin": "re-register", "reLogin": "re-register",
"invalidSession": "Invalid session, or session has expired, please log in again." "invalidSession": "Invalid session, or session has expired, please log in again.",
"otherLoginWay": "Other",
"register": "Sign up now"
} }
} }

View File

@ -8,6 +8,8 @@
"loginSuccess": "登录成功", "loginSuccess": "登录成功",
"loginTimeOut": "登录状态已过期,请重新登录", "loginTimeOut": "登录状态已过期,请重新登录",
"reLogin": "重新登录", "reLogin": "重新登录",
"invalidSession": "无效的会话,或者会话已过期,请重新登录。" "invalidSession": "无效的会话,或者会话已过期,请重新登录。",
"otherLoginWay": "其他登录方式",
"register": "立即注册"
} }
} }

View File

@ -8,6 +8,8 @@
"loginSuccess": "登錄成功", "loginSuccess": "登錄成功",
"loginTimeOut": "登錄狀態已過期,請重新登錄", "loginTimeOut": "登錄狀態已過期,請重新登錄",
"reLogin": "重新登錄", "reLogin": "重新登錄",
"invalidSession": "無效的會話,或者會話已過期,請重新登錄。" "invalidSession": "無效的會話,或者會話已過期,請重新登錄。",
"otherLoginWay": "其他登錄方式",
"register": "立即註冊"
} }
} }

View File

@ -44,7 +44,7 @@
<div style="display: flex; justify-content: space-between"> <div style="display: flex; justify-content: space-between">
<el-checkbox v-model="loginForm.rememberMe">{{ $t('login.rememberMe') }}</el-checkbox> <el-checkbox v-model="loginForm.rememberMe">{{ $t('login.rememberMe') }}</el-checkbox>
<router-link class="link-type" :to="'/register'">立即注册</router-link> <router-link class="link-type" :to="'/register'">{{ $t('login.register') }}</router-link>
</div> </div>
<el-form-item style="width: 100%"> <el-form-item style="width: 100%">
@ -53,12 +53,12 @@
<span v-else> 中...</span> <span v-else> 中...</span>
</el-button> </el-button>
</el-form-item> </el-form-item>
<el-form-item> <div class="other-login">
<img src="../assets/icons/gitee.png" alt="" class="login-icon" @click="onAuth('GITEE')" /> <el-divider>{{ $t('login.otherLoginWay') }}</el-divider>
<img src="../assets/icons/github.png" alt="" class="login-icon" /> <img src="../assets/icons/gitee-fill-round.png" alt="" class="login-icon" @click="onAuth('GITEE')" />
<img src="../assets/icons/dingding.png" alt="" class="login-icon" /> <img src="../assets/icons/github-fill.png" alt="" class="login-icon" />
<img src="../assets/icons/wechat.png" alt="" class="login-icon" /> <img src="../assets/icons/wechat-fill.png" alt="" class="login-icon" />
</el-form-item> </div>
</el-form> </el-form>
<!-- 底部 --> <!-- 底部 -->
@ -177,5 +177,9 @@ getCookie()
.login-icon { .login-icon {
width: 30px; width: 30px;
margin-right: 10px; margin-right: 10px;
cursor: pointer;
}
.other-login {
padding: 0px 10px 5px;
} }
</style> </style>