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
yangchenggong1_wd
2024-05-20 17:30:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e3fe05dc68815a4093a105836ec7949798e6dfb9
e3fe05dc
1 parent
9dc71ffa
fix:bug[17752] 消息中的预约消息在无网络时的缺省图与安卓不一致
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/message/subscribe/SubscribeMessageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/message/subscribe/SubscribeMessageComponent.ets
View file @
e3fe05d
import { LazyDataSource, StringUtils } from 'wdKit/Index';
import { LazyDataSource,
NetworkUtil,
StringUtils } from 'wdKit/Index';
import { Remark, SubscribeMessageModel,
WDMessageCenterMessageType } from '../../../../model/InteractMessageModel';
import MinePageDatasModel from '../../../../model/MinePageDatasModel';
...
...
@@ -22,6 +22,7 @@ export struct SubscribeMessageComponent{
@State isGetRequest: boolean = false
private scroller: Scroller = new Scroller();
@State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0
@State isConnectNetwork : boolean = NetworkUtil.isNetConnected()
aboutToAppear() {
this.getNewPageData()
...
...
@@ -33,9 +34,27 @@ export struct SubscribeMessageComponent{
CustomTitleUI({ titleName: "预约消息" })
if (this.count == 0) {
if (this.isGetRequest == true) {
EmptyComponent({ emptyType: 5 })
.height('100%')
.width('100%')
if(this.isConnectNetwork){
EmptyComponent({ emptyType: 5 })
.height('100%')
.width('100%')
}else{
EmptyComponent({ emptyType: 1,emptyHeight:"100%" ,retry: () => {
this.isConnectNetwork = NetworkUtil.isNetConnected()
if(this.isConnectNetwork){
this.curPageNum = 1;
this.hasMore = true
this.isGetRequest = false
this.data.clear()
if (!this.isLoading) {
this.getNewPageData()
}
}
},})
.layoutWeight(1)
.width('100%')
}
}
} else {
CustomPullToRefresh({
...
...
Please
register
or
login
to post a comment