|
|
@@ -1183,13 +1183,23 @@ public class ClientActivity extends BaseActivity implements View.OnClickListener
|
|
|
switch (resId) {
|
|
|
case R.id.ib_ranking_condition://排名
|
|
|
// ToastUtil.showToast(ct, year + "-" + month);
|
|
|
- ib_ranking_condition.setText(month + "月");
|
|
|
- sendPersonalRank(year + month);
|
|
|
+ if (CommonUtil.isNetWorkConnected(ct)) {
|
|
|
+ ib_ranking_condition.setText(month + "月");
|
|
|
+ sendPersonalRank(year + month);
|
|
|
+ } else {
|
|
|
+ ToastUtil.showToast(ct, R.string.networks_out);
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
case R.id.ib_index_condition://图表
|
|
|
// ToastUtil.showToast(ct, year + "-" + month);
|
|
|
- ib_index_condition.setText(month + "月");
|
|
|
- sendTargets(year + month);
|
|
|
+ if (CommonUtil.isNetWorkConnected(ct)) {
|
|
|
+ ib_index_condition.setText(month + "月");
|
|
|
+ sendTargets(year + month);
|
|
|
+ } else {
|
|
|
+ ToastUtil.showToast(ct, R.string.networks_out);
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
/* case R.id.ib_sale_condition://销售
|
|
|
ToastUtil.showToast(ct, year + "-" + month );
|