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
6c99a80b
Commit
6c99a80b
authored
Feb 24, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add whislist + card
parent
661bab10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
6 deletions
+61
-6
PageCarousels.vue
components/PageCarousels.vue
+3
-1
Header.vue
components/user/Header.vue
+56
-4
NavBar.vue
components/user/NavBar.vue
+2
-1
No files found.
components/PageCarousels.vue
View file @
6c99a80b
...
...
@@ -42,5 +42,7 @@ export default {
</
script
>
<
style
>
.v-window__container
{
margin-top
:
20px
;
}
</
style
>
components/user/Header.vue
View file @
6c99a80b
...
...
@@ -145,6 +145,7 @@
>
<v-text-field
label=
"Search"
variant=
"outlined"
/>
<v-btn
icon
...
...
@@ -185,16 +186,58 @@
</v-btn>
<v-divider
vertical
inset
/>
<v-btn
id=
"menu-activator"
plain
v-bind=
"attrs"
v-on=
"on"
>
<v-icon
large
>
mdi-cart-outline
</v-icon>
<v-spacer
/>
<span>
Cart:
<b>
$:0.00
</b>
</span>
<v-badge
:content=
"15"
floating
>
<v-icon
large
>
mdi-cart-outline
</v-icon>
</v-badge>
<v-menu
activator=
"#menu-activator"
style=
"width: 300px"
>
<v-list
dense
three-line
>
<v-list-item
v-for=
"item in items"
:key=
"item.title"
link
>
<v-list-item-avatar>
<v-img
:src=
"item.prependAvatar"
/>
</v-list-item-avatar>
<v-list-item-content>
<v-list-item-title>
{{ item.title }}
</v-list-item-title>
<v-list-item-subtitle>
{{ item.subtitle }}
</v-list-item-subtitle>
</v-list-item-content>
<v-list-item-action>
<v-btn
icon
@
click=
"remove(index)"
>
<v-icon
color=
"grey lighten-1"
>
mdi-close-circle-outline
</v-icon>
</v-btn>
</v-list-item-action>
</v-list-item>
</v-list>
<v-divider
/>
<div
class=
"d-flex justify-space-between align-center ma-4"
>
<span>
Subtotal:
</span>
<span>
139$
</span>
</div>
<v-divider
/>
<v-btn
size=
"x-large"
color=
"primary"
class=
"d-flex mt-4 align-center mx-auto"
>
GO TO CHECKOUT
</v-btn>
</v-menu>
</v-btn>
</v-col>
</v-container>
...
...
@@ -247,7 +290,7 @@
</v-list-item-content>
<v-list-item-action>
<v-btn
icon
>
<v-btn
icon
@
click=
"remove(index)"
>
<v-icon
color=
"grey lighten-1"
>
mdi-close-circle-outline
</v-icon>
...
...
@@ -317,6 +360,10 @@ export default {
openDialogSignUp
()
{
this
.
activeLogin
=
false
this
.
activeLogin
=
true
},
remove
(
index
)
{
this
.
items
.
splice
(
index
,
1
)
console
.
log
(
this
.
items
)
}
}
}
...
...
@@ -354,4 +401,9 @@ export default {
.drawer_header
{
padding
:
20px
0
20px
30px
;
}
.v-menu__content
{
width
:
300px
;
top
:
153px
!important
;
padding
:
25px
;
}
</
style
>
components/user/NavBar.vue
View file @
6c99a80b
...
...
@@ -11,7 +11,7 @@
Products
</span>
<v-icon>
mdi-chevron-down
</v-icon>
<div
class=
"dropdown-content"
>
<div
class=
"dropdown-content
elevation-10"
:elevation=
"2
"
>
<v-treeview
:active.sync=
"active"
rounded
...
...
@@ -104,6 +104,7 @@ export default {
z-index
:
1
;
background-color
:
#ffffff
;
min-width
:
350px
;
/* margin-top: 20px; */
}
</
style
>
...
...
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