Showing
4 changed files
with
7 additions
and
4 deletions
| @@ -48,7 +48,7 @@ export struct ENewspaperItemComponent { | @@ -48,7 +48,7 @@ export struct ENewspaperItemComponent { | ||
| 48 | 48 | ||
| 49 | this.isShowSkeleton = false | 49 | this.isShowSkeleton = false |
| 50 | }) | 50 | }) |
| 51 | - .objectFit(ImageFit.Contain) | 51 | + .objectFit(ImageFit.Fill) |
| 52 | .zIndex(10) | 52 | .zIndex(10) |
| 53 | 53 | ||
| 54 | newsSkeleton({showBottom: this.isShowSkeleton}) | 54 | newsSkeleton({showBottom: this.isShowSkeleton}) |
| @@ -24,6 +24,7 @@ export struct HomePageBottomCommentComponent { | @@ -24,6 +24,7 @@ export struct HomePageBottomCommentComponent { | ||
| 24 | @State hasMore: boolean = true | 24 | @State hasMore: boolean = true |
| 25 | curPageNum: number = 1; | 25 | curPageNum: number = 1; |
| 26 | @State count: number = 0; | 26 | @State count: number = 0; |
| 27 | + @Prop userLevelHead:string | ||
| 27 | @Link commentNum: number | 28 | @Link commentNum: number |
| 28 | @State isGetRequest: boolean = false | 29 | @State isGetRequest: boolean = false |
| 29 | private scroller: Scroller = new Scroller(); | 30 | private scroller: Scroller = new Scroller(); |
| @@ -86,7 +87,7 @@ export struct HomePageBottomCommentComponent { | @@ -86,7 +87,7 @@ export struct HomePageBottomCommentComponent { | ||
| 86 | ListItem() { | 87 | ListItem() { |
| 87 | ChildCommentComponent({ | 88 | ChildCommentComponent({ |
| 88 | data: item, | 89 | data: item, |
| 89 | - levelHead: UserDataLocal.getUserLevelHeaderUrl(), | 90 | + levelHead: this.userLevelHead, |
| 90 | isLastItem: index === this.data_comment.totalCount() - 1 | 91 | isLastItem: index === this.data_comment.totalCount() - 1 |
| 91 | }) | 92 | }) |
| 92 | } | 93 | } |
| @@ -179,7 +179,7 @@ export struct HomePageBottomFollowComponent { | @@ -179,7 +179,7 @@ export struct HomePageBottomFollowComponent { | ||
| 179 | if (!this.hasMore) { | 179 | if (!this.hasMore) { |
| 180 | ListItem() { | 180 | ListItem() { |
| 181 | ///ToDo 数据过少时,达不到滑动条件 后续优化 | 181 | ///ToDo 数据过少时,达不到滑动条件 后续优化 |
| 182 | - ListHasNoMoreDataUI().height(this.bottomCompH > 150 ? this.bottomCompH :150) | 182 | + ListHasNoMoreDataUI().height(this.bottomCompH > 40 ? this.bottomCompH :40) |
| 183 | } | 183 | } |
| 184 | } | 184 | } |
| 185 | } | 185 | } |
| @@ -24,6 +24,7 @@ struct MineHomePage { | @@ -24,6 +24,7 @@ struct MineHomePage { | ||
| 24 | @State userName:string = "" | 24 | @State userName:string = "" |
| 25 | @State headPhotoUrl:string = "" | 25 | @State headPhotoUrl:string = "" |
| 26 | @State levelHead:string = "" | 26 | @State levelHead:string = "" |
| 27 | + @State userLevelHead:string = "" | ||
| 27 | @State userType:string = "1" | 28 | @State userType:string = "1" |
| 28 | @State levelId:number = 0 | 29 | @State levelId:number = 0 |
| 29 | @State desc:string = "点击添加简介,让大家认识你" //text 搞两个样式,如果三行,就显示 另外一个text 没有显示高度的 | 30 | @State desc:string = "点击添加简介,让大家认识你" //text 搞两个样式,如果三行,就显示 另外一个text 没有显示高度的 |
| @@ -264,7 +265,7 @@ struct MineHomePage { | @@ -264,7 +265,7 @@ struct MineHomePage { | ||
| 264 | Stack({ alignContent: Alignment.Top }){ | 265 | Stack({ alignContent: Alignment.Top }){ |
| 265 | Tabs({controller: this.controller}) { | 266 | Tabs({controller: this.controller}) { |
| 266 | TabContent() { | 267 | TabContent() { |
| 267 | - HomePageBottomCommentComponent({commentNum:$commentNum}) | 268 | + HomePageBottomCommentComponent({commentNum:$commentNum,userLevelHead:this.userLevelHead}) |
| 268 | }.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Right }))) | 269 | }.gesture(PanGesture(new PanGestureOptions({ direction: PanDirection.Right }))) |
| 269 | TabContent() { | 270 | TabContent() { |
| 270 | HomePageBottomFollowComponent() | 271 | HomePageBottomFollowComponent() |
| @@ -531,6 +532,7 @@ struct MineHomePage { | @@ -531,6 +532,7 @@ struct MineHomePage { | ||
| 531 | } | 532 | } |
| 532 | } | 533 | } |
| 533 | this.levelId = value.levelId | 534 | this.levelId = value.levelId |
| 535 | + this.userLevelHead = value.levelHead | ||
| 534 | } | 536 | } |
| 535 | }).catch((err:Error)=>{ | 537 | }).catch((err:Error)=>{ |
| 536 | console.log(TAG,JSON.stringify(err)) | 538 | console.log(TAG,JSON.stringify(err)) |
-
Please register or login to post a comment