feat: put product details in card

This commit is contained in:
Vlad Stan 2023-07-05 16:50:04 +03:00
parent ff9891302a
commit 5558b95d1e
2 changed files with 12 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<div> <div>
<q-toolbar> <!-- <q-toolbar>
<q-toolbar-title></q-toolbar-title> <q-toolbar-title></q-toolbar-title>
<chat-dialog v-if="this.customerPrivkey || this.customerUseExtension" :account="account ? account : dropIn" <chat-dialog v-if="this.customerPrivkey || this.customerUseExtension" :account="account ? account : dropIn"
@ -8,9 +8,17 @@
@remove-from-cart="removeFromCart" @update-qty="updateQty" @reset-cart="resetCart" @remove-from-cart="removeFromCart" @update-qty="updateQty" @reset-cart="resetCart"
@open-checkout="openCheckout"></shopping-cart> @open-checkout="openCheckout"></shopping-cart>
</q-toolbar> </q-toolbar>
-->
<div class="row"> <div class="row">
<product-detail class="col-12" v-if="productDetail && product" :product="product" <div class="col-12 auto-width" v-if="productDetail && product">
@add-to-cart="addToCart"></product-detail> <q-card>
<q-card-section>
<product-detail :product="product" @add-to-cart="addToCart"></product-detail>
</q-card-section>
</q-card>
</div>
<div class="col-12 q-my-lg"> <div class="col-12 q-my-lg">
<q-separator></q-separator> <q-separator></q-separator>
</div> </div>

View file

@ -129,7 +129,7 @@ async function customerStall(path) {
} }
this.$q.notify({ this.$q.notify({
type: 'positive', type: 'positive',
message: `${item.name} added to cart`, message: `'${item.name}' added to cart`,
icon: 'thumb_up' icon: 'thumb_up'
}) })
this.cart.products = prod this.cart.products = prod