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
fc3c2bc9
Commit
fc3c2bc9
authored
Mar 17, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/css-ui-categories' into 'dev'
Feature/css ui categories See merge request
!26
parents
c70504d5
cbd50836
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
16 deletions
+61
-16
DetailModal.vue
components/DetailModal.vue
+9
-1
Header.vue
components/user/Header.vue
+27
-12
_id.vue
pages/home-page/categories/_id.vue
+25
-3
No files found.
components/DetailModal.vue
View file @
fc3c2bc9
...
...
@@ -22,9 +22,14 @@
</v-carousel>
</v-col>
<v-col>
<v-row
class=
"flex-row align-center justify-space-between mt-2"
>
<v-card-title
v-model=
"item.name"
class=
"modal-title"
style=
"margin-left:-30px"
>
{{
name
}}
</v-card-title>
<v-btn
icon
@
click=
"$emit('close')"
style=
"background-color:red"
>
<v-icon
color=
"white"
>
mdi-close
</v-icon>
</v-btn>
</v-row>
<v-row
class=
"flex-row align-center"
>
<h3
class=
"mr-4"
>
Price:
...
...
@@ -183,6 +188,9 @@ export default {
}
},
methods
:
{
close
()
{
this
.
$props
.
status
=
false
},
closeDialog
()
{
this
.
$props
.
status
=
false
},
...
...
@@ -235,7 +243,7 @@ export default {
.modal-title
{
font-size
:
30px
;
font-weight
:
bold
;
margin-left
:
-
30
px
;
margin-left
:
-
22
px
;
margin-top
:
10px
;
}
.hex-variant
{
...
...
components/user/Header.vue
View file @
fc3c2bc9
...
...
@@ -130,21 +130,21 @@
</v-icon>
</v-badge>
<v-menu
activator=
"#menu-activator"
style=
"width: 300px"
>
<v-list
dense
three-line
>
<v-list
class=
"list-item no-scroll"
dense
three-line
>
<v-list-item
v-for=
"item in products"
:key=
"item.id"
link
>
<v-list-item-avatar>
<v-list-item-avatar
class=
"item-avatar"
tile
align-center
min-height=
"80px"
cover
>
<v-img
:src=
"item.product.images[0]"
/>
</v-list-item-avatar>
<v-list-item-content>
<v-list-item-title>
{{
item
.
product
.
name
}}
</v-list-item-title>
<v-list-item-subtitle>
{{
item
.
quantity
+
"
x
"
+
item
.
product
.
price
}}
</v-list-item-subtitle>
<v-list-item-content
class=
"list-item-card"
>
<v-list-item-title
class=
"font-weight-bold"
>
{{
item
.
product
.
name
}}
</v-list-item-title>
<v-list-item-subtitle>
{{
item
.
quantity
+
"
x
"
+
item
.
product
.
price
+
"
$
"
}}
</v-list-item-subtitle>
</v-list-item-content>
<v-list-item-action>
<v-list-item-action
class=
"align-self-center"
>
<v-btn
icon
@
click=
"removeCart(item,index)"
>
<v-icon
color=
"grey lighten-1"
>
mdi-close-circle-outline
...
...
@@ -201,15 +201,15 @@
<v-list
dense
three-line
>
<v-list-item
v-for=
"item in wishlist"
:key=
"item.name"
link
>
<v-list-item-avatar>
<v-img
:src=
"item.product.images[0]"
/>
<v-list-item-avatar
tile
class=
"align-center item-avatar"
>
<v-img
tile
:src=
"item.product.images[0]"
/>
</v-list-item-avatar>
<v-list-item-content>
<v-list-item-title>
{{
item
.
product
.
name
}}
</v-list-item-title>
<v-list-item-subtitle>
{{
item
.
product
.
price
}}
</v-list-item-subtitle>
<v-list-item-content
class=
"list-item-card"
>
<v-list-item-title
class=
"font-weight-bold"
>
{{
item
.
product
.
name
}}
</v-list-item-title>
<v-list-item-subtitle>
{{
item
.
product
.
price
+
'
$
'
}}
</v-list-item-subtitle>
</v-list-item-content>
<v-list-item-action>
<v-list-item-action
class=
"align-self-center"
>
<v-btn
icon
@
click=
"removeWishlist(item, index)"
>
<v-icon
color=
"grey lighten-1"
>
mdi-close-circle-outline
...
...
@@ -529,4 +529,19 @@ b {
padding
:
25px
;
background-color
:
#ffffff
;
}
.list-item-card
{
align-self
:
center
!important
;
}
.list-item
{
overflow-y
:
auto
;
height
:
450px
;
}
.list-item
::-webkit-scrollbar
{
display
:
none
;
}
.item-avatar
{
height
:
70px
!important
;
width
:
70px
!important
;
min-width
:
70px
;
}
</
style
>
pages/home-page/categories/_id.vue
View file @
fc3c2bc9
...
...
@@ -6,12 +6,20 @@
<BreadCrumb
:items=
"breadcrumbItems"
/>
<v-container
class=
"pa-0"
>
<v-row
class=
"d-flex align-center pl-2 mt-2"
>
<v-col>
<v-col
class=
"d-flex align-center"
>
<v-hover
v-slot=
"
{ hover }">
<v-btn
outlined
:style=
"
{ 'background-color': hover ? '#1976d2' : '#f5f5f5','color':hover ? '#f5f5f5' : 'black' }">
FILTER
SHOW
</v-btn>
</v-hover>
<v-col
md=
"1"
>
<v-select
v-model=
"itemsPerPage"
:items=
"numberPage"
item-text=
"name"
item-value=
"id"
/>
</v-col>
</v-col>
</v-row>
<v-row
class=
"pt-5 pb-5"
>
...
...
@@ -166,7 +174,21 @@ export default {
},
itemsPerPage
:
8
,
currentPage
:
1
,
wishlish
:
[]
wishlish
:
[],
numberPage
:
[
{
name
:
'
4
'
,
id
:
4
},
{
name
:
'
8
'
,
id
:
8
},
{
name
:
'
12
'
,
id
:
12
}
]
}
},
computed
:
{
...
...
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