a4cdf9defb87014e69c8c300R237">237
// public void onClick(View v) {
// Intent intent = new Intent(getApplicationContext(),NonSecretSeettingActivity.class);
// Uri uri = Uri.parse("chongdianzhuang://");
// intent.setData(uri);
// startActivity(intent);
// }
// })
.show();
break;
case "305":
alertDialog.builder()
.setMsg(rtnMsg)
.setPositiveButton("联系客服", new View.OnClickListener() {
@Override
public void onClick(View v) {
tellTask();
}
}).setNegativeButton("取消", new View.OnClickListener() {
@Override
public void onClick(View v) {
}
}).show();
break;
case "309":
alertDialog.builder()
.setMsg(rtnMsg)
.setPositiveButton("联系客服", new View.OnClickListener() {
@Override
public void onClick(View v) {
tellTask();
}
}).setNegativeButton("取消", new View.OnClickListener() {
@Override
public void onClick(View v) {
}
}).show();
break;
case "306":
//跳转到充电详情界面
String data306 = JsonUtils.getKeyResult(response, "data");
String orderid = JsonUtils.getKeyResult(data306, "orderId");
Intent intent306 = new Intent(getApplicationContext(), ChargingStatusActivity.class);
intent306.putExtra(com.electric.chargingpile.constant.ChargingConstants.ORDERID, orderid);
startActivity(intent306);
finish();
break;
case "307":
alertDialog.builder()
.setMsg(rtnMsg)
.setPositiveButton("去充值", new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(), AccountRechargeActivity.class);
startActivity(intent);
}
}).show();
break;
case "311":
alertDialog.builder()
.setMsg(rtnMsg)
.setPositiveButton("开通免密支付", new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(), NonSecretSeettingActivity.class);
Uri uri = Uri.parse("chongdianzhuang://");
intent.setData(uri);
startActivity(intent);
}
}).show();
break;
case "1800":
String data1800 = JsonUtils.getKeyResult(response, "data");
String pileId = JsonUtils.getKeyResult(data1800, "pileId");
Intent intent1800 = new Intent(getApplicationContext(), SelectPileActivity.class);
intent1800.putExtra(com.electric.chargingpile.constant.ChargingConstants.ORDERID, pileId);
startActivity(intent1800);
break;
case "1000":
String data1000 = JsonUtils.getKeyResult(response, "data");
String pileIds = JsonUtils.getKeyResult(data1000, "pileId");
ChargingPileActivity.actionStart(this,pileIds);
break;
default:
ToastUtil.showToast(getApplicationContext(), rtnMsg, Toast.LENGTH_SHORT);
break;
}
}
@AfterPermissionGranted(RC_TELL_PERM)
public void tellTask() {
if (hasTellPermission()) {
// Have permission, do the thing!
// Toast.makeText(this, "TODO: Camera things", Toast.LENGTH_LONG).show();
String telNum = "4008810405";
Intent intent = new Intent();
intent.setAction("android.intent.action.CALL");
intent.addCategory("android.intent.category.DEFAULT");
intent.setData(Uri.parse("tel:" + telNum));
ChargingPileActivity.this.startActivity(intent);
} else {
LogUtils.e("@@@@@@@");
// Ask for one permission
EasyPermissions.requestPermissions(
this,
"该功能需要开启拨号权限,是否前往开启?",
RC_TELL_PERM,
Manifest.permission.CALL_PHONE);
}
}
private boolean hasTellPermission() {
return EasyPermissions.hasPermissions(this, Manifest.permission.CALL_PHONE);
}
@Override
public void onPermissionsGranted(int requestCode, List<String> perms) {
}
@Override
public void onPermissionsDenied(int requestCode, List<String> perms) {
if (EasyPermissions.somePermissionPermanentlyDenied(this, perms)) {
new AppSettingsDialog.Builder(ChargingPileActivity.this).build().show();
}
}
private void dismissDialog() {
if (this != null && !isFinishing()) {
if (loadingDialog.isShowing()) {
loadingDialog.dismiss();
}
}
}
public static void actionStart(Context context,String pileId){
|
||
| 51 | 51 |
|
| 52 | 52 |
|
| 53 | 53 |
|
| 54 |
|
|
| 54 | 55 |
|
| 55 | 56 |
|
| 56 | 57 |
|
|
||
| 70 | 71 |
|
| 71 | 72 |
|
| 72 | 73 |
|
| 73 |
|
|
| 74 |
|
|
| 74 | 75 |
|
| 75 | 76 |
|
| 76 | 77 |
|
|
||
| 116 | 117 |
|
| 117 | 118 |
|
| 118 | 119 |
|
| 120 |
|
|
| 119 | 121 |
|
| 120 | 122 |
|
| 121 | 123 |
|
|
||
| 138 | 140 |
|
| 139 | 141 |
|
| 140 | 142 |
|
| 143 |
|
|
| 141 | 144 |
|
| 142 | 145 |
|
| 143 | 146 |
|
|
||
| 158 | 161 |
|
| 159 | 162 |
|
| 160 | 163 |
|
| 161 |
|
|
| 162 |
|
|
| 163 | 164 |
|
| 164 | 165 |
|
| 165 | 166 |
|
|
||
| 205 | 206 |
|
| 206 | 207 |
|
| 207 | 208 |
|
| 208 |
|
|
| 209 |
|
|
| 210 | 209 |
|
| 211 | 210 |
|
| 212 | 211 |
|
|
||
| 226 | 225 |
|
| 227 | 226 |
|
| 228 | 227 |
|
| 228 |
|
|
| 229 | 229 |
|
| 230 | 230 |
|
| 231 | 231 |
|
|
||
| 649 | 649 |
|
| 650 | 650 |
|
| 651 | 651 |
|
| 652 |
|
|
| 653 |
|
|
| 654 |
|
|
| 655 |
|
|
| 656 |
|
|
| 657 |
|
|
| 658 |
|
|
| 659 |
|
|
| 660 |
|
|
| 661 |
|
|
| 662 |
|
|
| 663 |
|
|
| 664 |
|
|
| 665 |
|
|
| 666 |
|
|
| 667 |
|
|
| 668 |
|
|
| 669 |
|
|
| 670 |
|
|
| 671 |
|
|
| 672 |
|
|
| 673 |
|
|
| 674 |
|
|
| 675 |
|
|
| 676 |
|
|
| 677 |
|
|
| 678 |
|
|
| 679 |
|
|
| 680 |
|
|
| 681 |
|
|
| 682 |
|
|
| 683 |
|
|
| 684 |
|
|
| 685 |
|
|
| 686 |
|
|
| 687 |
|
|
| 688 |
|
|
| 689 |
|
|
| 690 |
|
|
| 691 |
|
|
| 692 |
|
|
| 693 |
|
|
| 652 | 694 |
|
| 653 | 695 |
|
| 654 | 696 |
|
|
||
| 59 | 59 |
|
| 60 | 60 |
|
| 61 | 61 |
|
| 62 |
|
|
| 63 |
|
|
| 62 | 64 |
|
| 63 | 65 |
|
| 64 | 66 |
|
|
||
| 172 | 174 |
|
| 173 | 175 |
|
| 174 | 176 |
|
| 177 |
|
|
| 178 |
|
|
| 175 | 179 |
|
| 176 | 180 |
|
| 177 | 181 |
|
|
||
| 193 | 197 |
|
| 194 | 198 |
|
| 195 | 199 |
|
| 196 |
|
|
| 197 |
|
|
| 200 |
|
|
| 201 |
|
|
| 202 |
|
|
| 203 |
|
|
| 198 | 204 |
|
| 199 |
|
|
| 200 |
|
|
| 201 |
|
|
| 205 |
|
|
| 206 |
|
|
| 207 |
|
|
| 202 | 208 |
|
| 203 | 209 |
|
| 204 | 210 |
|
|
||
| 498 | 498 |
|
| 499 | 499 |
|
| 500 | 500 |
|
| 501 |
|
|
| 501 |
|
|
| 502 |
|
|
| 502 | 503 |
|
| 503 | 504 |
|
| 504 | 505 |
|
|
||
| 3430 | 3431 |
|
| 3431 | 3432 |
|
| 3432 | 3433 |
|
| 3434 |
|
|
| 3433 | 3435 |
|
| 3434 | 3436 |
|
| 3435 | 3437 |
|
|
||
| 3457 | 3459 |
|
| 3458 | 3460 |
|
| 3459 | 3461 |
|
| 3460 |
|
|
| 3461 |
|
|
| 3462 | 3462 |
|
| 3463 | 3463 |
|
| 3464 | 3464 |
|
|
||
| 67 | 67 |
|
| 68 | 68 |
|
| 69 | 69 |
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 70 | 73 |
|
| 71 | 74 |
|
| 72 | 75 |
|
|
||
| 89 | 92 |
|
| 90 | 93 |
|
| 91 | 94 |
|
| 95 |
|
|
| 96 |
|
|
| 97 |
|
|
| 98 |
|
|
| 92 | 99 |
|
| 93 | 100 |
|
| 94 | 101 |
|
|
||
| 120 | 127 |
|
| 121 | 128 |
|
| 122 | 129 |
|
| 123 |
|
|
| 124 |
|
|
| 125 |
|
|
| 130 |
|
|
| 126 | 131 |
|
| 127 | 132 |
|
| 128 | 133 |
|
| 129 | 134 |
|
| 130 | 135 |
|
| 131 | 136 |
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
|
| 137 |
|
|
| 138 |
|
|
| 139 |
|
|
| 140 |
|
|
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 144 |
|
|
| 135 | 145 |
|
| 136 | 146 |
|
| 137 |
|
|
| 138 | 147 |
|
| 139 | 148 |
|
| 140 | 149 |
|
|
||
| 165 | 174 |
|
| 166 | 175 |
|
| 167 | 176 |
|
| 177 |
|
|
| 178 |
|
|
| 168 | 179 |
|
| 169 | 180 |
|
| 170 | 181 |
|
|
||
| 52 | 52 |
|
| 53 | 53 |
|
| 54 | 54 |
|
| 55 |
|
|
| 56 | 55 |
|
| 57 | 56 |
|
| 58 | 57 |
|
|
||
| 187 | 186 |
|
| 188 | 187 |
|
| 189 | 188 |
|
| 189 |
|
|
| 190 |
|
|
| 191 |
|
|
| 190 | 192 |
|
| 191 | 193 |
|
| 192 | 194 |
|
|
||
| 6 | 6 |
|
| 7 | 7 |
|
| 8 | 8 |
|
| 9 |
|
|
| 9 | 10 |
|
| 10 | 11 |
|
|
||
| 44 | 44 |
|
| 45 | 45 |
|
| 46 | 46 |
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 47 | 56 |
|
| 48 | 57 |
|
| 49 | 58 |
|
|
||
| 742 | 742 |
|
| 743 | 743 |
|
| 744 | 744 |
|
| 745 |
|
|
| 745 | 746 |
|
| 746 | 747 |
|
| 747 | 748 |
|
| 748 |
|
|
| 749 |
|
|
| 750 | 749 |
|
| 751 | 750 |
|
| 752 | 751 |
|
|
||
| 2 | 2 |
|
| 3 | 3 |
|
| 4 | 4 |
|
| 5 |
|
|
| 5 | 6 |
|
| 6 | 7 |
|
| 7 | 8 |
|
|
||
| 159 | 159 |
|
| 160 | 160 |
|
| 161 | 161 |
|
| 162 |
|
|
| 162 |
|
|
| 163 | 163 |
|
| 164 | 164 |
|
| 165 | 165 |
|
|
||
| 231 | 231 |
|
| 232 | 232 |
|
| 233 | 233 |
|
| 234 |
|
|
| 235 |
|
|
| 236 |
|
|
| 237 |
|
|
| 238 |
|
|
| 239 |
|
|
| 240 |
|
|
| 241 |
|
|
| 242 |
|
|
| 243 |
|
|
| 244 | 234 |
|
| 245 | 235 |
|
| 246 | 236 |
|
|
||
| 347 | 337 |
|
| 348 | 338 |
|
| 349 | 339 |
|
| 340 |
|
|
| 341 |
|
|
| 342 |
|
|
| 343 |
|
|
| 344 |
|
|
| 345 |
|
|
| 346 |
|
|
| 347 |
|
|
| 348 |
|
|
| 349 |
|
|
| 350 |
|
|
| 351 |
|
|
| 352 |
|
|
| 353 |
|
|
| 354 |
|
|
| 355 |
|
|
| 356 |
|
|
| 357 |
|
|
| 358 |
|
|
| 359 |
|
|
| 360 |
|
|
| 361 |
|
|
| 362 |
|
|
| 363 |
|
|
| 364 |
|
|
| 365 |
|
|
| 366 |
|
|
| 367 |
|
|
| 368 |
|
|
| 369 |
|
|
| 370 |
|
|
| 371 |
|
|
| 350 | 372 |
|
| 351 | 373 |
|
| 352 | 374 |
|
| 353 | 375 |
|
| 376 |
|
|
| 354 | 377 |
|
| 355 | 378 |
|
| 356 | 379 |
|
|
||
| 385 | 408 |
|
| 386 | 409 |
|
| 387 | 410 |
|
| 411 |
|
|
| 388 | 412 |
|
| 389 | 413 |
|
| 390 | 414 |
|
|
||
| 396 | 420 |
|
| 397 | 421 |
|
| 398 | 422 |
|
| 399 |
|
|
| 400 |
|
|
| 401 |
|
|
| 402 |
|
|
| 403 |
|
|
| 404 |
|
|
| 405 |
|
|
| 406 |
|
|
| 407 |
|
|
| 408 |
|
|
| 409 |
|
|
| 410 |
|
|
| 411 |
|
|
| 412 |
|
|
| 413 | 423 |
|
| 414 | 424 |
|
| 415 | 425 |
|
|
||
| 273 | 273 |
|
| 274 | 274 |
|
| 275 | 275 |
|
| 276 |
|
|
| 277 |
|
|
| 278 |
|
|
| 279 |
|
|
| 280 |
|
|
| 281 |
|
|
| 282 |
|
|
| 283 |
|
|
| 284 |
|
|
| 285 |
|
|
| 286 |
|
|
| 287 |
|
|
| 288 |
|
|
| 289 |
|
|
| 290 |
|
|
| 291 |
|
|
| 292 |
|
|
| 293 |
|
|
| 294 |
|
|
| 295 |
|
|
| 296 |
|
|
| 297 |
|
|
| 298 |
|
|
| 299 |
|
|
| 300 |
|
|
| 301 |
|
|
| 302 |
|
|
| 303 |
|
|
| 276 | 304 |
|
| 277 | 305 |
|
| 278 | 306 |
|
|
||
| 282 | 282 |
|
| 283 | 283 |
|
| 284 | 284 |
|
| 285 |
|
|
| 286 |
|
|
| 287 |
|
|
| 288 |
|
|
| 289 |
|
|
| 290 |
|
|
| 291 |
|
|
| 292 |
|
|
| 293 |
|
|
| 294 |
|
|
| 295 |
|
|
| 296 |
|
|
| 297 |
|
|
| 298 |
|
|
| 299 |
|
|
| 300 |
|
|
| 301 |
|
|
| 302 |
|
|
| 303 |
|
|
| 304 |
|
|
| 305 |
|
|
| 306 |
|
|
| 307 |
|
|
| 308 |
|
|
| 309 |
|
|
| 310 |
|
|
| 311 |
|
|
| 312 |
|
|
| 313 |
|
|
| 285 | 314 |
|
| 286 | 315 |
|
| 287 | 316 |
|
|
||
| 21 | 21 |
|
| 22 | 22 |
|
| 23 | 23 |
|
| 24 |
|
|
| 24 |
|
|
| 25 | 25 |
|
| 26 |
|
|
| 26 |
|
|
| 27 | 27 |
|
| 28 | 28 |
|
| 29 | 29 |
|