Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
house-type
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
xingyuji
house-type
Commits
732c2034
Commit
732c2034
authored
Aug 20, 2020
by
wangjiankun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
c9091069
d521e5a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
36 deletions
+44
-36
Login.vue
src/views/Login.vue
+44
-36
No files found.
src/views/Login.vue
View file @
732c2034
<
template
>
<
template
>
<section
class=
"login"
>
<section
class=
"login"
>
<div
class=
"login-div"
>
<div
class=
"login-div"
>
<h3
class=
"title"
>
天友设计院-户型地图大数据
</h3>
<el-form
v-if=
"!loginStatus"
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
auto-complete=
"on"
label-position=
"left"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<div
align=
"center"
style=
"margin-bottom: 40px"
>
<el-tab-pane
label=
"企业登录"
name=
"first"
>
<img
:src=
"require('@assets/img/logo.png')"
width=
"150"
alt=
""
>
<iframe
:src=
"wxQrCodeUrl"
id=
"iframeTop"
style=
"border: none;"
>
</div>
<h4
class=
"title"
>
户型大数据查询系统
</h4>
</iframe>
<!--
<div
id=
"wxQrCode"
>
-->
<!--
</div>
-->
</el-tab-pane>
<el-tab-pane
label=
"用户登录"
name=
"second"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
auto-complete=
"on"
label-position=
"left"
>
<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
v-model=
"loginForm.username"
name=
"username"
type=
"text"
auto-complete=
"on"
placeholder=
"username"
/>
<el-input
v-model=
"loginForm.username"
name=
"username"
type=
"text"
auto-complete=
"on"
placeholder=
"username"
/>
</el-form-item>
</el-form-item>
<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
:type=
"pwdType"
:type=
"pwdType"
v-model=
"loginForm.password"
v-model=
"loginForm.password"
name=
"password"
name=
"password"
auto-complete=
"on"
auto-complete=
"on"
placeholder=
"password"
placeholder=
"password"
@
keyup
.
enter
.
native=
"toLogin"
/>
@
keyup
.
enter
.
native=
"toLogin"
/>
<span
class=
"show-pwd"
@
click=
"showPwd"
>
<span
class=
"show-pwd"
@
click=
"showPwd"
>
<svg-icon
:icon-class=
"pwdType === 'password' ? 'eye' : 'eye-open'"
/>
<svg-icon
:icon-class=
"pwdType === 'password' ? 'eye' : 'eye-open'"
/>
</span>
</span>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width:100%;"
@
click
.
native
.
prevent=
"toLogin"
>
<el-button
:loading=
"loading"
type=
"primary"
style=
"width:100%;"
@
click
.
native
.
prevent=
"toLogin"
>
登 录
登 录
</el-button>
</el-button>
</el-form-item>
</el-form-item>
</el-form>
<div
style=
"width: 100%;text-align: center;"
>
</el-tab-pane>
<el-link
@
click=
"loginStatus = !loginStatus"
style=
"color: #eee;font-size: 16px"
>
企业微信登录
</el-link>
</el-tabs>
</div>
</el-form>
<div
style=
"width: 520px;max-width: 100%;height: 64%;margin: 38px auto;"
v-if=
"loginStatus"
>
<div
align=
"center"
style=
"margin-bottom: 40px"
>
<img
:src=
"require('@assets/img/logo.png')"
width=
"150"
alt=
""
>
</div>
<h4
class=
"title"
>
户型大数据查询系统
</h4>
<iframe
:src=
"wxQrCodeUrl"
id=
"iframeTop"
style=
"border: none;"
>
</iframe>
<div
style=
"width: 100%;text-align: center;"
>
<el-link
@
click=
"loginStatus = !loginStatus"
style=
"color: #eee;font-size: 16px"
>
账号登录
</el-link>
</div>
</div>
</div>
</div>
</section>
</section>
</
template
>
</
template
>
...
@@ -84,6 +91,7 @@ export default {
...
@@ -84,6 +91,7 @@ export default {
username
:
[{
required
:
true
,
trigger
:
'blur'
,
validator
:
validateUsername
}],
username
:
[{
required
:
true
,
trigger
:
'blur'
,
validator
:
validateUsername
}],
password
:
[{
required
:
true
,
trigger
:
'blur'
,
validator
:
validatePass
}]
password
:
[{
required
:
true
,
trigger
:
'blur'
,
validator
:
validatePass
}]
},
},
loginStatus
:
true
,
loading
:
false
,
loading
:
false
,
pwdType
:
'password'
,
pwdType
:
'password'
,
redirect
:
undefined
,
redirect
:
undefined
,
...
@@ -92,7 +100,7 @@ export default {
...
@@ -92,7 +100,7 @@ export default {
errorMsg
:
this
.
$route
.
query
.
errorMsg
,
errorMsg
:
this
.
$route
.
query
.
errorMsg
,
authorities
:
this
.
$route
.
query
.
authorities
,
authorities
:
this
.
$route
.
query
.
authorities
,
authentication
:
this
.
$route
.
query
.
authentication
,
authentication
:
this
.
$route
.
query
.
authentication
,
oAuthHref
:
"data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDE3MHB4O30NCi5pbXBvd2VyQm94IC50aXRsZSB7ZGlzcGxheTogbm9uZTt9DQouaW1wb3dlckJveCAuaW5mbyB7d2lkdGg6IDIwMHB4O30NCi5zdGF0dXNfaWNvbiB7ZGlzcGxheTogbm9uZX0NCi5pbXBvd2VyQm94IC5zdGF0dXMge3RleHQtYWxpZ246IGNlbnRlcjt9DQoud3JwX2NvZGV7bWFyZ2luLXRvcDowcHggIWltcG9ydGFudH0NCi5pbmZve3dpZHRoOiAyODBweCAhaW1wb3J0YW50fQ=="
,
oAuthHref
:
"data:text/css;base64,LmltcG93ZXJCb3ggLnFyY29kZSB7d2lkdGg6IDE3MHB4O30NCi5pbXBvd2VyQm94IC50aXRsZSB7ZGlzcGxheTogbm9uZTt9DQouaW1wb3dlckJveCAuaW5mbyB7d2lkdGg6IDIwMHB4O30NCi5zdGF0dXNfaWNvbiB7ZGlzcGxheTogbm9uZX0NCi5pbXBvd2VyQm94IC5zdGF0dXMge3RleHQtYWxpZ246IGNlbnRlcjt9DQoud3JwX2NvZGV7bWFyZ2luLXRvcDowcHggIWltcG9ydGFudH0NCi5pbmZve3dpZHRoOiAyODBweCAhaW1wb3J0YW50fQ
0KI3d4X2RlZmF1bHRfdGlwe2NvbG9yOiByZ2IoMjM4LCAyMzgsIDIzOCk7fQ0KI3d4X2FmdGVyX3NjYW57Y29sb3I6IHJnYigyMzgsIDIzOCwgMjM4KTt9DQojd3hfYWZ0ZXJfY2FuY2Vse2NvbG9yOiByZ2IoMjM4LCAyMzgsIDIzOCk7fQ
=="
,
};
};
},
},
created
()
{
created
()
{
...
@@ -188,7 +196,7 @@ export default {
...
@@ -188,7 +196,7 @@ export default {
-webkit-appearance: none;
-webkit-appearance: none;
border-radius: 0px;
border-radius: 0px;
padding: 12px 5px 12px 15px;
padding: 12px 5px 12px 15px;
color:
#7e8187
;
color:
light_gray
;
height: 47px;
height: 47px;
&:-webkit-autofill {
&:-webkit-autofill {
-webkit-box-shadow: 0 0 0px 1000px bg inset !important;
-webkit-box-shadow: 0 0 0px 1000px bg inset !important;
...
@@ -225,9 +233,9 @@ export default {
...
@@ -225,9 +233,9 @@ export default {
.login-div{
.login-div{
width: 50%;
width: 50%;
height: 50%;
height: 50%;
border: 1px solid #F0F3F6;
/*
border: 1px solid #F0F3F6;
border-radius: 20px;
border-radius: 20px;
background-color rgba(240,243,246,1)
background-color rgba(240,243,246,1)
*/
position: absolute;
position: absolute;
left: 0;
left: 0;
right: 0;
right: 0;
...
@@ -265,16 +273,16 @@ export default {
...
@@ -265,16 +273,16 @@ export default {
} */
} */
.svg-container {
.svg-container {
padding: 6px 5px 6px 15px;
padding: 6px 5px 6px 15px;
color:
#7e8187
;
color:
dark_gray
;
vertical-align: middle;
vertical-align: middle;
width: 30px;
width: 30px;
display: inline-block;
display: inline-block;
border-right: 1px solid;
/* border-right: 1px solid; */
}
}
.title {
.title {
font-size: 26px;
font-size: 26px;
font-weight: 400;
font-weight: 400;
color:
#7E8187
;
color:
light_gray
;
margin: 0px auto 40px auto;
margin: 0px auto 40px auto;
text-align: center;
text-align: center;
font-weight: bold;
font-weight: bold;
...
@@ -284,7 +292,7 @@ export default {
...
@@ -284,7 +292,7 @@ export default {
right: 10px;
right: 10px;
top: 7px;
top: 7px;
font-size: 16px;
font-size: 16px;
color:
#7e8187
;
color:
dark_gray
;
cursor: pointer;
cursor: pointer;
user-select: none;
user-select: none;
}
}
...
...
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