Browse Source

h5电话拨打问题解决

huyuguo 5 years ago
parent
commit
9014fe157a

+ 29 - 0
.idea/markdown-navigator-enh.xml

1
<?xml version="1.0" encoding="UTF-8"?>
2
<project version="4">
3
  <component name="MarkdownEnhProjectSettings">
4
    <AnnotatorSettings targetHasSpaces="true" linkCaseMismatch="true" wikiCaseMismatch="true" wikiLinkHasDashes="true" notUnderWikiHome="true" targetNotWikiPageExt="true" notUnderSourceWikiHome="true" targetNameHasAnchor="true" targetPathHasAnchor="true" wikiLinkHasSlash="true" wikiLinkHasSubdir="true" wikiLinkHasOnlyAnchor="true" linkTargetsWikiHasExt="true" linkTargetsWikiHasBadExt="true" notUnderSameRepo="true" targetNotUnderVcs="false" linkNeedsExt="true" linkHasBadExt="true" linkTargetNeedsExt="true" linkTargetHasBadExt="true" wikiLinkNotInWiki="true" imageTargetNotInRaw="true" repoRelativeAcrossVcsRoots="true" multipleWikiTargetsMatch="true" unresolvedLinkReference="true" linkIsIgnored="true" anchorIsIgnored="true" anchorIsUnresolved="true" anchorLineReferenceIsUnresolved="true" anchorLineReferenceFormat="true" anchorHasDuplicates="true" abbreviationDuplicates="true" abbreviationNotUsed="true" attributeIdDuplicateDefinition="true" attributeIdNotUsed="true" footnoteDuplicateDefinition="true" footnoteUnresolved="true" footnoteDuplicates="true" footnoteNotUsed="true" macroDuplicateDefinition="true" macroUnresolved="true" macroDuplicates="true" macroNotUsed="true" referenceDuplicateDefinition="true" referenceUnresolved="true" referenceDuplicates="true" referenceNotUsed="true" referenceUnresolvedNumericId="true" enumRefDuplicateDefinition="true" enumRefUnresolved="true" enumRefDuplicates="true" enumRefNotUsed="true" enumRefLinkUnresolved="true" enumRefLinkDuplicates="true" simTocUpdateNeeded="true" simTocTitleSpaceNeeded="true" />
5
    <HtmlExportSettings updateOnSave="false" parentDir="" targetDir="" cssDir="css" scriptDir="js" plainHtml="false" imageDir="" copyLinkedImages="false" imagePathType="0" targetPathType="2" targetExt="" useTargetExt="false" noCssNoScripts="false" useElementStyleAttribute="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" linkFormatType="HTTP_ABSOLUTE" />
6
    <LinkMapSettings>
7
      <textMaps />
8
    </LinkMapSettings>
9
  </component>
10
  <component name="MarkdownNavigatorHistory">
11
    <PasteImageHistory checkeredTransparentBackground="false" filename="image" directory="" onPasteImageTargetRef="3" onPasteLinkText="0" onPasteImageElement="1" onPasteLinkElement="1" onPasteReferenceElement="2" cornerRadius="20" borderColor="0" transparentColor="16777215" borderWidth="1" trimTop="0" trimBottom="0" trimLeft="0" trimRight="0" transparent="false" roundCorners="false" showPreview="true" bordered="false" scaled="false" cropped="false" hideInapplicableOperations="false" preserveLinkFormat="false" scale="50" scalingInterpolation="1" transparentTolerance="0" saveAsDefaultOnOK="false" linkFormat="0" addHighlights="false" showHighlightCoordinates="true" showHighlights="false" mouseSelectionAddsHighlight="false" outerFilled="false" outerFillColor="0" outerFillTransparent="true" outerFillAlpha="30">
12
      <highlightList />
13
      <directories />
14
      <filenames />
15
    </PasteImageHistory>
16
    <CopyImageHistory checkeredTransparentBackground="false" filename="image" directory="" onPasteImageTargetRef="3" onPasteLinkText="0" onPasteImageElement="1" onPasteLinkElement="1" onPasteReferenceElement="2" cornerRadius="20" borderColor="0" transparentColor="16777215" borderWidth="1" trimTop="0" trimBottom="0" trimLeft="0" trimRight="0" transparent="false" roundCorners="false" showPreview="true" bordered="false" scaled="false" cropped="false" hideInapplicableOperations="false" preserveLinkFormat="false" scale="50" scalingInterpolation="1" transparentTolerance="0" saveAsDefaultOnOK="false" linkFormat="0" addHighlights="false" showHighlightCoordinates="true" showHighlights="false" mouseSelectionAddsHighlight="false" outerFilled="false" outerFillColor="0" outerFillTransparent="true" outerFillAlpha="30">
