Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
super-hive-web
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
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SuperHive
front-end
super-hive-web
Commits
207826f8
Commit
207826f8
authored
Aug 07, 2020
by
wends
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update login views
parent
4771344d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
101 deletions
+115
-101
login-background.jpg
src/assets/login-background.jpg
+0
-0
login-background.png
src/assets/login-background.png
+0
-0
logo-login.png
src/assets/logo-login.png
+0
-0
index.vue
src/views/login/index.vue
+115
-101
No files found.
src/assets/login-background.jpg
0 → 100644
View file @
207826f8
227 KB
src/assets/login-background.png
0 → 100644
View file @
207826f8
861 KB
src/assets/logo-login.png
0 → 100644
View file @
207826f8
23.6 KB
src/views/login/index.vue
View file @
207826f8
<
template
>
<
template
>
<div
class=
"login-container"
:style=
"
{ backgroundImage: `url(${backgroundImg})` }">
<div
class=
"login-container"
>
<div
class=
"content"
>
<div
class=
"logo-container"
>
<div
class=
"left"
>
<!--
<h1>
灵雀
</h1>
-->
<img
:src=
"loginBackground"
alt=
""
>
<img
:src=
"logo"
alt=
""
>
</div>
</div>
<div
class=
"right"
>
<div
class=
"logo-container"
>
<!--
<h1>
灵雀
</h1>
-->
<img
:src=
"logo"
alt=
""
>
</div>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
autocomplete=
"on"
label-position=
"left"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
autocomplete=
"on"
label-position=
"left"
>
<div
class=
"title-container"
>
<div
class=
"title-container"
>
<div
class=
"title"
>
账号登录
</div>
<div
class=
"title"
>
账号登录
</div>
</div>
</div>
<el-form-item
prop=
"username"
>
<el-form-item
prop=
"username"
>
<span
class=
"svg-container"
>
<span
class=
"svg-container"
>
<svg-icon
icon-class=
"user"
/>
<svg-icon
icon-class=
"user"
/>
</span>
</span>
<el-input
<el-input
ref=
"username"
ref=
"username"
v-model=
"loginForm.username"
v-model=
"loginForm.username"
placeholder=
"用户名"
placeholder=
"用户名"
name=
"username"
name=
"username"
type=
"text"
type=
"text"
tabindex=
"1"
tabindex=
"1"
autocomplete=
"on"
autocomplete=
"on"
/>
/>
</el-form-item>
</el-form-item>
<el-tooltip
v-model=
"capsTooltip"
content=
"Caps lock is On"
placement=
"right"
manual
>
<el-tooltip
v-model=
"capsTooltip"
content=
"Caps lock is On"
placement=
"right"
manual
>
<el-form-item
prop=
"password"
>
<el-form-item
prop=
"password"
>
<span
class=
"svg-container"
>
<span
class=
"svg-container"
>
<svg-icon
icon-class=
"password"
/>
<svg-icon
icon-class=
"password"
/>
</span>
</span>
<el-input
<el-input
:key=
"passwordType"
:key=
"passwordType"
ref=
"password"
ref=
"password"
v-model=
"loginForm.password"
v-model=
"loginForm.password"
:type=
"passwordType"
:type=
"passwordType"
placeholder=
"密码"
placeholder=
"密码"
name=
"password"
name=
"password"
tabindex=
"2"
tabindex=
"2"
autocomplete=
"on"
autocomplete=
"on"
@
blur=
"capsTooltip = false"
@
blur=
"capsTooltip = false"
/>
/>
<span
class=
"show-pwd"
@
click=
"showPwd"
>
<span
class=
"show-pwd"
@
click=
"showPwd"
>
<svg-icon
:icon-class=
"passwordType === 'password' ? 'eye' : 'eye-open'"
/>
<svg-icon
:icon-class=
"passwordType === 'password' ? 'eye' : 'eye-open'"
/>
</span>
</span>
</el-form-item>
</el-form-item>
</el-tooltip>
</el-tooltip>
<el-form-item
prop=
"captcha"
class=
"captcha"
>
<el-form-item
prop=
"captcha"
class=
"captcha"
>
<span
class=
"svg-container"
>
<span
class=
"svg-container"
>
<svg-icon
icon-class=
"captcha"
/>
<svg-icon
icon-class=
"captcha"
/>
</span>
</span>
<el-input
<el-input
v-model=
"loginForm.captcha"
v-model=
"loginForm.captcha"
placeholder=
"验证码"
placeholder=
"验证码"
@
keyup.native=
"checkCapsLock"
@
keyup.native=
"checkCapsLock"
@
keyup.enter.native=
"handleLogin"
@
keyup.enter.native=
"handleLogin"
/>
/>
<div
class=
"captcha-container"
@
click=
"getCaptcha"
>
<div
class=
"captcha-container"
@
click=
"getCaptcha"
>
<img
:src=
"captchaUrl"
alt=
""
>
<img
:src=
"captchaUrl"
alt=
""
>
</div>
</div>
</el-form-item>
</el-form-item>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width:100%;margin-bottom:30px;"
@
click.native.prevent=
"handleLogin"
>
登录
</el-button>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width:100%;margin-bottom:30px;"
@
click.native.prevent=
"handleLogin"
>
登录
</el-button>
</el-form>
</el-form>
</div>
</div>
<div
class=
"bottom-container"
>
<div
class=
"bottom-container"
>
copyright© 2019 苏州英思唯智能科技有限公司.
copyright© 2019 苏州英思唯智能科技有限公司.
...
@@ -75,7 +81,8 @@
...
@@ -75,7 +81,8 @@
<
script
>
<
script
>
import
md5
from
'
md5
'
import
md5
from
'
md5
'
import
logo
from
'
@/assets/logo-login.jpg
'
import
loginBackground
from
'
@/assets/login-background.png
'
import
logo
from
'
@/assets/logo-login.png
'
import
backgroundImg
from
'
@/assets/background-img.svg
'
import
backgroundImg
from
'
@/assets/background-img.svg
'
import
{
getCaptcha
}
from
'
@/api/components/basic-services
'
import
{
getCaptcha
}
from
'
@/api/components/basic-services
'
...
@@ -109,6 +116,7 @@ export default {
...
@@ -109,6 +116,7 @@ export default {
otherQuery
:
{},
otherQuery
:
{},
logo
:
logo
,
logo
:
logo
,
backgroundImg
:
backgroundImg
,
backgroundImg
:
backgroundImg
,
loginBackground
:
loginBackground
,
captchaUrl
:
''
captchaUrl
:
''
}
}
},
},
...
@@ -251,7 +259,7 @@ $cursor: rgba(0,0,0,.65);
...
@@ -251,7 +259,7 @@ $cursor: rgba(0,0,0,.65);
</
style
>
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
$bg
:
#
f0f2f5
;
$bg
:
#
29569a
;
$dark_gray
:
#889aa4
;
$dark_gray
:
#889aa4
;
$light_gray
:
#eee
;
$light_gray
:
#eee
;
$cursor
:
rgba
(
0
,
0
,
0
,.
65
);
$cursor
:
rgba
(
0
,
0
,
0
,.
65
);
...
@@ -264,41 +272,60 @@ $cursor: rgba(0,0,0,.65);
...
@@ -264,41 +272,60 @@ $cursor: rgba(0,0,0,.65);
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-position
:
center
;
background-size
:
cover
;
background-size
:
cover
;
.content
{
.logo-container
{
display
:
flex
;
max-width
:
300px
;
max-width
:
1200px
;
margin
:
100px
auto
50px
auto
;
text-align
:
center
;
padding-left
:
20px
;
padding-right
:
20px
;
img
{
margin
:
0
auto
;
width
:
100%
;
}
}
.login-form
{
background-color
:
#fff
;
position
:
relative
;
width
:
520px
;
max-width
:
100%
;
padding
:
35px
35px
0
;
margin
:
0
auto
;
margin
:
0
auto
;
overflow
:
hidden
;
justify-content
:
space-around
;
.captcha
{
align-items
:
center
;
.el-input
{
height
:
100vh
;
width
:
70%
;
.left
{
width
:
560px
;
margin-right
:
80px
;
img
{
width
:
100%
;
}
}
.captcha-container
{
}
width
:
80px
;
.right
{
height
:
30px
;
flex-shrink
:
0
;
position
:
absolute
;
width
:
520px
;
right
:
5px
;
margin-left
:
20px
;
top
:
12px
;
margin-right
:
20px
;
.logo-container
{
max-width
:
300px
;
margin
:
0
auto
20px
auto
;
text-align
:
center
;
padding-left
:
20px
;
padding-right
:
20px
;
img
{
img
{
margin
:
0
auto
;
width
:
100%
;
width
:
100%
;
}
}
}
}
.login-form
{
background-color
:
#fff
;
position
:
relative
;
width
:
520px
;
max-width
:
100%
;
padding
:
35px
35px
0
;
margin
:
0
auto
;
overflow
:
hidden
;
.captcha
{
.el-input
{
width
:
70%
;
}
.captcha-container
{
width
:
80px
;
height
:
30px
;
position
:
absolute
;
right
:
5px
;
top
:
12px
;
img
{
width
:
100%
;
}
}
}
}
}
}
}
}
...
@@ -344,7 +371,7 @@ $cursor: rgba(0,0,0,.65);
...
@@ -344,7 +371,7 @@ $cursor: rgba(0,0,0,.65);
user-select
:
none
;
user-select
:
none
;
}
}
.bottom-container
{
.bottom-container
{
color
:
rgba
(
0
,
0
,
0
,
0
.4
5
);
color
:
rgba
(
255
,
255
,
255
,
0
.7
5
);
font-size
:
14px
;
font-size
:
14px
;
position
:
absolute
;
position
:
absolute
;
bottom
:
20px
;
bottom
:
20px
;
...
@@ -355,25 +382,12 @@ $cursor: rgba(0,0,0,.65);
...
@@ -355,25 +382,12 @@ $cursor: rgba(0,0,0,.65);
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
}
}
}
@media
(
min-width
:
992px
)
{
@media
(
max-width
:
1200px
)
{
.login-container
{
.content
{
.logo-container
{
.left
{
margin-top
:
120px
;
display
:
none
;
}
}
}
}
@media
(
min-width
:
1200px
)
{
.login-container
{
.logo-container
{
margin-top
:
150px
;
}
}
}
@media
(
min-width
:
1400px
)
{
.login-container
{
.logo-container
{
margin-top
:
200px
;
}
}
}
}
}
}
...
...
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