Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
fa869a70
Commit
fa869a70
authored
Feb 21, 2023
by
vietanh-0511
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug login and register modal
parent
19c5ec2e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
103 deletions
+103
-103
LoginModal.vue
components/LoginModal.vue
+96
-100
RegisterModal.vue
components/RegisterModal.vue
+5
-1
Header.vue
components/user/Header.vue
+2
-2
No files found.
components/LoginModal.vue
View file @
fa869a70
<
template
>
<v-row
v-if=
"dialog"
justify=
"center"
>
<v-row
v-if=
"dialog"
justify=
"center"
>
<v-dialog
v-model=
"dialog"
persistent
width=
"450px"
>
<!--
<template
#activator
="
{ on, attrs }">
<v-btn
color=
"primary"
dark
v-bind=
"attrs"
v-on=
"on"
>
Open Dialog
</v-btn>
</
template
>
-->
<v-card-title
class=
"justify-center"
>
<p
class=
"font-weight-black"
style=
"font-size: 35px"
>
LOGIN
...
...
@@ -81,23 +75,23 @@
<
script
>
export
default
{
name
:
'
LoginModal
'
,
props
:
{
name
:
'
LoginModal
'
,
props
:
{
status
:
{
type
:
Boolean
,
default
:
true
}
},
data
:
()
=>
({
},
data
:
()
=>
({
email
:
''
,
password
:
''
}),
computed
:
{
}),
computed
:
{
dialog
()
{
return
this
.
status
}
},
methods
:
{
},
methods
:
{
async
login
()
{
try
{
const
resp
=
await
this
.
$axios
.
post
(
'
/login
'
,
...
...
@@ -122,13 +116,15 @@ methods: {
this
.
$router
.
push
(
'
/login
'
)
}
}
}
}
}
</
script
>
<
style
>
<
style
scoped
>
.formlogin
{
padding
:
30px
;
}
::v-deep
.v-dialog
{
background-color
:
#5ae2dc
;
}
</
style
>
\ No newline at end of file
components/RegisterModal.vue
View file @
fa869a70
...
...
@@ -2,6 +2,7 @@
<v-row
v-if=
"dialog"
justify=
"center"
>
<v-dialog
v-model=
"dialog"
persistent
width=
"450px"
>
<v-card-title
class=
"justify-center"
>
...
...
@@ -155,8 +156,11 @@ export default {
}
</
script
>
<
style
>
<
style
scoped
>
.formlogin
{
padding
:
30px
;
}
::v-deep
.v-dialog
{
background-color
:
#5ae2dc
;
}
</
style
>
components/user/Header.vue
View file @
fa869a70
...
...
@@ -244,8 +244,8 @@
<!-- end header bottom -->
<!-- show modal -->
<LoginModal
v-click-outside=
"() => activeLogin = false"
:status=
"activeLogin"
@
close=
"activeLogin=false"
/>
<SignupModal
v-click-outside=
"() => activeRegister = false"
:status=
"activeRegister"
@
close=
"activeRegister=false"
/>
<LoginModal
:status=
"activeLogin"
@
close=
"activeLogin=false"
/>
<SignupModal
:status=
"activeRegister"
@
close=
"activeRegister=false"
/>
</div>
</template>
...
...
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