diff --git a/_ALL_SITES/fioredellavita.riso.app/db/lang/ws_es.js b/_ALL_SITES/fioredellavita.riso.app/db/lang/ws_es.js index 66a384d3..eea32f9f 100755 --- a/_ALL_SITES/fioredellavita.riso.app/db/lang/ws_es.js +++ b/_ALL_SITES/fioredellavita.riso.app/db/lang/ws_es.js @@ -12,6 +12,7 @@ const msg_website_es = { stars: 'Voto', color: 'Colore', theme: 'Tema', + producer: 'Produttore', }, hours: { descr: 'Descrizione', diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index 628e5285..fa821a88 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -17,6 +17,42 @@ export const shared_consts = { }, LIMIT_NOTIF_FOR_USER: 200, + UNITS_OF_MEASURE: { + NESSUNO: 0, + GRAMMI: 1, + CHILI: 2, + LITRI: 3, + PEZZI: 4, + }, + + Units_Of_Measure_ListBox: [ + { + label: '[Nessuno]', + value: 0, + short: '', + }, + { + label: 'Grammi (g)', + value: 1, + short: 'g', + }, + { + label: 'Chili (kg)', + value: 2, + short: 'kg', + }, + { + label: 'Litri (l)', + value: 3, + short: 'lt', + }, + { + label: 'Pezzi (p)', + value: 4, + short: 'pz', + }, + ], + CallFunz: { SOSTITUISCI: 345, AGGIUNGI_NUOVO_IMBARCO: 380, diff --git a/src/components/CMyCart/CMyCart.ts b/src/components/CMyCart/CMyCart.ts index 41f48fbc..5accf7c1 100755 --- a/src/components/CMyCart/CMyCart.ts +++ b/src/components/CMyCart/CMyCart.ts @@ -1,3 +1,4 @@ +import { ref, onMounted, onBeforeMount, PropType, reactive, watch } from 'vue' import { CCardState } from '../CCardState' import { computed, defineComponent } from 'vue' @@ -50,6 +51,12 @@ export default defineComponent({ globalStore.rightCartOpen = false } + function mounted() { + products.loadOrders() + } + + onMounted(mounted) + return { myCart, myTotalPrice, diff --git a/src/components/CMyCart/CMyCart.vue b/src/components/CMyCart/CMyCart.vue index 343dde89..441c334e 100755 --- a/src/components/CMyCart/CMyCart.vue +++ b/src/components/CMyCart/CMyCart.vue @@ -1,6 +1,5 @@