From 39e21600ca5c9d177e7634ff7654cd9a4a87a29d Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Thu, 30 Nov 2023 14:27:46 +0100 Subject: [PATCH] Struttura Scheda Prodotti... --- .../fioredellavita.riso.app/db/lang/ws_es.js | 1 + src/common/shared_vuejs.ts | 36 +++++++++++++ src/components/CMyCart/CMyCart.ts | 7 +++ src/components/CMyCart/CMyCart.vue | 1 - src/components/CProductCard/CProductCard.ts | 19 ++++--- src/components/CProductCard/CProductCard.vue | 50 +++++++++---------- src/css/app.scss | 5 +- src/model/Products.ts | 1 + src/router/routesECommerce.ts | 35 ++++++------- src/statics/lang/it.js | 14 ++++++ src/store/Modules/fieldsTable.ts | 11 ++++ src/store/Modules/tools.ts | 6 +++ src/store/Modules/toolsext.ts | 1 + src/store/Products.ts | 4 +- src/store/globalStore.ts | 1 + src/views/ecommerce/checkOut/checkOut.vue | 2 +- 16 files changed, 136 insertions(+), 58 deletions(-) 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 @@