diff --git a/src/components/CCatalogoCard/CCatalogoCard.ts b/src/components/CCatalogoCard/CCatalogoCard.ts index 695311eb..e806e90a 100755 --- a/src/components/CCatalogoCard/CCatalogoCard.ts +++ b/src/components/CCatalogoCard/CCatalogoCard.ts @@ -512,7 +512,8 @@ export default defineComponent({ } function click_opendetail(id: any, autore: any) { - emit('opendetail') + if (!props.optcatalogo.pdf) + emit('opendetail') } function escludiArticolo(variazione: IVariazione) { let hasExcludeProductTypes = !props.optcatalogo.excludeproductTypes || (props.optcatalogo.excludeproductTypes && (props.optcatalogo.excludeproductTypes.includes(variazione.versione!))) diff --git a/src/components/CCatalogoCard/CCatalogoCard.vue b/src/components/CCatalogoCard/CCatalogoCard.vue index 4e7e892b..b8c3a285 100755 --- a/src/components/CCatalogoCard/CCatalogoCard.vue +++ b/src/components/CCatalogoCard/CCatalogoCard.vue @@ -104,51 +104,69 @@ ), }" > - + + scheda.testo_right.font?.posiz_text === + costanti.POSIZ_TESTO.IN_BASSO + ? scheda.testo_right.font?.perc_text ?? '50%' + : '45%', + ...(tools.adjustSize( + optcatalogo, + scheda.dimensioni?.immagine_prodotto?.size?.width + ) && { + width: + tools.adjustSize( + optcatalogo, + scheda.dimensioni?.immagine_prodotto.size?.width + ) + ' !important', + }), + height: scheda.dimensioni?.immagine_prodotto?.size?.height + ? tools.adjustSize( + optcatalogo, + scheda.dimensioni?.immagine_prodotto?.size?.height + ) + : undefined, + display: 'block', + }" + @click="click_opendetail()" + /> + + + + + +
+
-
+
diff --git a/src/components/CMyText/CMyText.vue b/src/components/CMyText/CMyText.vue index 60d24d21..ef89778d 100755 --- a/src/components/CMyText/CMyText.vue +++ b/src/components/CMyText/CMyText.vue @@ -56,7 +56,7 @@
Parole Chiave: {autore} {titolo} {descrizione} {date_pub} {ranking} - {descrizione_breve_macro} {descrizione_completa_macro} {sottotitolo} {prezzo} + {sottotitolo} {prezzo} {descrizione_estesa}
{ @@ -546,7 +546,7 @@ export default defineComponent({ recscheda.arrProdToShow[pagina][riga] = []; } - console.log('RANKING: ', result.myrec.indiceRanking!) + // console.log('RANKING: ', result.myrec.indiceRanking!) recscheda.arrProdToShow[pagina][riga][col] = result.myrec @@ -726,12 +726,15 @@ export default defineComponent({ } const generatePDF = async () => { + //props.optcatalogo.generazionePDFInCorso = true + await nextTick() $q.loading.show({ message: 'Caricamento immagini e generazione PDF in corso...' }) + try { let defaultMargin = 0.1 @@ -795,6 +798,8 @@ export default defineComponent({ await html2pdf().set(opt).from(element).save() + // props.optcatalogo.generazionePDFInCorso = false + $q.loading.hide() $q.notify({ color: 'positive', @@ -987,6 +992,10 @@ export default defineComponent({ }; } + function containsProducts(page: IProduct[][]) { + return page && page.length > 0 && page[0] && page[0].length > 0 + } + onMounted(mounted) @@ -1037,6 +1046,7 @@ export default defineComponent({ getHeightPagina, getStyleRowSeparator, generateStyleByPageDim, + containsProducts, } } }) diff --git a/src/views/ecommerce/catalogo/catalogo.vue b/src/views/ecommerce/catalogo/catalogo.vue index ca68b88d..073b48fd 100755 --- a/src/views/ecommerce/catalogo/catalogo.vue +++ b/src/views/ecommerce/catalogo/catalogo.vue @@ -282,114 +282,120 @@
-
- - -
-
- - -
-
- - -
- -
- -
+
+ + +
+
- + + +
+
+ + +
+ +
+ + +
+ +
+
- +
-