wangliang_wd

feat:优化首页上拉更多

@@ -64,7 +64,10 @@ export function actionUpdatePullRefresh(pageModel: PageModel, event: GestureEven @@ -64,7 +64,10 @@ export function actionUpdatePullRefresh(pageModel: PageModel, event: GestureEven
64 64
65 export function actionUpdateLoadMore(model: PageModel, event: GestureEvent) { 65 export function actionUpdateLoadMore(model: PageModel, event: GestureEvent) {
66 // list size +1 66 // list size +1
67 - if (model.endIndex >= model.compList.totalCount() - 3 && model.endIndex <= model.compList.totalCount()) { 67 +
  68 + console.log(TAG,model.compList.totalCount(),model.endIndex)
  69 +
  70 + if (model.endIndex >= model.compList.totalCount() - 3 && model.endIndex - 1 <= model.compList.totalCount()) {
68 // model.offsetY = event.touches[0].y - model.downY; 71 // model.offsetY = event.touches[0].y - model.downY;
69 // if (Math.abs(model.offsetY) > vp2px(model.pullUpLoadHeight) / 2) { 72 // if (Math.abs(model.offsetY) > vp2px(model.pullUpLoadHeight) / 2) {
70 // model.isCanLoadMore = true; 73 // model.isCanLoadMore = true;