From 9102c47804be54f040f49e8f2a37deb225bc41fe Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Wed, 12 Aug 2026 10:23:43 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E6=9F=A5=E7=9C=8B=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E8=AF=A6=E6=83=85=E5=90=8E=E8=BF=94=E5=9B=9E=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=88=97=E8=A1=A8=EF=BC=8C=E5=BA=94=E5=81=9C=E7=95=99?= =?UTF-8?q?=E5=9C=A8=E7=94=A8=E6=88=B7=E8=BF=9B=E5=85=A5=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E5=89=8D=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/MyOrder/index.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index 3592600..7e5d0be 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -804,7 +804,8 @@ export default { dateRange: [], userLatitude: null, userLongitude: null, - orderListRequestId: 0 + orderListRequestId: 0, + savedScrollTop: 0 } }, components: { @@ -862,7 +863,15 @@ export default { }) } else if (needRefreshOrderList) { uni.removeStorageSync('needRefreshMyOrderList') - this.changeType() + this.getOrderData() + if (this.savedScrollTop > 0) { + this.$nextTick(() => { + uni.pageScrollTo({ + scrollTop: this.savedScrollTop, + duration: 0 + }) + }) + } } }, onLoad() { @@ -1990,6 +1999,9 @@ export default { }, onReachBottom() { !this.loading && this.getOrderListReq() + }, + onPageScroll(e) { + this.savedScrollTop = e.scrollTop } };