ines-num lines-num-new"> 422
getShareIntegral();
}
// ToastUtil.showToast(getApplicationContext(),"分享成功",Toast.LENGTH_SHORT);
}
@Override
@ -434,7 +445,6 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
public void telTask(final String s) {
if (hasCallPhonePermission()) {
// Have permission, do the thing!
// Toast.makeText(this, "TODO: Camera things", Toast.LENGTH_LONG).show();
new com.electric.chargingpile.view.AlertDialog(MyWebViewActivity.this).builder()
.setMsg(s)
.setPositiveButton("呼叫", new View.OnClickListener() {
@ -472,10 +482,10 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
AlertDialogTwo wechatAlert = new AlertDialogTwo(MyWebViewActivity.this);
wechatAlert.builder().setTitle("温馨提示")
.setMsg("客服微信:chongdianzhuang2")
.setPositiveButton("复制", new View.OnClickListener(){
.setPositiveButton("复制", new View.OnClickListener() {
@Override
public void onClick(View view) {
ClipboardManager cm = (ClipboardManager)getSystemService(Context.CLIPBOARD_SERVICE);
ClipboardManager cm = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
ClipData cdzData = ClipData.newPlainText("Label", "chongdianzhuang2");
cm.setPrimaryClip(cdzData);
ToastUtil.showToast(getApplicationContext(), "微信号复制成功", Toast.LENGTH_SHORT);
@ -835,10 +845,7 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
}
}
};
OkHttpUtils.get()
.url(url)
.build()
.execute(stringCallback);
OkHttpUtils.get().url(url).build().execute(stringCallback);
}
private void onResumeSkip() {
@ -897,7 +904,6 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
for (int i = 0; i < list.size(); i++) {
if (currentUrl.contains(list.get(i))) {
Log.e(TAG, "onResume: =" + "========");
// ToastUtil.showToast(getApplicationContext(),"1111",Toast.LENGTH_SHORT);
webView.reload();
list.remove(list.get(i));
break;
@ -919,7 +925,6 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
e.printStackTrace();
}
String replace = URLEncoder.encode(encode_token);
// startActivity(new Intent(getApplication(), ShopActivity.class));
Intent intent11 = new Intent();
intent11.setClass(getApplicationContext(), CreditActivity.class);
intent11.putExtra("navColor", "#fcfcfc"); //配置导航条的背景颜色,请用#ffffff长格式。
@ -942,22 +947,12 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
*/
public void onShareClick(WebView webView, String shareUrl, String shareThumbnail, String shareTitle, String shareSubtitle) {
//当分享按钮被点击时,会调用此处代码。在这里处理分享的业务逻辑。
// new AlertDialog.Builder(webView.getContext())
// .setTitle("分享信息")
// .setItems(new String[] {"标题:"+shareTitle,"副标题:"+shareSubtitle,"缩略图地址:"+shareThumbnail,"链接:"+shareUrl}, null)
// .setNegativeButton("确定", null)
// .show();
ChargingShareBean chargingShareBean = new ChargingShareBean();
chargingShareBean.setIcon(shareThumbnail);
chargingShareBean.setTitle(shareTitle);
chargingShareBean.setUrl(shareUrl);
chargingShareBean.setText("");
showSimpleBottomSheetGrid(chargingShareBean);
}
/**
@ -973,15 +968,12 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
//当用户登录成功后,需要重新请求一次服务端,带上currentUrl。
//用该方法中的webview变量加载请求链接。
//服务端收到请求后在生成免登录url时,将currentUrl放入redirect参数,通知客户端302跳转到新生成的免登录URL。
new AlertDialog.Builder(webView.getContext())
.setTitle("跳转登录")
.setMessage("跳转到登录页面?")
new AlertDialog.Builder(webView.getContext()).setTitle("跳转登录").setMessage("跳转到登录页面?")
.setPositiveButton("是", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
MainApplication.current_url = currentUrl;
startActivity(new Intent(getApplicationContext(), LoginActivity.class));
}
})
.setNegativeButton("否", null)
@ -1009,7 +1001,6 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
public void onLocalRefresh(WebView mWebView, String credits) {
//String credits为积分商城返回的最新积分,不保证准确。
//触发更新本地积分,这里建议用ajax向自己服务器请求积分值,比较准确。
// Toast.makeText(getApplicationContext(), "触发本地刷新积分:"+credits,Toast.LENGTH_SHORT).show();
}
};
}
@ -1052,11 +1043,6 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
*/
public void onShareClick(WebView webView, String shareUrl, String shareThumbnail, String shareTitle, String shareSubtitle) {
//当分享按钮被点击时,会调用此处代码。在这里处理分享的业务逻辑。
// new AlertDialog.Builder(webView.getContext())
// .setTitle("分享信息")
// .setItems(new String[] {"标题:"+shareTitle,"副标题:"+shareSubtitle,"缩略图地址:"+shareThumbnail,"链接:"+shareUrl}, null)
// .setNegativeButton("确定", null)
// .show();
ChargingShareBean chargingShareBean = new ChargingShareBean();
chargingShareBean.setIcon(shareThumbnail);
chargingShareBean.setTitle(shareTitle);
@ -1086,7 +1072,6 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
.setPositiveButton("是", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// MainApplication.current_url = currentUrl;
MainApplication.h5_url = currentUrl;
startActivity(new Intent(getApplicationContext(), LoginActivity.class));
@ -1117,7 +1102,6 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
public void onLocalRefresh(WebView mWebView, String credits) {
//String credits为积分商城返回的最新积分,不保证准确。
//触发更新本地积分,这里建议用ajax向自己服务器请求积分值,比较准确。
// Toast.makeText(getApplicationContext(), "触发本地刷新积分:" + credits, Toast.LENGTH_SHORT).show();
}
};
}
@ -1240,10 +1224,6 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
mOpenFileWebChromeClient.mFilePathCallback = null;
mOpenFileWebChromeClient.mFilePathCallbacks = null;
}
// if (EasyPermissions.somePermissionPermanentlyDenied(this, perms)) {
// new AppSettingsDialog.Builder(MyWebViewActivity.this,
// "该功能需要开启拨号权限,是否前往开启?").build().show();
// }
}
private boolean hasCallPhonePermission() {
@ -1351,7 +1331,7 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
.canceledOnTouchOutside(false).itemsCallback(new MaterialDialog.ListCallback() {
@Override
public void onSelection(MaterialDialog dialog, View itemView, int position, CharSequence text) {
if (position == 0){
if (position == 0) {
takeCamera();
} else if (position == 1) {
takePhoto();
@ -1377,7 +1357,7 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
File imageFile = ImageUitl.getFile(cameraFilePath);
Uri uri = parseUri(imageFile);
intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
try{
try {
startActivityForResult(intent, FILE_CAMERA_RESULT_CODE);
} catch (Exception e) {
e.printStackTrace();
@ -1432,7 +1412,6 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
intent.setData(Uri.parse(url));
startActivity(intent);
} catch (ActivityNotFoundException e) {
// MiscUtil.toastShortShow(mContext, "请安装微信最新版!");
}
} else if (url.startsWith("tel:")) {
Intent intent = new Intent(Intent.ACTION_VIEW,
@ -1450,7 +1429,8 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (null == mOpenFileWebChromeClient.mFilePathCallback && null == mOpenFileWebChromeClient.mFilePathCallbacks) return;
if (null == mOpenFileWebChromeClient.mFilePathCallback && null == mOpenFileWebChromeClient.mFilePathCallbacks)
return;
if (resultCode != RESULT_OK) {
if (mOpenFileWebChromeClient.mFilePathCallbacks != null) {
mOpenFileWebChromeClient.mFilePathCallbacks.onReceiveValue(null);
@ -1501,13 +1481,13 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
ClipData clipData = intent.getClipData();
if (clipData != null) {
results = new Uri[clipData.getItemCount()];
for (int i=0;i<clipData.getItemCount();i++) {
for (int i = 0; i < clipData.getItemCount(); i++) {
ClipData.Item item = clipData.getItemAt(i);
results[i] = item.getUri();
}
}
if (dataString != null) {
results = new Uri[] {Uri.parse(dataString)};
results = new Uri[]{Uri.parse(dataString)};
}
mOpenFileWebChromeClient.mFilePathCallbacks.onReceiveValue(results);
mOpenFileWebChromeClient.mFilePathCallbacks = null;
|
||
| 14 | 14 |
|
| 15 | 15 |
|
| 16 | 16 |
|
| 17 |
|
|
| 17 | 18 |
|
| 18 | 19 |
|
| 19 | 20 |
|
| 21 |
|
|
| 20 | 22 |
|
| 21 | 23 |
|
| 22 | 24 |
|
|
||
| 113 | 115 |
|
| 114 | 116 |
|
| 115 | 117 |
|
| 116 |
|
|
| 117 | 118 |
|
| 118 |
|
|
| 119 | 119 |
|
| 120 |
|
|
| 121 | 120 |
|
| 122 | 121 |
|
| 123 |
|
|
| 124 |
|
|
| 125 |
|
|
| 126 |
|
|
| 127 |
|
|
| 128 |
|
|
| 129 |
|
|
| 130 |
|
|
| 131 | 122 |
|
| 132 | 123 |
|
| 133 | 124 |
|
|
||
| 167 | 158 |
|
| 168 | 159 |
|
| 169 | 160 |
|
| 170 |
|
|
| 171 | 161 |
|
| 172 | 162 |
|
| 173 | 163 |
|
| 174 | 164 |
|
| 175 | 165 |
|
| 176 |
|
|
| 177 |
|
|
| 166 |
|
|
| 178 | 167 |
|
| 179 |
|
|
| 180 | 168 |
|
| 181 | 169 |
|
| 182 | 170 |
|
|
||
| 215 | 203 |
|
| 216 | 204 |
|
| 217 | 205 |
|
| 218 |
|
|
| 219 | 206 |
|
| 220 | 207 |
|
| 221 | 208 |
|
| 222 | 209 |
|
| 223 |
|
|
| 224 |
|
|
| 225 |
|
|
| 210 |
|
|
| 226 | 211 |
|
| 227 |
|
|
| 228 | 212 |
|
| 229 | 213 |
|
| 230 | 214 |
|
|
||
| 253 | 237 |
|
| 254 | 238 |
|
| 255 | 239 |
|
| 256 |
|
|
| 240 |
|
|
| 257 | 241 |
|
| 258 | 242 |
|
| 259 | 243 |
|
|
||
| 261 | 245 |
|
| 262 | 246 |
|
| 263 | 247 |
|
| 264 |
|
|
| 265 |
|
|
| 248 |
|
|
| 266 | 249 |
|
| 267 | 250 |
|
| 268 | 251 |
|
|
||
| 309 | 292 |
|
| 310 | 293 |
|
| 311 | 294 |
|
| 312 |
|
|
| 313 |
|
|
| 314 |
|
|
| 315 |
|
|
| 316 |
|
|
| 317 |
|
|
| 318 |
|
|
| 319 |
|
|
| 295 |
|
|
| 296 |
|
|
| 297 |
|
|
| 298 |
|
|
| 320 | 299 |
|
| 321 | 300 |
|
| 322 | 301 |
|
|
||
| 373 | 352 |
|
| 374 | 353 |
|
| 375 | 354 |
|
| 376 |
|
|
| 377 |
|
|
| 355 |
|
|
| 378 | 356 |
|
| 379 | 357 |
|
| 380 | 358 |
|
| 381 |
|
|
| 382 |
|
|
| 359 |
|
|
| 383 | 360 |
|
| 384 | 361 |
|
| 385 |
|
|
| 386 | 362 |
|
| 387 |
|
|
| 388 | 363 |
|
| 389 | 364 |
|
| 390 | 365 |
|
|
||
| 396 | 371 |
|
| 397 | 372 |
|
| 398 | 373 |
|
| 399 |
|
|
| 374 |
|
|
| 400 | 375 |
|
| 401 | 376 |
|
| 402 | 377 |
|
|
||
| 422 | 397 |
|
| 423 | 398 |
|
| 424 | 399 |
|
| 425 |
|
|
| 426 |
|
|
| 427 | 400 |
|
| 428 |
|
|
| 429 |
|
|
| 401 |
|
|
| 430 | 402 |
|
| 431 |
|
|
| 432 | 403 |
|
| 433 |
|
|
| 434 |
|
|
| 435 |
|
|
| 436 |
|
|
| 404 |
|
|
| 437 | 405 |
|
| 438 | 406 |
|
| 439 | 407 |
|
|
||
| 442 | 410 |
|
| 443 | 411 |
|
| 444 | 412 |
|
| 445 |
|
|
| 446 |
|
|
| 447 | 413 |
|
| 448 | 414 |
|
| 449 |
|
|
| 450 | 415 |
|
| 451 | 416 |
|
| 452 | 417 |
|
| 453 |
|
|
| 454 | 418 |
|
| 455 | 419 |
|
| 456 | 420 |
|
|
||
| 478 | 442 |
|
| 479 | 443 |
|
| 480 | 444 |
|
| 481 |
|
|
| 482 |
|
|
| 483 |
|
|
| 484 |
|
|
| 445 |
|
|
| 485 | 446 |
|
| 486 | 447 |
|
| 487 | 448 |
|
| 488 | 449 |
|
| 489 |
|
|
| 490 |
|
|
| 491 | 450 |
|
| 492 | 451 |
|
| 493 | 452 |
|
|
||
| 501 | 460 |
|
| 502 | 461 |
|
| 503 | 462 |
|
| 504 |
|
|
| 505 | 463 |
|
| 506 | 464 |
|
| 507 | 465 |
|
|
||
| 542 | 500 |
|
| 543 | 501 |
|
| 544 | 502 |
|
| 545 |
|
|
| 546 | 503 |
|
| 547 |
|
|
| 548 | 504 |
|
| 549 |
|
|
| 550 | 505 |
|
| 551 | 506 |
|
| 552 | 507 |
|
|
||
| 575 | 530 |
|
| 576 | 531 |
|
| 577 | 532 |
|
| 578 |
|
|
| 579 |
|
|
| 580 | 533 |
|
| 581 | 534 |
|
| 582 | 535 |
|
|
||
| 628 | 581 |
|
| 629 | 582 |
|
| 630 | 583 |
|
| 631 |
|
|
| 632 | 584 |
|
| 633 | 585 |
|
| 634 |
|
|
| 635 | 586 |
|
| 636 | 587 |
|
| 637 | 588 |
|
|
||
| 661 | 612 |
|
| 662 | 613 |
|
| 663 | 614 |
|
| 664 |
|
|
| 665 | 615 |
|
| 666 | 616 |
|
| 667 | 617 |
|
|
||
| 676 | 626 |
|
| 677 | 627 |
|
| 678 | 628 |
|
| 679 |
|
|
| 680 |
|
|
| 681 |
|
|
| 629 |
|
|
| 682 | 630 |
|
| 683 | 631 |
|
| 684 | 632 |
|
|
||
| 686 | 634 |
|
| 687 | 635 |
|
| 688 | 636 |
|
| 689 |
|
|
| 690 | 637 |
|
| 691 | 638 |
|
| 692 | 639 |
|
|
||
| 702 | 649 |
|
| 703 | 650 |
|
| 704 | 651 |
|
| 705 |
|
|
| 706 | 652 |
|
| 707 | 653 |
|
| 708 | 654 |
|
|
||
| 722 | 668 |
|
| 723 | 669 |
|
| 724 | 670 |
|
| 725 |
|
|
| 726 |
|
|
| 727 | 671 |
|
| 728 | 672 |
|
| 729 | 673 |
|
| 730 | 674 |
|
| 731 | 675 |
|
| 732 |
|
|
| 733 |
|
|
| 734 |
|
|
| 735 | 676 |
|
| 736 | 677 |
|
| 737 | 678 |
|
|
||
| 754 | 695 |
|
| 755 | 696 |
|
| 756 | 697 |
|
| 757 |
|
|
| 758 |
|
|
| 759 | 698 |
|
| 760 | 699 |
|
| 761 | 700 |
|
|
||
| 804 | 743 |
|
| 805 | 744 |
|
| 806 | 745 |
|
| 807 |
|
|
| 808 |
|
|
| 809 | 746 |
|
|
||
| 12 | 12 |
|
| 13 | 13 |
|
| 14 | 14 |
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 15 | 20 |
|
| 16 | 21 |
|
| 17 | 22 |
|
|
||
| 57 | 62 |
|
| 58 | 63 |
|
| 59 | 64 |
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
|
| 60 | 73 |
|
| 61 | 74 |
|
|
||
| 1 | 1 |
|
| 2 | 2 |
|
| 3 |
|
|
| 3 | 4 |
|
| 4 | 5 |
|
| 5 | 6 |
|
|
||
| 12 | 13 |
|
| 13 | 14 |
|
| 14 | 15 |
|
| 16 |
|
|
| 15 | 17 |
|
| 16 | 18 |
|
| 17 | 19 |
|
|
||
| 20 | 22 |
|
| 21 | 23 |
|
| 22 | 24 |
|
| 23 |
|
|
| 25 |
|
|
| 26 |
|
|
| 24 | 27 |
|
| 25 | 28 |
|
| 26 | 29 |
|