调整webView
调整客服页面
This commit is contained in:
parent
feb08e1759
commit
299add0575
@ -100,6 +100,10 @@ public class WebViewActivity extends AbsActivity {
|
|||||||
@Override
|
@Override
|
||||||
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
||||||
L.e("H5-------->" + url);
|
L.e("H5-------->" + url);
|
||||||
|
if(isKefu(url)){
|
||||||
|
RouteUtil.forwardCustomerService(url);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (url.startsWith(Constants.COPY_PREFIX)) {
|
if (url.startsWith(Constants.COPY_PREFIX)) {
|
||||||
String content = url.substring(Constants.COPY_PREFIX.length());
|
String content = url.substring(Constants.COPY_PREFIX.length());
|
||||||
if (!TextUtils.isEmpty(content)) {
|
if (!TextUtils.isEmpty(content)) {
|
||||||
|
@ -680,6 +680,7 @@ public class JavascriptInterfaceUtils {
|
|||||||
|
|
||||||
@JavascriptInterface
|
@JavascriptInterface
|
||||||
public void androidGotoCustomerService(String url) {
|
public void androidGotoCustomerService(String url) {
|
||||||
|
ToastUtil.showDebug("网页跳客服页面");
|
||||||
RouteUtil.forwardCustomerService(url);
|
RouteUtil.forwardCustomerService(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user