import com.electric.chargingpile.util.JsonUtils;
import com.electric.chargingpile.util.LoadingDialog;
@ -72,7 +73,7 @@ public class UserPageActivity extends AppCompatActivity implements View.OnClickL
private void initView() {
UserPageBeanLab.get(UserPageActivity.this).clear();
BarColorUtil.setStatusBarColor(UserPageActivity.this, getResources().getColor(R.color.color_1bb637), 1);
loadingDialog = new LoadingDialog(UserPageActivity.this);
loadingDialog.setCanceledOnTouchOutside(false);
@ -227,12 +228,6 @@ public class UserPageActivity extends AppCompatActivity implements View.OnClickL
@Override
public void onResponse(String s) {
loadingDialog.dismiss();
if (page == 1) {
xRefreshView.stopRefresh();
} else {
xRefreshView.stopLoadMore();
}
String code = JsonUtils.getKeyResult(s, "code");
if ("1000".equals(code)) {
String data = JsonUtils.getKeyResult(s, "data");
@ -249,6 +244,7 @@ public class UserPageActivity extends AppCompatActivity implements View.OnClickL
userPageAdapter.setContentData(userHomePageBean.list);
}
userPageAdapter.setFooterData(false);
xRefreshView.stopRefresh();
} else {
if (userHomePageBean.list.size() == 0) {
xRefreshView.setLoadComplete(true);
@ -257,10 +253,16 @@ public class UserPageActivity extends AppCompatActivity implements View.OnClickL
userPageAdapter.addContentData(userHomePageBean.list);
userPageAdapter.setFooterData(false);
}
xRefreshView.stopLoadMore();
}
} else {
String desc = JsonUtils.getKeyResult(s, "desc");
ToastUtil.showToast(UserPageActivity.this, desc, Toast.LENGTH_SHORT);
if (page == 1) {
xRefreshView.stopRefresh();
} else {
xRefreshView.stopLoadMore();
}
}
}
|
||
| 2 | 2 |
|
| 3 | 3 |
|
| 4 | 4 |
|
| 5 |
|
|
| 5 | 6 |
|
| 6 | 7 |
|
| 7 | 8 |
|
|
||
| 16 | 17 |
|
| 17 | 18 |
|
| 18 | 19 |
|
| 20 |
|
|
| 19 | 21 |
|
| 20 | 22 |
|
| 21 | 23 |
|
|
||
| 290 | 292 |
|
| 291 | 293 |
|
| 292 | 294 |
|
| 293 |
|
|
| 294 |
|
|
| 295 |
|
|
| 296 |
|
|
| 295 |
|
|
| 296 |
|
|
| 297 |
|
|
| 298 |
|
|
| 297 | 299 |
|
| 298 | 300 |
|
| 299 | 301 |
|
| 300 |
|
|
| 301 |
|
|
| 302 |
|
|
| 303 |
|
|
| 304 |
|
|
| 305 |
|
|
| 306 | 302 |
|
| 307 |
|
|
| 308 | 303 |
|
| 309 | 304 |
|
| 310 | 305 |
|
| 311 | 306 |
|
| 312 |
|
|
| 307 |
|
|
| 308 |
|
|
| 309 |
|
|
| 310 |
|
|
| 313 | 311 |
|
| 314 | 312 |
|
| 315 | 313 |
|
|
||
| 327 | 325 |
|
| 328 | 326 |
|
| 329 | 327 |
|
| 328 |
|
|
| 330 | 329 |
|
| 331 | 330 |
|
| 332 | 331 |
|
|
||
| 2 | 2 |
|
| 3 | 3 |
|
| 4 | 4 |
|
| 5 |
|
|
| 6 | 5 |
|
| 7 | 6 |
|
| 8 | 7 |
|
|
||
| 94 | 93 |
|
| 95 | 94 |
|
| 96 | 95 |
|
| 97 |
|
|
| 96 |
|
|
| 98 | 97 |
|
| 99 | 98 |
|
| 100 | 99 |
|
|
||
| 165 | 164 |
|
| 166 | 165 |
|
| 167 | 166 |
|
| 168 |
|
|
| 169 |
|
|
| 170 |
|
|
| 171 |
|
|
| 172 |
|
|
| 173 |
|
|
| 174 |
|
|
| 175 |
|
|
| 176 |
|
|
| 177 |
|
|
| 167 |
|
|
| 178 | 168 |
|
| 179 | 169 |
|
| 180 | 170 |
|
|
||
| 227 | 217 |
|
| 228 | 218 |
|
| 229 | 219 |
|
| 230 |
|
|
| 220 |
|
|
| 231 | 221 |
|
| 232 | 222 |
|
|
||
| 73 | 73 |
|
| 74 | 74 |
|
| 75 | 75 |
|
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 80 | 80 |
|
| 81 | 81 |
|
| 82 | 82 |
|
|
||
| 10 | 10 |
|
| 11 | 11 |
|
| 12 | 12 |
|
| 13 |
|
|
| 13 | 14 |
|
| 14 | 15 |
|
| 15 | 16 |
|
|
||
| 17 | 18 |
|
| 18 | 19 |
|
| 19 | 20 |
|
| 20 |
|
|
| 21 |
|
|
| 21 |
|
|
| 22 |
|
|
| 22 | 23 |
|
| 23 | 24 |
|
| 24 | 25 |
|
|
||
| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
|
||
| 96 | 96 |
|
| 97 | 97 |
|
| 98 | 98 |
|
| 99 |
|
|
| 100 |
|
|
| 101 |
|
|
| 102 |
|
|
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
|
| 109 |
|
|
| 110 |
|
|
| 111 |
|
|
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
|
| 116 |
|
|
| 117 |
|
|
| 99 | 118 |
|
| 100 | 119 |
|
|
||
| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
|
||
| 169 | 169 |
|
| 170 | 170 |
|
| 171 | 171 |
|
| 172 |
|
|
| 172 | 173 |
|
| 173 | 174 |
|
| 174 | 175 |
|