Files
dine-order/kitchen.html
T
2026-11-17 12:29:33 +08:00

59 lines
3.1 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#2b2118">
<title>小满食堂 · 后厨看板</title>
<link rel="stylesheet" href="css/app.css">
<style>
body { background: #f3eee5; }
.kb-head { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.kb-head h1 { font-size: 16px; margin: 0 0 8px; }
.kb-stats { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); }
.kb-stats b { color: var(--ink); font-size: 14px; }
.kb-tabs { display: flex; gap: 8px; margin-top: 10px; }
.kb-tab { padding: 6px 12px; border-radius: 999px; font-size: 12px; background: #f7f2e9; border: 1px solid var(--line); color: var(--ink-2); }
.kb-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.kb-tab i { font-style: normal; opacity: .7; margin-left: 4px; }
.kb-list { padding: 14px 16px calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 2px 6px rgba(80,60,40,.05); }
.order-card.urged { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.oc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.oc-head b { font-size: 16px; }
.oc-table { font-size: 12px; color: #fff; background: var(--ink); padding: 2px 8px; border-radius: 8px; }
.oc-items { font-size: 13px; line-height: 1.7; }
.oc-items span.q { color: var(--red); font-weight: 700; }
.oc-note { margin-top: 6px; font-size: 12px; color: #8a6a2f; background: #fdf5e3; padding: 6px 8px; border-radius: 8px; }
.oc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.oc-time { font-size: 11px; color: var(--ink-2); }
.oc-actions { display: flex; gap: 8px; }
.btn-sm { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.btn-sm.primary { background: var(--red); }
.btn-sm.ghost { background: #fff; border: 1px solid var(--line); }
.btn-sm.ok { background: var(--green); color: #fff; }
.empty { text-align: center; color: var(--ink-2); font-size: 13px; padding: 40px 0; }
</style>
</head>
<body>
<header class="kb-head">
<h1>后厨 / 前台看板</h1>
<div class="kb-stats">
<span>今日 <b id="statTotal">0</b> 单</span>
<span>待处理 <b id="statOpen">0</b></span>
<span>营业额 <b id="statMoney">¥0</b></span>
</div>
<div class="kb-tabs" id="tabs">
<button class="kb-tab on" data-tab="new">待接单<i id="n-new">0</i></button>
<button class="kb-tab" data-tab="cooking">制作中<i id="n-cooking">0</i></button>
<button class="kb-tab" data-tab="served">已上齐<i id="n-served">0</i></button>
<button class="kb-tab" data-tab="all">全部<i id="n-all">0</i></button>
</div>
</header>
<main class="kb-list" id="list"></main>
<script type="module" src="js/kitchen.js"></script>
</body>
</html>