17
      <highlightList />
18
      <directories />
19
      <filenames />
20
    </CopyImageHistory>
21
    <PasteLinkHistory onPasteImageTargetRef="3" onPasteTargetRef="1" onPasteLinkText="0" onPasteImageElement="1" onPasteLinkElement="1" onPasteWikiElement="2" onPasteReferenceElement="2" hideInapplicableOperations="false" preserveLinkFormat="false" useHeadingForLinkText="false" linkFormat="0" saveAsDefaultOnOK="false" />
22
    <TableToJsonHistory>
23
      <entries />
24
    </TableToJsonHistory>
25
    <TableSortHistory>
26
      <entries />
27
    </TableSortHistory>
28
  </component>
29
</project>

+ 55 - 0
.idea/markdown-navigator.xml

1
<?xml version="1.0" encoding="UTF-8"?>
2
<project version="4">
3
  <component name="FlexmarkProjectSettings">
4
    <FlexmarkHtmlSettings flexmarkSpecExampleRendering="0" flexmarkSpecExampleRenderHtml="false">
5
      <flexmarkSectionLanguages>
6
        <option name="1" value="Markdown" />
7
        <option name="2" value="HTML" />
8
        <option name="3" value="flexmark-ast:1" />
9
      </flexmarkSectionLanguages>
10
    </FlexmarkHtmlSettings>
11
  </component>
12
  <component name="MarkdownProjectSettings">
13
    <PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.0" maxImageWidth="0" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true" lastLayoutSetsDefault="false">
14
      <PanelProvider>
15
        <provider providerId="com.vladsch.md.nav.editor.swing.html.panel" providerName="Default - Swing" />
16
      </PanelProvider>
17
    </PreviewSettings>
18
    <ParserSettings gitHubSyntaxChange="false" correctedInvalidSettings="false" emojiShortcuts="1" emojiImages="0">
19
      <PegdownExtensions>
20
        <option name="ANCHORLINKS" value="true" />
21
        <option name="ATXHEADERSPACE" value="true" />
22
        <option name="FENCED_CODE_BLOCKS" value="true" />
23
        <option name="INTELLIJ_DUMMY_IDENTIFIER" value="true" />
24
        <option name="RELAXEDHRULES" value="true" />
25
        <option name="STRIKETHROUGH" value="true" />
26
        <option name="TABLES" value="true" />
27
        <option name="TASKLISTITEMS" value="true" />
28
      </PegdownExtensions>
29
      <ParserOptions>
30
        <option name="COMMONMARK_LISTS" value="true" />
31
        <option name="EMOJI_SHORTCUTS" value="true" />
32
        <option name="GFM_TABLE_RENDERING" value="true" />
33
        <option name="PRODUCTION_SPEC_PARSER" value="true" />
34
        <option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
35
      </ParserOptions>
36
    </ParserSettings>
37
    <HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" addPageHeader="true" imageUriSerials="false" addDocTypeHtml="true" noParaTags="false" plantUmlConversion="0">
38
      <GeneratorProvider>
39
        <provider providerId="com.vladsch.md.nav.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
40
      </GeneratorProvider>
41
      <headerTop />
42
      <headerBottom />
43
      <bodyTop />
44
      <bodyBottom />
45
    </HtmlSettings>
46
    <CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssUriSerial="true" isCssTextEnabled="false" isDynamicPageWidth="true">
47
      <StylesheetProvider>
48
        <provider providerId="com.vladsch.md.nav.editor.swing.html.css" providerName="Default Swing Stylesheet" />
49
      </StylesheetProvider>
50
      <ScriptProviders />
51
      <cssText />
52
      <cssUriHistory />
53
    </CssSettings>
54
  </component>
55
</project>

+ 2 - 2
app/src/main/AndroidManifest.xml

1
<?xml version="1.0" encoding="utf-8"?>
1
<?xml version="1.0" encoding="utf-8"?>
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
    package="com.electric.chargingpile"
3
    package="com.electric.chargingpile"
4
    android:versionCode="83"
5
    android:versionName="3.4.5">
4
    android:versionCode="85"
5
    android:versionName="3.4.7">
6
    <!-- 极光 -->
6
    <!-- 极光 -->
7
    <application
7
    <application
8
        android:name=".application.MainApplication"
8
        android:name=".application.MainApplication"

+ 1 - 0
app/src/main/assets/ShareSDK.xml

48
<Douyin Enable="false" />
48
<Douyin Enable="false" />
49
<Wework Enable="false" />
49
<Wework Enable="false" />
50
<HWAccount Enable="false" />
50
<HWAccount Enable="false" />
51
<Oasis Enable="false" />
51
</DevInfor>
52
</DevInfor>

