Commit b37f5b86 authored by Le Dinh Trung's avatar Le Dinh Trung

Merge branch 'dev' of...

Merge branch 'dev' of https://gitlab.kiaisoft.com/kiaisoft.anh.tran2/kiaisoft_tuananh_nuxt into feature/deploy-to-aws
parents b2f961e8 fc3c2bc9
...@@ -22,9 +22,14 @@ ...@@ -22,9 +22,14 @@
</v-carousel> </v-carousel>
</v-col> </v-col>
<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"> <v-card-title v-model="item.name" class="modal-title" style="margin-left:-30px">
{{ name }} {{ name }}
</v-card-title> </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"> <v-row class="flex-row align-center">
<h3 class="mr-4"> <h3 class="mr-4">
Price: Price:
...@@ -183,6 +188,9 @@ export default { ...@@ -183,6 +188,9 @@ export default {
} }
}, },
methods: { methods: {
close () {
this.$props.status = false
},
closeDialog () { closeDialog () {
this.$props.status = false this.$props.status = false
}, },
...@@ -235,7 +243,7 @@ export default { ...@@ -235,7 +243,7 @@ export default {
.modal-title { .modal-title {
font-size: 30px; font-size: 30px;
font-weight: bold; font-weight: bold;
margin-left:-30px; margin-left:-22px;
margin-top:10px; margin-top:10px;
} }
.hex-variant { .hex-variant {
......
...@@ -130,21 +130,21 @@ ...@@ -130,21 +130,21 @@
</v-icon> </v-icon>
</v-badge> </v-badge>
<v-menu activator="#menu-activator" style="width: 300px"> <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-list-item
v-for="item in products" v-for="item in products"
:key="item.id" :key="item.id"
link 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-img :src="item.product.images[0]" />
</v-list-item-avatar> </v-list-item-avatar>
<v-list-item-content> <v-list-item-content class="list-item-card">
<v-list-item-title>{{ item.product.name }}</v-list-item-title> <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-subtitle>{{ item.quantity +"x"+ item.product.price + "$" }}</v-list-item-subtitle>
</v-list-item-content> </v-list-item-content>
<v-list-item-action> <v-list-item-action class="align-self-center">
<v-btn icon @click="removeCart(item,index)"> <v-btn icon @click="removeCart(item,index)">
<v-icon color="grey lighten-1"> <v-icon color="grey lighten-1">
mdi-close-circle-outline mdi-close-circle-outline
...@@ -201,15 +201,15 @@ ...@@ -201,15 +201,15 @@
<v-list dense three-line> <v-list dense three-line>
<v-list-item v-for="item in wishlist" :key="item.name" link> <v-list-item v-for="item in wishlist" :key="item.name" link>
<v-list-item-avatar> <v-list-item-avatar tile class="align-center item-avatar">
<v-img :src="item.product.images[0]" /> <v-img tile :src="item.product.images[0]" />
</v-list-item-avatar> </v-list-item-avatar>
<v-list-item-content> <v-list-item-content class="list-item-card">
<v-list-item-title>{{ item.product.name }}</v-list-item-title> <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-subtitle>{{ item.product.price + '$' }}</v-list-item-subtitle>
</v-list-item-content> </v-list-item-content>
<v-list-item-action> <v-list-item-action class="align-self-center">
<v-btn icon @click="removeWishlist(item, index)"> <v-btn icon @click="removeWishlist(item, index)">
<v-icon color="grey lighten-1"> <v-icon color="grey lighten-1">
mdi-close-circle-outline mdi-close-circle-outline
...@@ -529,4 +529,19 @@ b { ...@@ -529,4 +529,19 @@ b {
padding: 25px; padding: 25px;
background-color: #ffffff; 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> </style>
...@@ -6,12 +6,20 @@ ...@@ -6,12 +6,20 @@
<BreadCrumb :items="breadcrumbItems" /> <BreadCrumb :items="breadcrumbItems" />
<v-container class="pa-0"> <v-container class="pa-0">
<v-row class="d-flex align-center pl-2 mt-2"> <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-hover v-slot="{ hover }">
<v-btn outlined :style="{ 'background-color': hover ? '#1976d2' : '#f5f5f5','color':hover ? '#f5f5f5' : 'black' }"> <v-btn outlined :style="{ 'background-color': hover ? '#1976d2' : '#f5f5f5','color':hover ? '#f5f5f5' : 'black' }">
FILTER SHOW
</v-btn> </v-btn>
</v-hover> </v-hover>
<v-col md="1">
<v-select
v-model="itemsPerPage"
:items="numberPage"
item-text="name"
item-value="id"
/>
</v-col>
</v-col> </v-col>
</v-row> </v-row>
<v-row class="pt-5 pb-5"> <v-row class="pt-5 pb-5">
...@@ -166,7 +174,21 @@ export default { ...@@ -166,7 +174,21 @@ export default {
}, },
itemsPerPage: 8, itemsPerPage: 8,
currentPage: 1, currentPage: 1,
wishlish: [] wishlish: [],
numberPage: [
{
name: '4',
id: 4
},
{
name: '8',
id: 8
},
{
name: '12',
id: 12
}
]
} }
}, },
computed: { computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment