From 4656f3f9ca6f41c9041536b13564180da8894ad6 Mon Sep 17 00:00:00 2001 From: lizhilun Date: Wed, 18 Mar 2026 09:37:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E6=8E=A5=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=E7=9A=84=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E8=A1=8C=E4=B8=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了进入接单列表页面时自动滚动到今天的逻辑,避免界面 在加载后自动往上滚动的问题。 Co-Authored-By: Claude Opus 4.6 --- public/js/order-list.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/public/js/order-list.js b/public/js/order-list.js index f5b0ede..fc6452f 100644 --- a/public/js/order-list.js +++ b/public/js/order-list.js @@ -44,13 +44,6 @@ async function loadOrders(append) { container.insertAdjacentHTML('beforeend', html); orderHasMore = data.records.length >= 20; orderPage++; - if (!append) { - const today = formatLocalDate(new Date()); - setTimeout(() => { - const el = container.querySelector(`[data-date="${today}"]`); - if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' }); - }, 100); - } } } catch (e) { console.error(e); } orderLoading = false;