wangliang_wd

feat:优化首页上拉更多

... ... @@ -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;
... ...