Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
薪
薪瑞通-前端
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
许珑标
薪瑞通-前端
Commits
d6eee0bb
Commit
d6eee0bb
authored
Jan 07, 2025
by
谢子梦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录页和首页样式
parent
43a1e013
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
11 deletions
+40
-11
src/assets/images/index-barder.png
src/assets/images/index-barder.png
+0
-0
src/assets/images/login-background.jpg
src/assets/images/login-background.jpg
+0
-0
src/assets/images/login-background.png
src/assets/images/login-background.png
+0
-0
src/assets/images/login-title.png
src/assets/images/login-title.png
+0
-0
src/views/index.vue
src/views/index.vue
+16
-1
src/views/login.vue
src/views/login.vue
+23
-9
src/views/register.vue
src/views/register.vue
+1
-1
No files found.
src/assets/images/index-barder.png
0 → 100644
View file @
d6eee0bb
246 KB
src/assets/images/login-background.jpg
deleted
100644 → 0
View file @
43a1e013
302 KB
src/assets/images/login-background.png
0 → 100644
View file @
d6eee0bb
590 KB
src/assets/images/login-title.png
0 → 100644
View file @
d6eee0bb
32.2 KB
src/views/index.vue
View file @
d6eee0bb
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
首页
<div
class=
"home"
>
<el-card
class=
"margin-bottom-small"
>
<div
style=
"margin-left: 23%"
>
<!--
<img
src=
"@/assets/images/welcome.png"
alt=
"welcome"
/>
-->
<img
src=
"@/assets/images/index-barder.png"
alt=
"welcome"
/>
</div>
</el-card>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -15,5 +22,13 @@ export default {
...
@@ -15,5 +22,13 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.home
{
background
:
#efefef
;
height
:
calc
(
100vh
-
84px
);
padding-bottom
:
50px
;
}
.margin-bottom-small
{
margin-bottom
:
25px
;
}
</
style
>
</
style
>
src/views/login.vue
View file @
d6eee0bb
<
template
>
<
template
>
<div
class=
"login"
>
<div
class=
"login"
>
<!-- 页面的名称 -->
<img
class=
"loginTitleStyle"
src=
"../assets/images/login-title.png"
alt=
""
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
>
<h3
class=
"title"
>
薪瑞通
</h3>
<h3
class=
"title"
>
账号登录
</h3>
<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"
type=
"text"
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"
/>
...
@@ -14,7 +16,7 @@
...
@@ -14,7 +16,7 @@
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"code"
v-if=
"captchaEnabled"
>
<el-form-item
prop=
"code"
v-if=
"captchaEnabled"
>
<el-input
v-model=
"loginForm.code"
auto-complete=
"off"
placeholder=
"验证码"
style=
"width: 63%"
<el-input
v-model=
"loginForm.code"
auto-complete=
"off"
placeholder=
"验证码"
style=
"width: 63%
;
"
@
keyup.enter.native=
"handleLogin"
>
@
keyup.enter.native=
"handleLogin"
>
<svg-icon
slot=
"prefix"
icon-class=
"validCode"
class=
"el-input__icon input-icon"
/>
<svg-icon
slot=
"prefix"
icon-class=
"validCode"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-input>
...
@@ -22,7 +24,7 @@
...
@@ -22,7 +24,7 @@
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
</div>
</div>
</el-form-item>
</el-form-item>
<el-checkbox
v-model=
"loginForm.rememberMe"
style=
"margin:
0
px 0px 25px 0px;"
>
记住密码
</el-checkbox>
<el-checkbox
v-model=
"loginForm.rememberMe"
style=
"margin:
12
px 0px 25px 0px;"
>
记住密码
</el-checkbox>
<el-form-item
style=
"width:100%;"
>
<el-form-item
style=
"width:100%;"
>
<el-button
:loading=
"loading"
size=
"medium"
type=
"primary"
style=
"width:100%;"
<el-button
:loading=
"loading"
size=
"medium"
type=
"primary"
style=
"width:100%;"
@
click.native.prevent=
"handleLogin"
>
@
click.native.prevent=
"handleLogin"
>
...
@@ -36,7 +38,7 @@
...
@@ -36,7 +38,7 @@
</el-form>
</el-form>
<!-- 底部 -->
<!-- 底部 -->
<div
class=
"el-login-footer"
>
<div
class=
"el-login-footer"
>
<span>
Copyright © 2018-2022 ruoyi.vip All Rights Reserved.
</span>
<span></span>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -141,21 +143,33 @@ export default {
...
@@ -141,21 +143,33 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
height
:
100%
;
height
:
100%
;
background-image
:
url("../assets/images/login-background.
jp
g")
;
background-image
:
url("../assets/images/login-background.
pn
g")
;
background-size
:
cover
;
background-size
:
cover
;
position
:
relative
;
.loginTitleStyle
{
position
:
absolute
;
left
:
8vw
;
top
:
9vh
;
width
:
200px
;
height
:
45px
;
}
}
}
.title
{
.title
{
margin
:
0px
auto
30px
auto
;
margin-bottom
:
30px
;
text-align
:
center
;
// text-align: center;
color
:
#707070
;
color
:
#000
;
font-weight
:
500
;
}
}
.login-form
{
.login-form
{
margin-top
:
50px
;
margin-left
:
35vw
;
border-radius
:
6px
;
border-radius
:
6px
;
background
:
#ffffff
;
background
:
#ffffff
;
width
:
400px
;
width
:
400px
;
padding
:
25px
25px
5px
2
5px
;
padding
:
35px
45px
25px
3
5px
;
.el-input
{
.el-input
{
height
:
38px
;
height
:
38px
;
...
...
src/views/register.vue
View file @
d6eee0bb
...
@@ -131,7 +131,7 @@ export default {
...
@@ -131,7 +131,7 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
height
:
100%
;
height
:
100%
;
background-image
:
url("../assets/images/login-background.
jp
g")
;
background-image
:
url("../assets/images/login-background.
pn
g")
;
background-size
:
cover
;
background-size
:
cover
;
}
}
...
...
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