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-11 10:55:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ecc1bff0d48e37a8a361cbf3d1e612fecb6b2917
ecc1bff0
1 parent
2cd80333
feat:优化号主评论主页
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
View file @
ecc1bff
...
...
@@ -58,7 +58,6 @@ export struct HomePageBottomCommentComponent {
this.curPageNum = 1;
this.hasMore = true
this.isGetRequest = false
this.data_comment.clear()
if (!this.isLoading){
this.getNewPageData()
...
...
@@ -71,6 +70,7 @@ export struct HomePageBottomCommentComponent {
this.isLoading = true
//加载分页数据
this.getNewPageData()
if(resolve) resolve('刷新成功')
}
}
})
...
...
@@ -127,6 +127,7 @@ export struct HomePageBottomCommentComponent {
let object = new FollowListDetailRequestItem(-1, 20, this.curPageNum)
MinePageDatasModel.getMineCommentListData(time, object, getContext(this)).then((value) => {
if (this.curPageNum === 1) this.data_comment.clear()
if (!this.data_comment || value.list.length == 0) {
this.hasMore = false
this.isLoading = false
...
...
@@ -185,7 +186,7 @@ export struct HomePageBottomCommentComponent {
this.count = this.data_comment.totalCount()
this.commentNum = value.totalCount
if (value.
pageNum
=== 1) {
if (value.
hasNext
=== 1) {
this.curPageNum++
} else {
this.hasMore = false
...
...
@@ -218,7 +219,7 @@ export struct HomePageBottomCommentComponent {
this.count = this.data_comment.totalCount()
this.commentNum = value.totalCount
if (value.
pageNum
=== 1) {
if (value.
hasNext
=== 1) {
this.curPageNum++
} else {
this.hasMore = false
...
...
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
View file @
ecc1bff
...
...
@@ -73,6 +73,7 @@ struct MineHomePage {
}
build() {
Column(){
if(this.isConnectNetwork){
Stack({ alignContent: Alignment.Top }){
Stack({ alignContent: Alignment.Top }){
...
...
@@ -299,7 +300,7 @@ struct MineHomePage {
}
.margin({top:px2vp(this.topSafeHeight)})
}.width('100%')
.padding({bottom:px2vp(this.bottomSafeHeight)})
//
.padding({bottom:px2vp(this.bottomSafeHeight)})
.layoutWeight(1)
}else{
Column(){
...
...
@@ -316,6 +317,8 @@ struct MineHomePage {
}
}
}.padding({bottom:px2vp(this.bottomSafeHeight)})
}
@Builder MineHomeTitleTransparent() {
RelativeContainer() {
...
...
Please
register
or
login
to post a comment