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
王士厅
2024-10-12 11:10:09 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
e73564abd052b18ab97569c1a63fff5b6041d7f5
e73564ab
2 parents
3ffb5c6b
9b963bdb
Merge branch 'main' of
http://192.168.1.42/developOne/harmonyPool
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletions
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/PageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/viewmodel/PageHelper.ets
sight_harmony/singing_config/manual_com.peopledailychina.hosactivity_sign/peopledaiychina-hos-profile-debugDebug.p7b
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
View file @
e73564a
...
...
@@ -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()
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/PageComponent.ets
View file @
e73564a
import { BottomNavi, CommonConstants, ViewType } from 'wdConstant';
import { EmitterEventId, EmitterUtils, Logger, NetworkUtil } from 'wdKit';
import { EmptyComponent } from '../view/EmptyComponent';
import { EmptyComponent
, WDViewDefaultType
} from '../view/EmptyComponent';
import PageModel from '../../viewmodel/PageModel';
import { autoRefresh, onActionEnd, onActionStart, onActionUpdate } from '../../utils/PullDownRefresh';
import LoadMoreLayout from './LoadMoreLayout';
...
...
@@ -317,6 +317,11 @@ export struct PageComponent {
// console.log(TAG, 'page onAutoRefresh111 ' + this.needload)
if (this.needload) {
this.getData();
}else{
let netStatus = NetworkUtil.isNetConnected()
if(this.pageModel.emptyType === WDViewDefaultType.WDViewDefaultType_NoNetwork && netStatus ){
this.onAutoRefresh()
}
}
this.needload = false;
}
...
...
sight_harmony/features/wdComponent/src/main/ets/viewmodel/PageHelper.ets
View file @
e73564a
...
...
@@ -120,6 +120,7 @@ export class PageHelper {
pageModel.emptyType = WDViewDefaultType.WDViewDefaultType_NoContent1;
return;
} else {
pageModel.emptyType = WDViewDefaultType.WDViewDefaultType_Default
//更新数据
pageModel.compList.addItems(liveReviewDTO.list);
this.refreshUIEnd(pageModel, true);
...
...
@@ -138,6 +139,7 @@ export class PageHelper {
this.refreshUIEnd(pageModel, false)
return;
}
pageModel.emptyType = WDViewDefaultType.WDViewDefaultType_Default
pageModel.pageInfo = pageInfo;
if (pageInfo.md5 == pageModel.displayPageInfoMd5) {
// 缓存一致,不解析
...
...
sight_harmony/singing_config/manual_com.peopledailychina.hosactivity_sign/peopledaiychina-hos-profile-debugDebug.p7b
View file @
e73564a
No preview for this file type
Please
register
or
login
to post a comment