Aggiornamento APP RISO:
✅ Inviando i RIS, deve comparire prima il Circuito della Provincia, e poi quello Nazionale ✅ Risolto problema per vecchie registrazioni, la provincia compariva "undefined".
This commit is contained in:
@@ -53,6 +53,15 @@
|
||||
font-size: 0.75rem;
|
||||
color: gray;
|
||||
}
|
||||
.subcat {
|
||||
font-size: 1rem;
|
||||
@media (max-width: 718px) {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
}
|
||||
.subcat_color {
|
||||
color: green;
|
||||
}
|
||||
|
||||
.label-qta{
|
||||
font-size: 1.15rem;
|
||||
|
||||
@@ -424,6 +424,15 @@ export default defineComponent({
|
||||
$router.push(path)
|
||||
}
|
||||
|
||||
function hasImage(): boolean {
|
||||
if (!myproduct.value || !myproduct.value.productInfo) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const { img, image_link } = myproduct.value.productInfo;
|
||||
return ((!!img && img !== '') || (!!image_link && image_link !== ''))
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
onBeforeUnmount(beforeDestroy)
|
||||
|
||||
@@ -474,6 +483,7 @@ export default defineComponent({
|
||||
isOrdineChiuso,
|
||||
ricarica,
|
||||
apriSchedaPDF,
|
||||
hasImage,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
t('ecomm.not_active')
|
||||
}}</span>
|
||||
</div>
|
||||
<q-card-section horizontal class="image-section">
|
||||
<div class="image-container">
|
||||
<q-card-section horizontal :class="'image-section'">
|
||||
<div v-if="hasImage()" :class="hasImage() ? 'image-container' : ''">
|
||||
<q-img
|
||||
:src="myproduct.productInfo.img ? `` + myproduct.productInfo.img : myproduct.productInfo.image_link"
|
||||
:alt="myproduct.productInfo.name"
|
||||
@@ -217,6 +217,9 @@
|
||||
<div class="product_code">
|
||||
{{ t('ecomm.codice') }}: {{ myproduct.productInfo.code }}
|
||||
</div>
|
||||
<div v-if="myproduct.productInfo.subcatprods && myproduct.productInfo.subcatprods.length > 0" class="subcat">
|
||||
<span style="color: #333333;">{{ t('ecomm.subcat') }}:</span> <span class="subcat_color">{{ myproduct.productInfo.subcatprods[0].name }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-card-section v-if="complete && myproduct.productInfo.description">
|
||||
|
||||
Reference in New Issue
Block a user