| | |
| | | }
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.VISIT_QUERY);
|
| | | params.addBodyParameter(VisitQueryCondition.FieldNames.username, searchText);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "20");
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, CommonVariables.Page.DEFAULT_PAGE_SIZE);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_NUM, pageNum+"");
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | |
| | | itemList.add(CommonVariables.Page.hasMorePages);
|
| | | } else {
|
| | | if (getPageNum() > 1) {
|
| | | itemList.add(CommonVariables.Page.reachBottom);
|
| | | //itemList.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | if (itemList.size() > 0) {
|
| | | itemList.add(CommonVariables.Page.reachBottom);
|
| | | //itemList.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | itemList.add(CommonVariables.Page.noMorePage);
|
| | | //itemList.add(CommonVariables.Page.noMorePage);
|
| | | }
|
| | | }
|
| | | }
|