fix: 移除接单列表页面的自动滚动行为

移除了进入接单列表页面时自动滚动到今天的逻辑,避免界面
在加载后自动往上滚动的问题。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lizhilun
2026-03-18 09:37:49 +08:00
co-authored by Claude Opus 4.6
parent a0d7bfdc3d
commit 4656f3f9ca
-7
View File
@@ -44,13 +44,6 @@ async function loadOrders(append) {
container.insertAdjacentHTML('beforeend', html); container.insertAdjacentHTML('beforeend', html);
orderHasMore = data.records.length >= 20; orderHasMore = data.records.length >= 20;
orderPage++; 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); } } catch (e) { console.error(e); }
orderLoading = false; orderLoading = false;