Преглед на файлове

h5电话拨打问题解决

huyuguo преди 5 години
родител
ревизия
9014fe157a

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

@ -0,0 +1,29 @@
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

@ -0,0 +1,55 @@
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,8 +1,8 @@
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 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 7
    <application
8 8
        android:name=".application.MainApplication"

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

@ -48,4 +48,5 @@
48 48
<Douyin Enable="false" />
49 49
<Wework Enable="false" />
50 50
<HWAccount Enable="false" />
51
<Oasis Enable="false" />
51 52
</DevInfor>

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

@ -8,6 +8,7 @@ import android.content.Context;
8 8
import android.content.DialogInterface;
9 9
import android.content.Intent;
10 10
import android.content.SharedPreferences;
11
import android.net.Uri;
11 12
import android.net.http.SslError;
12 13
import android.os.Build;
13 14
import android.os.Bundle;
@ -167,6 +168,11 @@ public class AdinShowActivity extends Activity implements View.OnClickListener {
167 168
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
168 169
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
169 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 176
                return false;
171 177
            }
172 178
        });

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

@ -320,6 +320,11 @@ public class CreditActivity extends Activity {
320 320
        mWebView.setWebViewClient(new WebViewClient() {
321 321
            @Override
322 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 328
                return shouldOverrideUrlByDuiba(view, url);
324 329
            }
325 330
        });

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

@ -2,6 +2,8 @@ package com.electric.chargingpile.activity;
2 2
3 3
import android.app.Activity;
4 4
import android.content.Context;
5
import android.content.Intent;
6
import android.net.Uri;
5 7
import android.os.Bundle;
6 8
import android.util.Log;
7 9
import android.view.KeyEvent;
@ -123,6 +125,11 @@ public class EDaiJiaActivity extends Activity implements View.OnClickListener {
123 125
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
124 126
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
125 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 133
                return false;
127 134
            }
128 135
        });

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

@ -271,6 +271,7 @@ public class H5Activity extends Activity implements View.OnClickListener, Platfo
271 271
                    Intent intent = new Intent(Intent.ACTION_VIEW,
272 272
                            Uri.parse(url));
273 273
                    startActivity(intent);
274
                    return true;
274 275
                } else {
275 276
                    view.loadUrl(url);
276 277
                }

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

@ -6,6 +6,7 @@ import android.app.AlertDialog;
6 6
import android.content.Context;
7 7
import android.content.DialogInterface;
8 8
import android.content.Intent;
9
import android.net.Uri;
9 10
import android.net.http.SslError;
10 11
import android.os.Bundle;
11 12
import android.util.Log;
@ -164,6 +165,11 @@ public class HomeWebActivity extends Activity implements View.OnClickListener, P
164 165
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
165 166
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
166 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 173
                return false;
168 174
            }
169 175
        });

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

@ -1,5 +1,7 @@
1 1
package com.electric.chargingpile.activity;
2 2
3
import android.content.Intent;
4
import android.net.Uri;
3 5
import android.net.http.SslError;
4 6
import android.os.Bundle;
5 7
import android.util.Log;
@ -89,6 +91,11 @@ public class IntegralDescriptionActivity extends AutoLayoutActivity {
89 91
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
90 92
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
91 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 99
                return false;
93 100
            }
94 101
        });

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

@ -1336,6 +1336,7 @@ public class MyWebViewActivity extends Activity implements PlatformActionListene
1336 1336
                Intent intent = new Intent(Intent.ACTION_VIEW,
1337 1337
                        Uri.parse(url));
1338 1338
                startActivity(intent);
1339
                return true;
1339 1340
            } else {
1340 1341
                Log.e(TAG, "shouldOverrideUrlLoading: 1");
1341 1342
                view.loadUrl(url);

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

@ -1,6 +1,8 @@
1 1
package com.electric.chargingpile.activity;
2 2
3 3
import android.app.Activity;
4
import android.content.Intent;
5
import android.net.Uri;
4 6
import android.net.http.SslError;
5 7
import android.os.Bundle;
6 8
import android.util.Log;
@ -92,6 +94,11 @@ public class OpenFromH5Activity extends Activity implements View.OnClickListener
92 94
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
93 95
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
94 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 102
                return false;
96 103
            }
97 104
        });

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

@ -5,6 +5,7 @@ import android.content.Context;
5 5
import android.content.Intent;
6 6
import android.graphics.Bitmap;
7 7
import android.graphics.drawable.ColorDrawable;
8
import android.net.Uri;
8 9
import android.net.http.SslError;
9 10
import android.os.Bundle;
10 11
import android.support.v7.app.AppCompatActivity;
@ -98,6 +99,11 @@ public class RefundActivity extends AppCompatActivity implements View.OnClickLis
98 99
99 100
        @Override
100 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 107
//            Log.e(TAG, "onPage1 :"+url );
102 108
//            //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
103 109
////                view.loadUrl(url);

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

@ -1,5 +1,7 @@
1 1
package com.electric.chargingpile.activity;
2 2
3
import android.content.Intent;
4
import android.net.Uri;
3 5
import android.os.Bundle;
4 6
import android.util.Log;
5 7
import android.view.KeyEvent;
@ -105,6 +107,11 @@ public class ShopActivity extends CreditActivity implements View.OnClickListener
105 107
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
106 108
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
107 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 115
                return false;
109 116
            }
110 117
        });

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

@ -1,6 +1,8 @@
1 1
package com.electric.chargingpile.activity;
2 2
3 3
import android.app.Activity;
4
import android.content.Intent;
5
import android.net.Uri;
4 6
import android.os.Bundle;
5 7
import android.util.Log;
6 8
import android.view.KeyEvent;
@ -108,6 +110,11 @@ public class WebQianDaoActivity extends Activity implements View.OnClickListener
108 110
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
109 111
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
110 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 118
                return false;
112 119
            }
113 120
        });

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

@ -1,6 +1,8 @@
1 1
package com.electric.chargingpile.activity;
2 2
3 3
import android.app.Activity;
4
import android.content.Intent;
5
import android.net.Uri;
4 6
import android.os.Bundle;
5 7
import android.util.Log;
6 8
import android.view.KeyEvent;
@ -107,6 +109,11 @@ public class XieYiActivity extends Activity implements View.OnClickListener {
107 109
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
108 110
                //  重写此方法表明点击网页里面的链接还是在当前的webview里跳转,不跳到浏览器那边
109 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 117
                return false;
111 118
            }
112 119
        });