Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-10-24 13:58:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8c97543deda85d5389d8579a269950b05c99683f
8c97543d
1 parent
ae9a8244
feat:优化首页上拉更多
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/utils/PullDownRefresh.ets
sight_harmony/features/wdComponent/src/main/ets/utils/PullDownRefresh.ets
View file @
8c97543
...
...
@@ -64,7 +64,10 @@ export function actionUpdatePullRefresh(pageModel: PageModel, event: GestureEven
export function actionUpdateLoadMore(model: PageModel, event: GestureEvent) {
// list size +1
if (model.endIndex >= model.compList.totalCount() - 3 && model.endIndex <= model.compList.totalCount()) {
console.log(TAG,model.compList.totalCount(),model.endIndex)
if (model.endIndex >= model.compList.totalCount() - 3 && model.endIndex - 1 <= model.compList.totalCount()) {
// model.offsetY = event.touches[0].y - model.downY;
// if (Math.abs(model.offsetY) > vp2px(model.pullUpLoadHeight) / 2) {
// model.isCanLoadMore = true;
...
...
Please
register
or
login
to post a comment