+ 6 - 0
app/src/main/java/com/electric/chargingpile/activity/AdinShowActivity.java

8
import android.content.DialogInterface;
8
import android.content.DialogInterface;
9
import android.content.Intent;
9
import android.content.Intent;
10
import android.content.SharedPreferences;
10
import android.content.SharedPreferences;
11
import android.net.Uri;
11
import android.net.http.SslError;
12
import android.net.http.SslError;
12
import android.os.Build;
13
import android.os.Build;
13
import android.os.Bundle;
14
import android.os.Bundle;
167
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
168
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
168
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
169
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
169
//                view.loadUrl(url);
170
//                view.loadUrl(url);
171
                if (url.startsWith("tel:")) {
172
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
173
                    startActivity(intent);
174
                    return true;
175
                }
170
                return false;
176
                return false;
171
            }
177
            }
172
        });
178
        });

+ 5 - 0
app/src/main/java/com/electric/chargingpile/activity/CreditActivity.java

320
        mWebView.setWebViewClient(new WebViewClient() {
320
        mWebView.setWebViewClient(new WebViewClient() {
321
            @Override
321
            @Override
322
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
322
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
323
                if (url.startsWith("tel:")) {
324
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
325
                    startActivity(intent);
326
                    return true;
327
                }
323
                return shouldOverrideUrlByDuiba(view, url);
328
                return shouldOverrideUrlByDuiba(view, url);
324
            }
329
            }
325
        });
330
        });

+ 7 - 0
app/src/main/java/com/electric/chargingpile/activity/EDaiJiaActivity.java

2
2
3
import android.app.Activity;
3
import android.app.Activity;
4
import android.content.Context;
4
import android.content.Context;
5
import android.content.Intent;
6
import android.net.Uri;
5
import android.os.Bundle;
7
import android.os.Bundle;
6
import android.util.Log;
8
import android.util.Log;
7
import android.view.KeyEvent;
9
import android.view.KeyEvent;
123
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
125
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
124
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
126
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
125
//                view.loadUrl(url);
127
//                view.loadUrl(url);
128
                if (url.startsWith("tel:")) {
129
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
130
                    startActivity(intent);
131
                    return true;
132
                }
126
                return false;
133
                return false;
127
            }
134
            }
128
        });
135
        });

+ 1 - 0
app/src/main/java/com/electric/chargingpile/activity/H5Activity.java

271
                    Intent intent = new Intent(Intent.ACTION_VIEW,
271
                    Intent intent = new Intent(Intent.ACTION_VIEW,
272
                            Uri.parse(url));
272
                            Uri.parse(url));
273
                    startActivity(intent);
273
                    startActivity(intent);
274
                    return true;
274
                } else {
275
                } else {
275
                    view.loadUrl(url);
276
                    view.loadUrl(url);
276
                }
277
                }

+ 6 - 0
app/src/main/java/com/electric/chargingpile/activity/HomeWebActivity.java

6
import android.content.Context;
6
import android.content.Context;
7
import android.content.DialogInterface;
7
import android.content.DialogInterface;
8
import android.content.Intent;
8
import android.content.Intent;
9
import android.net.Uri;
9
import android.net.http.SslError;
10
import android.net.http.SslError;
10
import android.os.Bundle;
11
import android.os.Bundle;
11
import android.util.Log;
12
import android.util.Log;
164
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
165
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
165
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
166
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
166
//                view.loadUrl(url);
167
//                view.loadUrl(url);
168
                if (url.startsWith("tel:")) {
169
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
170
                    startActivity(intent);
171
                    return true;
172
                }
167
                return false;
173
                return false;
168
            }
174
            }
169
        });
175
        });

+ 7 - 0
app/src/main/java/com/electric/chargingpile/activity/IntegralDescriptionActivity.java

1
package com.electric.chargingpile.activity;
1
package com.electric.chargingpile.activity;
2
2
3
import android.content.Intent;
4
import android.net.Uri;
3
import android.net.http.SslError;
5
import android.net.http.SslError;
4
import android.os.Bundle;
6
import android.os.Bundle;
5
import android.util.Log;
7
import android.util.Log;
89
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
91
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
90
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
92
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
91
//                view.loadUrl(url);
93
//                view.loadUrl(url);
94
                if (url.startsWith("tel:")) {
95
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
96
                    startActivity(intent);
97
                    return true;
98
                }
92
                return false;
99
                return false;
93
            }
100
            }
94
        });
101
        });

+ 1 - 0
app/src/main/java/com/electric/chargingpile/activity/MyWebViewActivity.java

1336
                Intent intent = new Intent(Intent.ACTION_VIEW,
1336
                Intent intent = new Intent(Intent.ACTION_VIEW,
1337
                        Uri.parse(url));
1337
                        Uri.parse(url));
