Commit 333e6b86 authored by Le Dinh Trung's avatar Le Dinh Trung

fixbug header

parent a415a1c5
...@@ -91,10 +91,12 @@ ...@@ -91,10 +91,12 @@
<v-container class="header-middle-content" py-7> <v-container class="header-middle-content" py-7>
<v-col cols="12" md="8" class="header-middle-left padding-0"> <v-col cols="12" md="8" class="header-middle-left padding-0">
<div class="logo"> <div class="logo">
<router-link :to="`/home-page/`">
<v-img <v-img
width="153px" width="153px"
src="https://d-themes.com/html/riode/images/logo.png" src="https://d-themes.com/html/riode/images/logo.png"
/> />
</router-link>
</div> </div>
<v-form class="d-flex form-search"> <v-form class="d-flex form-search">
<v-text-field <v-text-field
...@@ -143,7 +145,7 @@ ...@@ -143,7 +145,7 @@
<v-menu activator="#menu-activator" style="width: 300px"> <v-menu activator="#menu-activator" style="width: 300px">
<v-list class="list-item no-scroll" 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, index) in products"
:key="item.id" :key="item.id"
link link
> >
...@@ -151,7 +153,9 @@ ...@@ -151,7 +153,9 @@
<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 class="list-item-card"> <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-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>
...@@ -194,8 +198,8 @@ ...@@ -194,8 +198,8 @@
<SignupModal :status="activeRegister" @close="activeRegister = false" /> <SignupModal :status="activeRegister" @close="activeRegister = false" />
<!-- show drawer --> <!-- show drawer -->
<v-navigation-drawer <v-navigation-drawer
class="nav-modal"
v-model="drawer" v-model="drawer"
class="nav-modal"
absolute absolute
right right
width="350px" width="350px"
...@@ -212,12 +216,14 @@ ...@@ -212,12 +216,14 @@
<v-divider /> <v-divider />
<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,index) in wishlist" :key="item.name" link>
<v-list-item-avatar tile class="align-center item-avatar"> <v-list-item-avatar tile class="align-center item-avatar">
<v-img tile :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 class="list-item-card"> <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-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>
......
...@@ -800,6 +800,7 @@ export default { ...@@ -800,6 +800,7 @@ export default {
console.log(response) console.log(response)
this.editedItem = response.data.data this.editedItem = response.data.data
Object.assign(this.products[currentPostIndex], this.editedItem) Object.assign(this.products[currentPostIndex], this.editedItem)
this.clearImage()
}) })
.catch((error) => { .catch((error) => {
console.log(error) console.log(error)
...@@ -836,7 +837,6 @@ export default { ...@@ -836,7 +837,6 @@ export default {
fileSelected (event) { fileSelected (event) {
if (event) { if (event) {
for (let i = 0; i < event.length; i++) { for (let i = 0; i < event.length; i++) {
console.log(event[i])
this.files.push(URL.createObjectURL(event[i])) this.files.push(URL.createObjectURL(event[i]))
} }
} }
......
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