diff --git a/index.html b/index.html index d806d66..50752f7 100644 --- a/index.html +++ b/index.html @@ -359,9 +359,18 @@ if (!data.ok) throw new Error("Token inválido"); const servicesList = data.services || []; - currentQuotes = data.quotes || []; + // 🛑 LÓGICA DEL BANNER: Si NO tiene suscripción activa, se lo enseñamos + const promoBanner = document.getElementById('promo-banner'); + if (promoBanner) { + if (data.subscription) { + promoBanner.classList.add('hidden'); // Ya tiene el plan, lo ocultamos + } else { + promoBanner.classList.remove('hidden'); // No tiene el plan, lo mostramos + } + } + renderPortal(data.client, data.company, servicesList); renderQuotes(); @@ -515,6 +524,29 @@ if (hasUnseenPending && isAvisosTab) { `; }); + container.innerHTML = html; +
REF #${refStr}
+