refactor: 清洗任务页删除顶部"去处理"按钮

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
zhangyan
2026-06-15 17:46:48 +08:00
co-authored by Claude Opus 4.6
parent 26681149b9
commit dac2f771d2
@@ -200,12 +200,6 @@
/* 顶部操作区 */
.tabs-spacer { flex: 1; }
.top-action-btn {
padding: 10px 28px; border-radius: 8px; font-size: 14px; font-weight: 600;
background: #4a90d9; color: #fff; border: none; cursor: pointer;
transition: all 0.2s;
}
.top-action-btn:hover { background: #5ba0e9; transform: translateY(-1px); }
.logout-btn {
font-size: 12px; color: rgba(255,255,255,0.5); cursor: pointer;
padding: 4px 12px; border-radius: 4px; transition: all 0.2s;
@@ -245,7 +239,6 @@
<span class="status-tab__count" id="doneCount">1</span>
</div>
<span class="tabs-spacer"></span>
<button class="top-action-btn" onclick="goWeigh()">去处理</button>
</div>
<!-- 任务列表区 -->
@@ -396,11 +389,6 @@
window.location.href = '02-batch-weighing.html?user=' + encodeURIComponent(user) + '&taskNo=' + encodeURIComponent(taskNo);
}
// ── 兼容旧版 goWeigh(顶部按钮,取第一个待处理任务单)──
function goWeigh() {
var firstBtn = document.querySelector('.order-card[data-status="pending"] .task-action-btn');
if (firstBtn) handleTask(firstBtn);
}
// ── 退出登录 ──
function handleLogout() {