From 30d9e049546e4245e81b3f72d653eb54571d1b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=8B=A4=E6=B0=91?= Date: Wed, 26 Nov 2025 20:24:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(notifications):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=88=97=E8=A1=A8=E5=8A=A0=E8=BD=BD=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=B8=8E=E5=88=B7=E6=96=B0=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改ApiConfig中的showLog为false - 新增isLoading1状态用于区分不同加载场景 - 将RefreshView的isLoading绑定改为isLoading1 - 调整日期范围从5天改为10天 - 简化数据处理逻辑,移除多余临时变量 - 修复两个数据源请求参数顺序错误问题 - 更新分页加载判断逻辑并调整最小加载数量 - 修改下拉刷新触发距离阈值从200到100 - 缩短加载更多的时间间隔限制从1500ms到500ms --- src/main/ets/view/refresh/RefreshView.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/ets/view/refresh/RefreshView.ets b/src/main/ets/view/refresh/RefreshView.ets index 4de4f8a..0d25a11 100644 --- a/src/main/ets/view/refresh/RefreshView.ets +++ b/src/main/ets/view/refresh/RefreshView.ets @@ -151,12 +151,12 @@ export struct RefreshView { break case TouchType.Up: this.endY = e1.y - if (this.endY - this.startY < -200 && this._openMore) { + if (this.endY - this.startY < -100 && this._openMore) { const v = this.data && (this.data.length % this.pageSize) === 0 if ((v && this.canLoadMore == 'default') || this.canLoadMore == 'allow') { const cTime = new Date().getTime() // 2024.11.21 测试觉得刷新太多了,暂时改为1秒5间隔 - if (cTime - this._oTime > 1500) { + if (cTime - this._oTime > 500) { this.onLoadMore && this.onLoadMore(Math.floor(this.data.length / this.pageSize)) this._oTime = cTime }