Actualizar index.html
This commit is contained in:
@@ -213,7 +213,7 @@
|
||||
else if (srv.status_name === 'Visita Agendada' || (srv.scheduled_date && srv.scheduled_time)) {
|
||||
const endT = addOneHour(srv.scheduled_time);
|
||||
|
||||
// --- NUEVA LÓGICA: DETECCIÓN DE RETRASO ---
|
||||
// --- DETECCIÓN DE RETRASO ---
|
||||
const now = new Date();
|
||||
const schedParts = srv.scheduled_date.split('-'); // Formato esperado YYYY-MM-DD
|
||||
const endTimeParts = endT.split(':'); // Formato esperado HH:MM
|
||||
@@ -241,7 +241,7 @@
|
||||
<div class="flex-1 min-w-0">
|
||||
<p class="text-[9px] font-black uppercase tracking-widest text-amber-500 mb-0.5">Disculpe el retraso</p>
|
||||
<h4 class="font-black text-amber-900 uppercase text-lg leading-none mb-1.5 tracking-tight">Técnico Demorado</h4>
|
||||
<p class="text-[10px] font-bold text-amber-700 leading-tight">La cita estaba prevista hasta las ${endT}. El técnico ha tenido un contratiempo en la ruta anterior. Llegará lo antes posible.</p>
|
||||
<p class="text-[10px] font-bold text-amber-700 leading-tight">La cita estaba prevista entre las <b>${srv.scheduled_time} y las ${endT}</b>. El técnico ha tenido un contratiempo en la ruta anterior. Llegará lo antes posible.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mt-4 pt-4 border-t border-amber-200/60 relative z-10">
|
||||
|
||||
Reference in New Issue
Block a user