1338
                startActivity(intent);
1338
                startActivity(intent);
1339
                return true;
1339
            } else {
1340
            } else {
1340
                Log.e(TAG, "shouldOverrideUrlLoading: 1");
1341
                Log.e(TAG, "shouldOverrideUrlLoading: 1");
1341
                view.loadUrl(url);
1342
                view.loadUrl(url);

+ 7 - 0
app/src/main/java/com/electric/chargingpile/activity/OpenFromH5Activity.java

1
package com.electric.chargingpile.activity;
1
package com.electric.chargingpile.activity;
2
2
3
import android.app.Activity;
3
import android.app.Activity;
4
import android.content.Intent;
5
import android.net.Uri;
4
import android.net.http.SslError;
6
import android.net.http.SslError;
5
import android.os.Bundle;
7
import android.os.Bundle;
6
import android.util.Log;
8
import android.util.Log;
92
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
94
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
93
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
95
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
94
//                view.loadUrl(url);
96
//                view.loadUrl(url);
97
                if (url.startsWith("tel:")) {
98
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
99
                    startActivity(intent);
100
                    return true;
101
                }
95
                return false;
102
                return false;
96
            }
103
            }
97
        });
104
        });

+ 6 - 0
app/src/main/java/com/electric/chargingpile/activity/RefundActivity.java

5
import android.content.Intent;
5
import android.content.Intent;
6
import android.graphics.Bitmap;
6
import android.graphics.Bitmap;
7
import android.graphics.drawable.ColorDrawable;
7
import android.graphics.drawable.ColorDrawable;
8
import android.net.Uri;
8
import android.net.http.SslError;
9
import android.net.http.SslError;
9
import android.os.Bundle;
10
import android.os.Bundle;
10
import android.support.v7.app.AppCompatActivity;
11
import android.support.v7.app.AppCompatActivity;
98
99
99
        @Override
100
        @Override
100
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
101
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
102
            if (url.startsWith("tel:")) {
103
                Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
104
                startActivity(intent);
105
                return true;
106
            }
101
//            Log.e(TAG, "onPage1 :"+url );
107
//            Log.e(TAG, "onPage1 :"+url );
102
//            //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
108
//            //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
103
////                view.loadUrl(url);
109
////                view.loadUrl(url);

+ 7 - 0
app/src/main/java/com/electric/chargingpile/activity/ShopActivity.java

1
package com.electric.chargingpile.activity;
1
package com.electric.chargingpile.activity;
2
2
3
import android.content.Intent;
4
import android.net.Uri;
3
import android.os.Bundle;
5
import android.os.Bundle;
4
import android.util.Log;
6
import android.util.Log;
5
import android.view.KeyEvent;
7
import android.view.KeyEvent;
105
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
107
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
106
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
108
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
107
//                view.loadUrl(url);
109
//                view.loadUrl(url);
110
                if (url.startsWith("tel:")) {
111
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
112
                    startActivity(intent);
113
                    return true;
114
                }
108
                return false;
115
                return false;
109
            }
116
            }
110
        });
117
        });

+ 7 - 0
app/src/main/java/com/electric/chargingpile/activity/WebQianDaoActivity.java

1
package com.electric.chargingpile.activity;
1
package com.electric.chargingpile.activity;
2
2
3
import android.app.Activity;
3
import android.app.Activity;
4
import android.content.Intent;
5
import android.net.Uri;
4
import android.os.Bundle;
6
import android.os.Bundle;
5
import android.util.Log;
7
import android.util.Log;
6
import android.view.KeyEvent;
8
import android.view.KeyEvent;
108
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
110
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
109
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
111
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
110
//                view.loadUrl(url);
112
//                view.loadUrl(url);
113
                if (url.startsWith("tel:")) {
114
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
115
                    startActivity(intent);
116
                    return true;
117
                }
111
                return false;
118
                return false;
112
            }
119
            }
113
        });
120
        });

+ 7 - 0
app/src/main/java/com/electric/chargingpile/activity/XieYiActivity.java

1
package com.electric.chargingpile.activity;
1
package com.electric.chargingpile.activity;
2
2
3
import android.app.Activity;
3
import android.app.Activity;
4
import android.content.Intent;
5
import android.net.Uri;
4
import android.os.Bundle;
6
import android.os.Bundle;
5
import android.util.Log;
7
import android.util.Log;
6
import android.view.KeyEvent;
8
import android.view.KeyEvent;
107
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
109
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
108
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
110
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
109
//                view.loadUrl(url);
111
//                view.loadUrl(url);
112
                if (url.startsWith("tel:")) {
113
                    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
114
                    startActivity(intent);
115
                    return true;
116
                }
110
                return false;
117
                return false;
111
            }
118
            }
112
        });
119
        });