wangliang_wd

feat:优化号主评论主页

... ... @@ -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
... ...
... ... @@ -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() {
... ...