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
xugenyuan
2024-10-12 10:52:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9b963bdbf20fbeba3ba589c14c9bf1b57f1cf236
9b963bdb
1 parent
7f03183a
ref |> 文章详情页复用模板是调用交互接口显示骨架屏
Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
View file @
9b963bd
...
...
@@ -85,6 +85,9 @@ export struct WdWebLocalComponent {
eventHandler.pageEndBlock = this.onPageEnd.bind(this)
if (eventHandler.pageLoadEnd) {
this.onPageEnd()
// 开始复用
this.startResuse()
}
eventHandler.currentPageOperateBlock = this.currentPageOperate.bind(this)
}
...
...
@@ -206,6 +209,14 @@ export struct WdWebLocalComponent {
}
}
startResuse() {
let params = {'event':NativeCallH5Event.NativeCallH5EventStartLoadingOnReuse} as eventParams;
let jsonString = JSON.stringify(params);
this.webviewControl.callHandle(NativeCallH5Type.jsCall_appNotifyEvent, jsonString, (data: string) => {
Logger.debug(TAG, "开始复用,H5回调" + data);
})
}
startPlay() {
this.cancelProgressTimer()
this.controller.start()
...
...
Please
register
or
login
to post a comment