Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chenquansheng
2024-09-10 18:19:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
71f70d8cc540df0f7603af76c0bbddbf03ea8dbe
71f70d8c
1 parent
00002f3e
fix |> 文章详情页web容器添加cache缓存管理
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
sight_harmony/products/phone/src/main/resources/rawfile/WebViewJavascriptBridge.js
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
View file @
71f70d8
...
...
@@ -36,6 +36,7 @@ export struct WdWebLocalComponent {
@State isFullScreen: boolean = false;
@State isEndPlay: boolean = false;
@State mode: CacheMode = CacheMode.None;
currentChanged(){
///折叠屏转换 暂停播放器
this.controller.pause()
...
...
@@ -75,6 +76,7 @@ export struct WdWebLocalComponent {
.imageAccess(true)
.mixedMode(MixedMode.All)
.onlineImageAccess(true)
.cacheMode(this.mode)
// .enableNativeEmbedMode(true)
// .layoutMode(WebLayoutMode.FIT_CONTENT)
.nestedScroll({
...
...
sight_harmony/products/phone/src/main/resources/rawfile/WebViewJavascriptBridge.js
View file @
71f70d8
...
...
@@ -70,7 +70,7 @@
message
.
callbackId
=
callbackId
;
}
console
.
log
(
"WebViewJavascriptBridge55: "
,
JSON
.
stringify
(
message
));
//
console.log("WebViewJavascriptBridge55: ", JSON.stringify(message));
sendMessageQueue
.
push
(
message
);
messagingIframe
.
src
=
CUSTOM_PROTOCOL_SCHEME
+
'://'
+
QUEUE_HAS_MESSAGE
+
encodeURIComponent
(
JSON
.
stringify
(
message
));
}
...
...
Please
register
or
login
to post a comment