Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-site
Project
Project
Details
Activity
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
张冬
web-site
Commits
0beec99c
Commit
0beec99c
authored
Sep 28, 2020
by
吴冠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录样式更改
parent
6e5d3a3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
14 deletions
+22
-14
header.vue
components/header.vue
+0
-1
user.vue
pages/login/user.vue
+22
-13
No files found.
components/header.vue
View file @
0beec99c
...
...
@@ -73,7 +73,6 @@
left
:
980px
;
cursor
:
pointer
;
font-size
:
10px
;
background
:
#bfa
;
}
.bg
{}
...
...
pages/login/user.vue
View file @
0beec99c
...
...
@@ -2,7 +2,9 @@
<div
class=
"user"
>
<div
class=
"user-login"
>
<div
class=
"login-type flex"
>
<div
class=
"pos"
>
{{
message
}}
</div>
<!--
<div
class=
"pos"
>
{{
message
}}
</div>
-->
<div
@
click=
"change"
:class=
'[type==0?"active":""]'
>
密码登录
</div>
<div
@
click=
"change"
:class=
'[type==2?"active":""]'
>
手机验证码登录
</div>
</div>
<div
class=
"el-form"
>
<!-- 密码登录 -->
...
...
@@ -38,7 +40,7 @@
<div
@
click=
"forget"
class=
"handle"
>
忘记密码
</div>
<div
@
click=
"examine"
class=
"handle"
>
我要注册
</div>
</div>
<
div
class=
"code-login handle"
@
click=
"changephone"
>
{{
changemessage
}}
</div
>
<
!--
<div
class=
"code-login handle"
@
click=
"changephone"
>
{{
changemessage
}}
</div>
--
>
</div>
</div>
</div>
...
...
@@ -89,6 +91,9 @@
created
()
{
},
methods
:
{
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
);
},
//发送短信验证码
async
getPhoneCode
(){
let
message
=
{}
...
...
@@ -164,23 +169,23 @@
console
.
log
(
err
);
}
},
changephone
()
{
/*
changephone() {
let type = this.type;
if
(
type
==
'0'
||
type
==
'
1
'
)
{
if (type == '0' || type == '
2
') {
this.type = 2;
this
.
changemessage
=
"密码登录"
this
.
message
=
"手机验证码登录"
}
else
if
(
type
==
'2'
)
{
this
.
type
=
0
;
this.changemessage = "手机验证码登录"
this.message = "密码登录"
} else if (type == '2') {
this.type = 0;
this.changemessage = "密码登录"
this.message = "手机验证码登录"
}
},
},
*/
change
()
{
let
type
=
this
.
type
;
if
(
type
==
'0'
)
{
this
.
type
=
1
}
else
if
(
type
==
'
1
'
)
{
this
.
type
=
2
}
else
if
(
type
==
'
2
'
)
{
this
.
type
=
0
}
},
...
...
@@ -247,15 +252,19 @@
.login-type
{
width
:
100%
;
height
:
.77rem
;
}
.login-type
.active
{
border-bottom
:
2px
solid
rgba
(
4
,
134
,
254
,
1
);
color
:
rgba
(
4
,
134
,
254
,
1
);
}
.login-type
>
div
{
height
:
0.77rem
;
width
:
1.9rem
;
text-align
:
center
;
line-height
:
0.77rem
;
color
:
rgba
(
4
,
134
,
254
,
1
)
;
color
:
gray
;
font-size
:
.2rem
;
}
...
...
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