Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3a3ed69b
authored
Nov 15, 2024
by
han xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web
parent
ddb228a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
.idea/gradle.xml
.idea/misc.xml
orderCenter/src/main/java/com/dayu/order/ui/activity/RepairOrderWebViewActivity.java
.idea/gradle.xml
View file @
3a3ed69b
...
...
@@ -5,7 +5,7 @@
<option
name=
"linkedExternalProjectsSettings"
>
<GradleProjectSettings>
<option
name=
"externalProjectPath"
value=
"$PROJECT_DIR$"
/>
<option
name=
"gradleJvm"
value=
"
#GRADLE_LOCAL_JAVA_HOME
"
/>
<option
name=
"gradleJvm"
value=
"
corretto-1.8
"
/>
<option
name=
"modules"
>
<set>
<option
value=
"$PROJECT_DIR$"
/>
...
...
@@ -31,6 +31,5 @@
<option
name=
"resolveExternalAnnotations"
value=
"false"
/>
</GradleProjectSettings>
</option>
<option
name=
"offlineMode"
value=
"true"
/>
</component>
</project>
\ No newline at end of file
.idea/misc.xml
View file @
3a3ed69b
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"DesignSurface"
>
<option
name=
"filePathToZoomLevelMap"
>
...
...
@@ -66,7 +67,7 @@
</value>
</option>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1
1"
default=
"true"
project-jdk-name=
"corretto-11
"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1
_8"
default=
"true"
project-jdk-name=
"corretto-1.8
"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
orderCenter/src/main/java/com/dayu/order/ui/activity/RepairOrderWebViewActivity.java
View file @
3a3ed69b
...
...
@@ -11,6 +11,7 @@ import android.text.TextUtils;
import
android.util.Log
;
import
android.view.View
;
import
android.webkit.JavascriptInterface
;
import
android.webkit.ValueCallback
;
import
android.webkit.WebSettings
;
import
android.widget.Button
;
...
...
@@ -86,11 +87,25 @@ public class RepairOrderWebViewActivity extends CommeWebViewActivity {
case
1003
:
//二维码扫描
String
result
=
data
.
getExtras
().
getString
(
"result"
);
mWebView
.
evaluateJavascript
(
"javascript:webViewMsgGet('openScaner,"
+
result
+
')'
,
new
ValueCallback
<
String
>()
{
@Override
public
void
onReceiveValue
(
String
s
)
{
}
});
break
;
}
}
}
private
void
uploadImage
(
String
selName
,
String
url
,
List
<
LocalMedia
>
selectList
){
}
public
class
WebAppInterface
{
// Context mContext;
...
...
@@ -237,6 +252,13 @@ public class RepairOrderWebViewActivity extends CommeWebViewActivity {
if
(
address
==
null
)
return
;
// bean.setLatitude(address.getLatitude());
// bean.setLongitude(address.getLongitude());
mWebView
.
evaluateJavascript
(
"javascript:webViewMsgGet('getLocation,"
+
address
.
getLatitude
()
+
')'
,
new
ValueCallback
<
String
>()
{
@Override
public
void
onReceiveValue
(
String
s
)
{
}
});
}
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment