mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 16:56:38 +08:00
更换登录页面背景图片
This commit is contained in:
parent
d5eeeea764
commit
43f6bf74f2
BIN
web/src/assets/img/admin-login-bg.jpg
Normal file
BIN
web/src/assets/img/admin-login-bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 455 KiB |
Binary file not shown.
Before Width: | Height: | Size: 166 KiB |
BIN
web/src/assets/img/reg_bg.png
Normal file
BIN
web/src/assets/img/reg_bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 264 KiB |
@ -315,11 +315,11 @@ const doSubmitRegister = (verifyData) => {
|
|||||||
top 0
|
top 0
|
||||||
bottom 0
|
bottom 0
|
||||||
background-color #091519
|
background-color #091519
|
||||||
background-image url("~@/assets/img/reg-bg.jpg")
|
background-image url("~@/assets/img/reg_bg.png")
|
||||||
background-size cover
|
background-size cover
|
||||||
background-position center
|
background-position center
|
||||||
background-repeat no-repeat
|
background-repeat no-repeat
|
||||||
//filter: blur(10px); /* 调整模糊程度,可以根据需要修改值 */
|
filter: blur(10px); /* 调整模糊程度,可以根据需要修改值 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.register-page {
|
.register-page {
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
|
<div class="bg"></div>
|
||||||
<div class="admin-login">
|
<div class="admin-login">
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="contain">
|
<div class="contain">
|
||||||
@ -6,7 +8,7 @@
|
|||||||
<el-image :src="logo" fit="cover"/>
|
<el-image :src="logo" fit="cover"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1 class="header">{{ title }}</h1>
|
<h1 class="header">登录 {{ title }}</h1>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<el-input v-model="username" placeholder="请输入用户名" size="large"
|
<el-input v-model="username" placeholder="请输入用户名" size="large"
|
||||||
autocomplete="off" autofocus @keyup.enter="login">
|
autocomplete="off" autofocus @keyup.enter="login">
|
||||||
@ -36,13 +38,14 @@
|
|||||||
<footer-bar class="footer"/>
|
<footer-bar class="footer"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
||||||
import {ref} from "vue";
|
import {ref} from "vue";
|
||||||
import {Lock, UserFilled} from "@element-plus/icons-vue";
|
import {Lock, UserFilled} from "@element-plus/icons-vue";
|
||||||
import {httpGet, httpPost} from "@/utils/http";
|
import {httpPost} from "@/utils/http";
|
||||||
import {ElMessage} from "element-plus";
|
import {ElMessage} from "element-plus";
|
||||||
import {useRouter} from "vue-router";
|
import {useRouter} from "vue-router";
|
||||||
import FooterBar from "@/components/FooterBar.vue";
|
import FooterBar from "@/components/FooterBar.vue";
|
||||||
@ -105,14 +108,33 @@ const doLogin = function (verifyData) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
|
.bg {
|
||||||
|
position absolute
|
||||||
|
left 0
|
||||||
|
right 0
|
||||||
|
top 0
|
||||||
|
bottom 0
|
||||||
|
background-color #091519
|
||||||
|
background-image url("~@/assets/img/admin-login-bg.jpg")
|
||||||
|
background-size cover
|
||||||
|
background-position center
|
||||||
|
background-repeat no-repeat
|
||||||
|
filter: blur(10px); /* 调整模糊程度,可以根据需要修改值 */
|
||||||
|
z-index 0
|
||||||
|
}
|
||||||
|
|
||||||
.admin-login {
|
.admin-login {
|
||||||
|
position absolute
|
||||||
|
left 0
|
||||||
|
top 0
|
||||||
|
z-index 10
|
||||||
display flex
|
display flex
|
||||||
justify-content center
|
justify-content center
|
||||||
width: 100%
|
width: 100%
|
||||||
background #2D3A4B
|
height: 100vh
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
width 400px;
|
max-width 400px
|
||||||
display flex
|
display flex
|
||||||
justify-content center
|
justify-content center
|
||||||
align-items center
|
align-items center
|
||||||
@ -120,10 +142,10 @@ const doLogin = function (verifyData) {
|
|||||||
|
|
||||||
.contain {
|
.contain {
|
||||||
width 100%
|
width 100%
|
||||||
padding 20px 40px;
|
padding 40px;
|
||||||
color #ffffff
|
color #ffffff
|
||||||
border-radius 10px;
|
border-radius 10px;
|
||||||
background rgba(255, 255, 255, 0.3)
|
background rgba(0, 0, 0, 0.3)
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
text-align center
|
text-align center
|
||||||
@ -137,7 +159,7 @@ const doLogin = function (verifyData) {
|
|||||||
|
|
||||||
.header {
|
.header {
|
||||||
width 100%
|
width 100%
|
||||||
margin-bottom 20px
|
//margin-bottom 20px
|
||||||
padding 10px
|
padding 10px
|
||||||
font-size 26px
|
font-size 26px
|
||||||
text-align center
|
text-align center
|
||||||
@ -148,6 +170,10 @@ const doLogin = function (verifyData) {
|
|||||||
height: auto
|
height: auto
|
||||||
border-radius 3px
|
border-radius 3px
|
||||||
|
|
||||||
|
.el-input {
|
||||||
|
margin 10px 0
|
||||||
|
}
|
||||||
|
|
||||||
.block {
|
.block {
|
||||||
margin-bottom 16px
|
margin-bottom 16px
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user