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
liyubing
2024-06-18 11:12:51 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
c1c5e79077f36d9b956a06d875f69cd0ada9be0b
c1c5e790
2 parents
b320fc95
181c0905
Merge remote-tracking branch 'origin/main'
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/OtherHomePageBottomFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomFollowComponent.ets
View file @
c1c5e79
...
...
@@ -109,6 +109,7 @@ export struct HomePageBottomFollowComponent {
CustomPullToRefresh({
alldata:this.data_follow,
scroller:this.scroller,
hasMore:this.hasMore,
customList:()=>{
this.ListLayout()
},
...
...
@@ -128,6 +129,7 @@ export struct HomePageBottomFollowComponent {
this.isLoading = true
//加载分页数据
this.getNewPageData()
if(resolve) resolve('刷新成功')
}
}
})
...
...
@@ -197,7 +199,7 @@ export struct HomePageBottomFollowComponent {
getMyFollowListDetail() {
if (this.hasMore) {
let object = new FollowListDetailRequestItem(-1,
2
0, this.curPageNum)
let object = new FollowListDetailRequestItem(-1,
1
0, this.curPageNum)
MinePageDatasModel.getMineFollowListData(object, getContext(this)).then((value) => {
if (this.curPageNum === 1) this.data_follow.clear()
...
...
@@ -222,7 +224,7 @@ export struct HomePageBottomFollowComponent {
})
this.data_follow.notifyDataReload()
this.count = this.data_follow.totalCount()
if (
this.data_follow.totalCount() < value.totalCount
) {
if (
value.hasNext === 1
) {
this.curPageNum++
} else {
this.hasMore = false
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/OtherHomePageBottomFollowComponent.ets
View file @
c1c5e79
...
...
@@ -70,6 +70,7 @@ export struct OtherHomePageBottomFollowComponent{
CustomPullToRefresh({
alldata:this.data_follow,
scroller:this.scroller,
hasMore:this.hasMore,
customList:()=>{
this.ListLayout()
},
...
...
@@ -89,6 +90,7 @@ export struct OtherHomePageBottomFollowComponent{
this.isLoading = true
//加载分页数据
this.getNewPageData()
if(resolve) resolve('刷新成功')
}
}
})
...
...
@@ -160,7 +162,7 @@ export struct OtherHomePageBottomFollowComponent{
this.isLoading = true
//关注列表
if(this.hasMore){
let object = new UserFollowListRequestItem(Number(this.curUserId),
2
0,this.curPageNum,"1")
let object = new UserFollowListRequestItem(Number(this.curUserId),
1
0,this.curPageNum,"1")
MinePageDatasModel.getOtherUserFollowListData(object,getContext(this)).then((value)=>{
...
...
@@ -186,7 +188,7 @@ export struct OtherHomePageBottomFollowComponent{
this.data_follow.notifyDataReload()
this.count = this.data_follow.totalCount()
if (
this.data_follow.totalCount() < value.totalCount
) {
if (
value.hasNext === 1
) {
this.curPageNum++
}else {
this.hasMore = false
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
View file @
c1c5e79
...
...
@@ -665,7 +665,7 @@ export struct PaperSingleColumn999CardView {
buildSourceString(): string {
let contentString: string = ''
if (this.item?.rmhInfo?.rmhName.length > 0) {
contentString = this.item?.rmhInfo?.rmhName
//
contentString = this.item?.rmhInfo?.rmhName
}else if(this.item?.source.length > 0){
contentString = this.item?.source
}
...
...
Please
register
or
login
to post a comment