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
wangliang_wd
2024-06-12 10:45:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a9da1c226fd44e680ed8472c8e1135f90f6d0fe8
a9da1c22
1 parent
6a4957f5
feat:埋点调整,增加人民号列表刷新
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
16 deletions
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomeArticleListComponent.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomeArticleListComponent.ets
View file @
a9da1c2
...
...
@@ -48,19 +48,26 @@ export struct PeopleShipHomeArticleListComponent {
} else if (this.viewType == 2) {
ErrorComponent()
} else {
CustomPullToRefresh({
alldata:this.arr,
scroller:this.scroller,
hasMore:this.hasMore,
customList:()=>{
this.ListLayout()
// CustomPullToRefresh({
// alldata:this.arr,
// scroller:this.scroller,
// hasMore: false,
// customList:()=>{
// this.ListLayout()
// },
// onRefresh:(resolve)=>{
// this.currentPage = 1
// this.getPeopleShipPageArticleList(resolve)
// },
// })
},
onRefresh:(resolve)=>{
this.currentPage = 1
this.getPeopleShipPageArticleList(resolve)
},
onLoadMore:(resolve)=> {
if (this.hasMore === false) {
if(resolve) resolve('')
return
}
this.currentPage++
this.getPeopleShipPageArticleList(resolve)
}
})
}
}
...
...
@@ -90,14 +97,16 @@ export struct PeopleShipHomeArticleListComponent {
// 加载更多
ListItem() {
if (this.hasMore && this.arr && this.arr.length > 0) {
LoadMoreLayout({ isVisible: this.hasMore })
} else if (!this.hasMore && !this.isLoading) {
// if (this.hasMore && this.arr && this.arr.length > 0) {
// LoadMoreLayout({ isVisible: this.hasMore })
// } else
if (!this.hasMore && !this.isLoading) {
PeopleShipNoMoreData()
}
}
}
.cachedCount(4)
.scrollBar(BarState.Off)
.backgroundColor(Color.Transparent)
.width("100%")
.height("100%")
...
...
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
View file @
a9da1c2
...
...
@@ -104,8 +104,8 @@ struct LaunchAdvertisingPage {
.margin({top:'10lpx',right:'19lpx'})
.backgroundColor('#80000000')
.onClick(() => {
this.enter()
this.trackingLaunchJumpOver()
this.enter()
}).margin({right:16})
}.margin({top:50}).width('100%').height('56lpx')
...
...
Please
register
or
login
to post a comment