Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
tea-resources-web
Commits
e639b510
Commit
e639b510
authored
Apr 24, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录页样式调整
parent
0c5dfef6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
34 deletions
+53
-34
login-bg.png
src/assets/image/login-bg.png
+0
-0
loginForm-bg.png
src/assets/image/loginForm-bg.png
+0
-0
login.scss
src/styles/themeA/login.scss
+49
-27
login.vue
src/views/login/login.vue
+4
-7
No files found.
src/assets/image/login-bg.png
0 → 100644
View file @
e639b510
This diff is collapsed.
Click to expand it.
src/assets/image/loginForm-bg.png
0 → 100644
View file @
e639b510
8.52 KB
src/styles/themeA/login.scss
View file @
e639b510
...
@@ -3,12 +3,32 @@
...
@@ -3,12 +3,32 @@
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
height
:
100%
;
width
:
1920px
;
background-image
:
url("../../assets/image/login-background.jpg")
;
height
:
953px
;
background-image
:
url("../../assets/image/login-bg.png")
;
background-size
:
cover
;
background-size
:
cover
;
.el-checkbox__input.is-checked
.el-checkbox__inner
{
width
:
14px
;
height
:
14px
;
background
:
#214e90
;
border-radius
:
2px
;
border-color
:
#214e90
;
}
.el-checkbox
.el-checkbox__inner
:hover
{
border
:
1px
solid
#214e90
!
important
;
}
.el-checkbox__input.is-focus
.el-checkbox__inner
{
border
:
1px
solid
#214e90
!
important
;
}
.el-checkbox__input.is-checked
+
.el-checkbox__label
{
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-weight
:
400
;
color
:
#333333
;
}
.login_logoRow
{
.login_logoRow
{
padding-top
:
1
0px
;
padding-top
:
5
0px
;
padding-bottom
:
10
px
;
padding-bottom
:
39
px
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
width
:
100%
;
width
:
100%
;
...
@@ -22,7 +42,7 @@
...
@@ -22,7 +42,7 @@
width
:
100%
;
width
:
100%
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
margin-
top
:
2
0px
;
margin-
bottom
:
4
0px
;
.title
{
.title
{
font-size
:
24px
;
font-size
:
24px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-700
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-700
;
...
@@ -46,7 +66,7 @@
...
@@ -46,7 +66,7 @@
font-size
:
16px
;
font-size
:
16px
;
}
}
.el-form-item
{
.el-form-item
{
margin-bottom
:
4vh
;
margin-bottom
:
30px
;
}
}
}
}
...
@@ -54,31 +74,23 @@
...
@@ -54,31 +74,23 @@
position
:
absolute
;
position
:
absolute
;
backdrop-filter
:
blur
(
4px
);
backdrop-filter
:
blur
(
4px
);
display
:
inline
;
display
:
inline
;
flex-direction
:
column
;
width
:
499px
;
align-items
:
flex-end
;
height
:
560px
;
border-radius
:
6px
;
background-image
:
url("../../assets/image/loginForm-bg.png")
;
background
:
#ffffff
no-repeat
;
border-radius
:
20px
;
background-size
:
59%
;
background-position-y
:
57px
;
width
:
650px
;
height
:
550px
;
padding
:
25px
25px
5px
25px
;
.login-form-content
{
.login-form-content
{
position
:
absolute
;
top
:
40%
;
right
:
28%
;
width
:
45%
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
.el-form-item
{
.el-form-item
{
width
:
343px
;
width
:
343px
;
height
:
44px
;
.el-input__inner
{
.el-input__inner
{
border-radius
:
4px
;
border-radius
:
4px
;
}
}
}
}
.loginCode_formItem
{
.loginCode_formItem
{
width
:
21
.4375rem
;
width
:
343px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
//align-items: center;
//align-items: center;
...
@@ -86,18 +98,25 @@
...
@@ -86,18 +98,25 @@
.el-form-item
{
.el-form-item
{
width
:
400px
;
width
:
400px
;
}
}
.el-form-item__content
{
width
:
210px
!
important
;
}
}
}
.blue-btn
{
.blue-btn
{
width
:
343px
;
width
:
343px
;
height
:
40px
;
height
:
44px
;
background
:
#214e90
;
border-radius
:
4px
;
border-radius
:
4px
;
font-size
:
18px
;
font-size
:
16px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-700
;
font-weight
:
700
;
color
:
#ffffff
;
}
}
}
}
.el-input
{
.el-input
{
height
:
38
px
;
height
:
44
px
;
input
{
input
{
height
:
38
px
;
height
:
44
px
;
}
}
}
}
.input-icon
{
.input-icon
{
...
@@ -113,10 +132,10 @@
...
@@ -113,10 +132,10 @@
}
}
.login-code
{
.login-code
{
//width: 33%;
//width: 33%;
height
:
38
px
;
height
:
44
px
;
//float: right;
//float: right;
img
{
img
{
height
:
38
px
;
height
:
44
px
;
cursor
:
pointer
;
cursor
:
pointer
;
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
...
@@ -138,7 +157,10 @@
...
@@ -138,7 +157,10 @@
width
:
343px
;
width
:
343px
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.rem-code
span
{
.rem-code
span
{
color
:
$font-dark
;
font-size
:
14px
!
important
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-weight
:
400
!
important
;
color
:
#333333
!
important
;
}
}
.el-link
span
{
.el-link
span
{
color
:
$color-theme
;
color
:
$color-theme
;
...
...
src/views/login/login.vue
View file @
e639b510
<
template
>
<
template
>
<div
class=
"login"
>
<div
class=
"login"
>
<!-- v-loading="vLoading"-->
<el-form
ref=
"loginForm"
v-loading=
"vLoading"
:model=
"loginForm"
:rules=
"rules"
class=
"login-form"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"rules"
class=
"login-form"
>
<!--
<img
class=
"fy-logo"
src=
"../../assets/image/denglu_logo.png"
>
-->
<!--
<img
class=
"fy-logo"
src=
"../../assets/image/denglu_logo.png"
>
-->
<div
class=
"login_logoRow"
>
<div
class=
"login_logoRow"
>
<div
class=
"login_form_logo"
/>
<div
class=
"login_form_logo"
/>
</div>
</div>
<div
class=
"loginTitleRow"
>
<div
class=
"loginTitleRow"
>
<div
class=
"title"
>
教学资源云
平台
</div>
<div
class=
"title"
>
教学资源云
后台管理
</div>
</div>
</div>
<div
class=
"login-form-content"
>
<div
class=
"login-form-content"
>
<el-form-item
prop=
"username"
>
<el-form-item
prop=
"username"
>
<el-input
v-model=
"loginForm.username"
type=
"text"
auto-complete=
"off"
placeholder=
"账号"
>
<el-input
v-model=
"loginForm.username"
auto-complete=
"off"
placeholder=
"账号"
>
<svg-icon
slot=
"prefix"
icon-class=
"user"
class=
"el-input__icon input-icon"
/>
<svg-icon
slot=
"prefix"
icon-class=
"user"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"password"
>
<el-form-item
prop=
"password"
>
<el-input
<el-input
v-model=
"loginForm.password"
v-model=
"loginForm.password"
type=
"password"
auto-complete=
"off"
auto-complete=
"off"
placeholder=
"密码"
placeholder=
"密码"
@
keypress
.
enter
.
native=
"handleLogin"
@
keypress
.
enter
.
native=
"handleLogin"
...
@@ -87,10 +85,9 @@
...
@@ -87,10 +85,9 @@
:loading=
"loading"
:loading=
"loading"
size=
"medium"
size=
"medium"
type=
"primary"
type=
"primary"
:disabled=
"!verify"
@
click
.
native
.
prevent=
"handleLogin"
@
click
.
native
.
prevent=
"handleLogin"
>
>
<!-- :disabled="!verify"-->
<span
v-if=
"!loading"
>
{{
'登 录'
}}
</span>
<span
v-if=
"!loading"
>
{{
'登 录'
}}
</span>
<span
v-else
>
登 录 中...
</span>
<span
v-else
>
登 录 中...
</span>
</el-button>
</el-button>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment