immagini dei prodotti marocco

visualizzazione di una pagina web su di un q-dialog
This commit is contained in:
Surya Paolo
2024-02-06 22:39:47 +01:00
parent 64bd3cebb3
commit 2151502d30

View File

@@ -81,8 +81,12 @@ function completaSettaggioProduct_AndProductInfo(arrcampi_productInfo, arrcampi_
}
}
if (!productInfo.img && product.code) {
if (!rec.hasOwnProperty('img') && product.code) {
productInfo.img = 'upload/products/' + product.code + '.jpg';
} else {
if (rec.hasOwnProperty('img')) {
productInfo.img = 'upload/products/' + rec['img'];
}
}
return { product, productInfo };