Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
cdd0be70
Commit
cdd0be70
authored
May 26, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: webview加入页内跳转url方法
parent
c6b43e16
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
5 deletions
+25
-5
config.gradle
config.gradle
+5
-5
ReloadUrlEvent.kt
ydl-webview/src/main/java/com/ydl/event/ReloadUrlEvent.kt
+13
-0
NewH5Activity.java
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
+7
-0
No files found.
config.gradle
View file @
cdd0be70
...
@@ -33,12 +33,12 @@ ext {
...
@@ -33,12 +33,12 @@ ext {
//-------------- 功能组件 --------------
//-------------- 功能组件 --------------
//mdt 组件
//mdt 组件
"ydl-tuicore"
:
"0.0.2
2
"
,
"ydl-tuicore"
:
"0.0.2
3
"
,
//第一步
//第一步
"ydl-platform"
:
"0.0.41.
5
"
,
"ydl-platform"
:
"0.0.41.
06
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.7
3
"
,
"ydl-webview"
:
"0.0.38.7
7
"
,
"ydl-media"
:
"0.0.21.44"
,
"ydl-media"
:
"0.0.21.44"
,
"ydl-pay"
:
"0.0.18.19"
,
"ydl-pay"
:
"0.0.18.19"
,
"m-audioim"
:
"0.0.49.29.85"
,
"m-audioim"
:
"0.0.49.29.85"
,
...
@@ -119,10 +119,10 @@ ext {
...
@@ -119,10 +119,10 @@ ext {
//mdt组件
//mdt组件
"ydl-tuicore"
:
"0.0.22"
,
"ydl-tuicore"
:
"0.0.22"
,
//第一步
//第一步
"ydl-platform"
:
"0.0.41.
5
"
,
"ydl-platform"
:
"0.0.41.
06
"
,
//第二步 若干
//第二步 若干
"ydl-webview"
:
"0.0.38.7
3
"
,
"ydl-webview"
:
"0.0.38.7
7
"
,
"ydl-media"
:
"0.0.21.44"
,
"ydl-media"
:
"0.0.21.44"
,
"ydl-pay"
:
"0.0.18.19"
,
"ydl-pay"
:
"0.0.18.19"
,
"m-audioim"
:
"0.0.49.29.85"
,
"m-audioim"
:
"0.0.49.29.85"
,
...
...
ydl-webview/src/main/java/com/ydl/event/ReloadUrlEvent.kt
0 → 100644
View file @
cdd0be70
package
com.ydl.event
/**
* h5页面内访问URL
*/
class
ReloadUrlEvent
{
var
url
:
String
?
=
null
constructor
(
url
:
String
)
{
this
.
url
=
url
}
}
\ No newline at end of file
ydl-webview/src/main/java/com/ydl/webview/NewH5Activity.java
View file @
cdd0be70
...
@@ -34,6 +34,7 @@ import com.tencent.smtt.sdk.WebView;
...
@@ -34,6 +34,7 @@ import com.tencent.smtt.sdk.WebView;
import
com.tencent.smtt.sdk.WebViewClient
;
import
com.tencent.smtt.sdk.WebViewClient
;
import
com.umeng.socialize.UMShareAPI
;
import
com.umeng.socialize.UMShareAPI
;
import
com.umeng.socialize.bean.SHARE_MEDIA
;
import
com.umeng.socialize.bean.SHARE_MEDIA
;
import
com.ydl.event.ReloadUrlEvent
;
import
com.ydl.utils.PopUtils
;
import
com.ydl.utils.PopUtils
;
import
com.ydl.utils.ProxyCheckUtils
;
import
com.ydl.utils.ProxyCheckUtils
;
import
com.ydl.utils.WebUrlParamsUtils
;
import
com.ydl.utils.WebUrlParamsUtils
;
...
@@ -1068,6 +1069,12 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
...
@@ -1068,6 +1069,12 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
}
}
}
}
public
void
onEvent
(
ReloadUrlEvent
event
)
{
//刷新页面
loadUrl
(
event
.
getUrl
());
shouldClearHistory
=
true
;
}
public
void
onEvent
(
UserBindPhoneEvent
event
)
{
public
void
onEvent
(
UserBindPhoneEvent
event
)
{
//刷新页面
//刷新页面
loadUrl
(
h5Params
.
getUrl
());
loadUrl
(
h5Params
.
getUrl
());
...
...
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