fix(kiosko): eliminar campo WhatsApp del flujo, botón OK en numpad
El campo WhatsApp generaba fricción innecesaria. Ahora el numpad tiene un botón "Obtener mi turno" de ancho completo como última fila. WhatsApp queda como hidden vacío para no romper la API. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
104ba07af7
commit
4e945e6437
@@ -408,6 +408,8 @@ unset($p);
|
||||
.np-btn:active { background: var(--brand-light); transform: scale(.94); }
|
||||
.np-clear { color: #ef4444; border-color: #fca5a5; }
|
||||
.np-back { color: #64748b; }
|
||||
.np-ok { background: var(--brand); color: #fff; border-color: var(--brand);
|
||||
font-size: 1.15rem; padding: 1.1rem; }
|
||||
|
||||
/* ── Responsive ── */
|
||||
@media (min-height: 800px) {
|
||||
@@ -518,20 +520,14 @@ unset($p);
|
||||
<button class="np-btn np-clear" data-k="C">C</button>
|
||||
<button class="np-btn" data-k="0">0</button>
|
||||
<button class="np-btn np-back" data-k="⌫"><i class="fas fa-backspace"></i></button>
|
||||
<button class="np-btn np-ok" data-k="OK" style="grid-column:1/-1">
|
||||
<i class="fas fa-ticket-alt me-2"></i>Obtener mi turno
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="inp-cel">WhatsApp
|
||||
<span style="color:#94a3b8;font-size:.82rem;font-weight:400"> (opcional)</span>
|
||||
</label>
|
||||
<input type="tel" id="inp-cel" class="form-control"
|
||||
placeholder="Ej: 3001234567" maxlength="20"
|
||||
autocomplete="off" inputmode="numeric">
|
||||
<div class="hint"><i class="fas fa-bell me-1"></i>Para recibir notificaciones de su turno</div>
|
||||
</div>
|
||||
<button class="btn-kiosko-main" onclick="confirmarTurno()">
|
||||
<i class="fas fa-ticket-alt me-2"></i>Obtener mi turno
|
||||
</button>
|
||||
<!-- WhatsApp oculto — se envía vacío en kiosko -->
|
||||
<input type="hidden" id="inp-cel" value="">
|
||||
|
||||
<button class="btn-kiosko-back" onclick="volverPrioridades()">
|
||||
<i class="fas fa-arrow-left me-1"></i>Cambiar tipo de atención
|
||||
</button>
|
||||
@@ -752,7 +748,10 @@ unset($p);
|
||||
e.preventDefault();
|
||||
const k = btn.dataset.k;
|
||||
const inp = _inpCedula;
|
||||
if (k === 'C') {
|
||||
if (k === 'OK') {
|
||||
confirmarTurno();
|
||||
return;
|
||||
} else if (k === 'C') {
|
||||
inp.value = '';
|
||||
} else if (k === '⌫') {
|
||||
inp.value = inp.value.slice(0, -1);
|
||||
|
||||
Reference in New Issue
Block a user