Showing
4 changed files
with
12 additions
and
10 deletions
| @@ -50,9 +50,11 @@ export struct CardSourceInfo { | @@ -50,9 +50,11 @@ export struct CardSourceInfo { | ||
| 50 | 50 | ||
| 51 | showCommentNum() { | 51 | showCommentNum() { |
| 52 | const curRouter = router.getState().name; | 52 | const curRouter = router.getState().name; |
| 53 | - return curRouter !== 'PeopleShipHomePage' | 53 | + // return curRouter !== 'PeopleShipHomePage' |
| 54 | + return true | ||
| 54 | } | 55 | } |
| 55 | 56 | ||
| 57 | + | ||
| 56 | /** | 58 | /** |
| 57 | * 全域数字显示规则 | 59 | * 全域数字显示规则 |
| 58 | * 1、当数量为千位以內时,显示数字,不保留小数点,比如 4585 | 60 | * 1、当数量为千位以內时,显示数字,不保留小数点,比如 4585 |
| @@ -154,8 +156,6 @@ export struct CardSourceInfo { | @@ -154,8 +156,6 @@ export struct CardSourceInfo { | ||
| 154 | .fontSize($r("app.float.font_size_11")) | 156 | .fontSize($r("app.float.font_size_11")) |
| 155 | .fontColor($r("app.color.color_B0B0B0")) | 157 | .fontColor($r("app.color.color_B0B0B0")) |
| 156 | .flexShrink(0) | 158 | .flexShrink(0) |
| 157 | - .visibility(Number(this.getContentDtoBean()?.interactData?.commentNum) === 0 ? Visibility.None : | ||
| 158 | - Visibility.Visible) | ||
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | // if (this.getContentDtoBean()?.interactData?.commentNum && this.contentDTO.source) { | 161 | // if (this.getContentDtoBean()?.interactData?.commentNum && this.contentDTO.source) { |
| @@ -109,9 +109,7 @@ export struct Card6Component { | @@ -109,9 +109,7 @@ export struct Card6Component { | ||
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | .alignItems(HorizontalAlign.Start) | 111 | .alignItems(HorizontalAlign.Start) |
| 112 | - .height(this.contentDTO.appStyle === CompStyle.Card_13 ? '' : 156) | ||
| 113 | - | ||
| 114 | - | 112 | + .height(this.contentDTO.appStyle === CompStyle.Card_13 ? 78 : 156) |
| 115 | .justifyContent(FlexAlign.SpaceBetween) | 113 | .justifyContent(FlexAlign.SpaceBetween) |
| 116 | .width('64%') | 114 | .width('64%') |
| 117 | 115 |
| @@ -58,7 +58,6 @@ export struct HomePageBottomCommentComponent { | @@ -58,7 +58,6 @@ export struct HomePageBottomCommentComponent { | ||
| 58 | this.curPageNum = 1; | 58 | this.curPageNum = 1; |
| 59 | this.hasMore = true | 59 | this.hasMore = true |
| 60 | this.isGetRequest = false | 60 | this.isGetRequest = false |
| 61 | - this.data_comment.clear() | ||
| 62 | 61 | ||
| 63 | if (!this.isLoading){ | 62 | if (!this.isLoading){ |
| 64 | this.getNewPageData() | 63 | this.getNewPageData() |
| @@ -71,6 +70,7 @@ export struct HomePageBottomCommentComponent { | @@ -71,6 +70,7 @@ export struct HomePageBottomCommentComponent { | ||
| 71 | this.isLoading = true | 70 | this.isLoading = true |
| 72 | //加载分页数据 | 71 | //加载分页数据 |
| 73 | this.getNewPageData() | 72 | this.getNewPageData() |
| 73 | + if(resolve) resolve('刷新成功') | ||
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| 76 | }) | 76 | }) |
| @@ -127,6 +127,7 @@ export struct HomePageBottomCommentComponent { | @@ -127,6 +127,7 @@ export struct HomePageBottomCommentComponent { | ||
| 127 | let object = new FollowListDetailRequestItem(-1, 20, this.curPageNum) | 127 | let object = new FollowListDetailRequestItem(-1, 20, this.curPageNum) |
| 128 | 128 | ||
| 129 | MinePageDatasModel.getMineCommentListData(time, object, getContext(this)).then((value) => { | 129 | MinePageDatasModel.getMineCommentListData(time, object, getContext(this)).then((value) => { |
| 130 | + if (this.curPageNum === 1) this.data_comment.clear() | ||
| 130 | if (!this.data_comment || value.list.length == 0) { | 131 | if (!this.data_comment || value.list.length == 0) { |
| 131 | this.hasMore = false | 132 | this.hasMore = false |
| 132 | this.isLoading = false | 133 | this.isLoading = false |
| @@ -185,7 +186,7 @@ export struct HomePageBottomCommentComponent { | @@ -185,7 +186,7 @@ export struct HomePageBottomCommentComponent { | ||
| 185 | 186 | ||
| 186 | this.count = this.data_comment.totalCount() | 187 | this.count = this.data_comment.totalCount() |
| 187 | this.commentNum = value.totalCount | 188 | this.commentNum = value.totalCount |
| 188 | - if (value.pageNum === 1) { | 189 | + if (value.hasNext === 1) { |
| 189 | this.curPageNum++ | 190 | this.curPageNum++ |
| 190 | } else { | 191 | } else { |
| 191 | this.hasMore = false | 192 | this.hasMore = false |
| @@ -218,7 +219,7 @@ export struct HomePageBottomCommentComponent { | @@ -218,7 +219,7 @@ export struct HomePageBottomCommentComponent { | ||
| 218 | 219 | ||
| 219 | this.count = this.data_comment.totalCount() | 220 | this.count = this.data_comment.totalCount() |
| 220 | this.commentNum = value.totalCount | 221 | this.commentNum = value.totalCount |
| 221 | - if (value.pageNum === 1) { | 222 | + if (value.hasNext === 1) { |
| 222 | this.curPageNum++ | 223 | this.curPageNum++ |
| 223 | } else { | 224 | } else { |
| 224 | this.hasMore = false | 225 | this.hasMore = false |
| @@ -73,6 +73,7 @@ struct MineHomePage { | @@ -73,6 +73,7 @@ struct MineHomePage { | ||
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | build() { | 75 | build() { |
| 76 | + Column(){ | ||
| 76 | if(this.isConnectNetwork){ | 77 | if(this.isConnectNetwork){ |
| 77 | Stack({ alignContent: Alignment.Top }){ | 78 | Stack({ alignContent: Alignment.Top }){ |
| 78 | Stack({ alignContent: Alignment.Top }){ | 79 | Stack({ alignContent: Alignment.Top }){ |
| @@ -299,7 +300,7 @@ struct MineHomePage { | @@ -299,7 +300,7 @@ struct MineHomePage { | ||
| 299 | } | 300 | } |
| 300 | .margin({top:px2vp(this.topSafeHeight)}) | 301 | .margin({top:px2vp(this.topSafeHeight)}) |
| 301 | }.width('100%') | 302 | }.width('100%') |
| 302 | - .padding({bottom:px2vp(this.bottomSafeHeight)}) | 303 | + // .padding({bottom:px2vp(this.bottomSafeHeight)}) |
| 303 | .layoutWeight(1) | 304 | .layoutWeight(1) |
| 304 | }else{ | 305 | }else{ |
| 305 | Column(){ | 306 | Column(){ |
| @@ -316,6 +317,8 @@ struct MineHomePage { | @@ -316,6 +317,8 @@ struct MineHomePage { | ||
| 316 | } | 317 | } |
| 317 | } | 318 | } |
| 318 | 319 | ||
| 320 | + }.padding({bottom:px2vp(this.bottomSafeHeight)}) | ||
| 321 | + | ||
| 319 | } | 322 | } |
| 320 | @Builder MineHomeTitleTransparent() { | 323 | @Builder MineHomeTitleTransparent() { |
| 321 | RelativeContainer() { | 324 | RelativeContainer() { |
-
Please register or login to post a comment