- edit campi prodotti
- edit ordini
This commit is contained in:
@@ -8,8 +8,11 @@ import { CCopyBtn } from '@/components/CCopyBtn'
|
||||
import { CSingleCart } from '@/components/CSingleCart'
|
||||
import { CTitleBanner } from '@/components/CTitleBanner'
|
||||
|
||||
import { useI18n } from '@src/boot/i18n'
|
||||
|
||||
import MixinUsers from '../../mixins/mixin-users'
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CMyCart',
|
||||
props: {},
|
||||
@@ -18,6 +21,7 @@ export default defineComponent({
|
||||
setup() {
|
||||
const globalStore = useGlobalStore()
|
||||
const products = useProducts()
|
||||
const { t } = useI18n()
|
||||
|
||||
const { getnumItemsCart } = MixinUsers()
|
||||
|
||||
@@ -70,6 +74,7 @@ export default defineComponent({
|
||||
getnumItemsCart,
|
||||
existsOrders,
|
||||
globalStore,
|
||||
t,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<q-separator></q-separator>
|
||||
<div id="mybody">
|
||||
<div v-for="(rec, index) in ordersCart" :key="index" class="col">
|
||||
<CSingleCart :order="rec.order" :showall="false"> </CSingleCart>
|
||||
<CSingleCart :order="rec.order" :showall="false" :idOrdersCart="ordersCart ? ordersCart._id: ''"> </CSingleCart>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="numOrders === 0" style="text-align: center" class="text-grey">
|
||||
@@ -36,7 +36,7 @@
|
||||
rounded
|
||||
icon="fas fa-shopping-cart"
|
||||
color="primary"
|
||||
:label="$t('ecomm.btn_cassa')"
|
||||
:label="t('ecomm.btn_cassa')"
|
||||
@click="globalStore.rightCartOpen = false"
|
||||
class="q-mb-sm"
|
||||
to="/checkout"
|
||||
@@ -50,7 +50,7 @@
|
||||
rounded
|
||||
icon="fas fa-clipboard-list"
|
||||
color="positive"
|
||||
:label="$t('ecomm.btn_ordini')"
|
||||
:label="t('ecomm.btn_ordini')"
|
||||
class="q-mb-sm"
|
||||
@click="globalStore.rightCartOpen = false"
|
||||
to="/orderinfo"
|
||||
|
||||
Reference in New Issue
Block a user