升级登陆页面样式
This commit is contained in:
parent
ed68db3b42
commit
2aa3ba9dd5
Binary file not shown.
After Width: | Height: | Size: 595 KiB |
|
@ -1,54 +1,59 @@
|
|||
<template>
|
||||
<div class="login-container">
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
||||
<div class="login-container" :style="{backgroundImage:'url('+require('@/assets/background.png')+')'}" style="background-size: cover;">
|
||||
|
||||
<div class="title-container">
|
||||
<h3 class="title">文件共享管理系统</h3>
|
||||
</div>
|
||||
<div class="login-card">
|
||||
|
||||
<el-form-item prop="phone">
|
||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
||||
|
||||
<div class="title-container">
|
||||
<h3 class="title">综合协同办公系统</h3>
|
||||
</div>
|
||||
|
||||
<el-form-item prop="phone">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="user" />
|
||||
</span>
|
||||
<el-input
|
||||
ref="phone"
|
||||
v-model="loginForm.phone"
|
||||
placeholder="手机号"
|
||||
name="phone"
|
||||
type="text"
|
||||
tabindex="1"
|
||||
auto-complete="on"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-input
|
||||
ref="phone"
|
||||
v-model="loginForm.phone"
|
||||
placeholder="手机号"
|
||||
name="phone"
|
||||
type="text"
|
||||
tabindex="1"
|
||||
auto-complete="on"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item prop="password">
|
||||
<el-form-item prop="password">
|
||||
<span class="svg-container">
|
||||
<svg-icon icon-class="password" />
|
||||
</span>
|
||||
<el-input
|
||||
:key="passwordType"
|
||||
ref="password"
|
||||
v-model="loginForm.password"
|
||||
:type="passwordType"
|
||||
placeholder="密码"
|
||||
name="password"
|
||||
tabindex="2"
|
||||
auto-complete="on"
|
||||
@keyup.enter.native="login"
|
||||
/>
|
||||
<span class="show-pwd" @click="showPwd">
|
||||
<el-input
|
||||
:key="passwordType"
|
||||
ref="password"
|
||||
v-model="loginForm.password"
|
||||
:type="passwordType"
|
||||
placeholder="密码"
|
||||
name="password"
|
||||
tabindex="2"
|
||||
auto-complete="on"
|
||||
@keyup.enter.native="login"
|
||||
/>
|
||||
<span class="show-pwd" @click="showPwd">
|
||||
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'" />
|
||||
</span>
|
||||
</el-form-item>
|
||||
</el-form-item>
|
||||
|
||||
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="login">登录</el-button>
|
||||
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px; background-color: #5f76ec" @click.native.prevent="login">登录</el-button>
|
||||
|
||||
<!-- <div class="tips">-->
|
||||
<!-- <span style="margin-right:20px;">phone: admin</span>-->
|
||||
<!-- <span> password: any</span>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="tips">-->
|
||||
<!-- <span style="margin-right:20px;">phone: admin</span>-->
|
||||
<!-- <span> password: any</span>-->
|
||||
<!-- </div>-->
|
||||
|
||||
</el-form>
|
||||
</el-form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -162,10 +167,10 @@ export default {
|
|||
<style lang="scss">
|
||||
/* 修复input 背景不协调 和光标变色 */
|
||||
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
|
||||
$bg: rgba(218, 218, 218, 0.49);
|
||||
|
||||
$bg:#283443;
|
||||
$light_gray:#fff;
|
||||
$cursor: #fff;
|
||||
$light_gray: #252525;
|
||||
$cursor: #252525;
|
||||
|
||||
@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
|
||||
.login-container .el-input input {
|
||||
|
@ -195,10 +200,13 @@ $cursor: #fff;
|
|||
-webkit-text-fill-color: $cursor !important;
|
||||
}
|
||||
}
|
||||
input::placeholder{
|
||||
color: #8a8a8a;
|
||||
}
|
||||
}
|
||||
|
||||
.el-form-item {
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border: 1px solid rgba(13, 106, 227, 0.1);
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
border-radius: 5px;
|
||||
color: #454545;
|
||||
|
@ -207,13 +215,40 @@ $cursor: #fff;
|
|||
</style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
$bg:#2d3a4b;
|
||||
$dark_gray:#889aa4;
|
||||
$light_gray:#eee;
|
||||
$bg: #c5e0ff;
|
||||
$dark_gray: #72828a;
|
||||
$light_gray: #424242;
|
||||
|
||||
.login-card{
|
||||
background-color: rgba(255, 255, 255, 0.7); // 设置半透明背景颜色
|
||||
border-radius: 10px; // 圆角
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); // 卡片的阴影效果
|
||||
backdrop-filter: blur(10px); // 背景高斯模糊效果
|
||||
padding: 30px; // 内边距
|
||||
width: 600px; // 卡片宽度
|
||||
max-width: 100%;
|
||||
margin: 50px auto; // 居中对齐,顶部和底部有一定间距
|
||||
position: relative;
|
||||
z-index: 10; // 保持卡片在最上层
|
||||
}
|
||||
|
||||
.login-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh; // 垂直居中
|
||||
width: 100%;
|
||||
//background-color: #f0f2f5; // 更淡的背景颜色
|
||||
padding: 20px; // 为小屏幕添加一些内边距
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
min-height: 100%;
|
||||
width: 100%;
|
||||
//background-image: require('@/assets/file_icon/excel3.svg');
|
||||
background-color: $bg;
|
||||
overflow: hidden;
|
||||
|
||||
|
@ -228,7 +263,7 @@ $light_gray:#eee;
|
|||
|
||||
.tips {
|
||||
font-size: 14px;
|
||||
color: #fff;
|
||||
color: #606060;
|
||||
margin-bottom: 10px;
|
||||
|
||||
span {
|
||||
|
|
Loading…
Reference in New Issue