Showing
1 changed file
with
9 additions
and
7 deletions
| @@ -6,11 +6,12 @@ import { PeopleShipAttentionContentListHeadComponent } from './PeopleShipAttenti | @@ -6,11 +6,12 @@ import { PeopleShipAttentionContentListHeadComponent } from './PeopleShipAttenti | ||
| 6 | @Component | 6 | @Component |
| 7 | export struct PeopleShipAttentionContentListTopComponent { | 7 | export struct PeopleShipAttentionContentListTopComponent { |
| 8 | @Prop followList: FollowListDetailItem[] | 8 | @Prop followList: FollowListDetailItem[] |
| 9 | + | ||
| 9 | build() { | 10 | build() { |
| 10 | Column() { | 11 | Column() { |
| 11 | - List(){ | 12 | + List() { |
| 12 | ListItem() { | 13 | ListItem() { |
| 13 | - this.PeopleShipFollowTop() | 14 | + this.PeopleShipFollowTop() |
| 14 | }.onClick(() => { | 15 | }.onClick(() => { |
| 15 | // 跳转到关注列表-我的 | 16 | // 跳转到关注列表-我的 |
| 16 | WDRouterRule.jumpWithPage(WDRouterPage.followListPage) | 17 | WDRouterRule.jumpWithPage(WDRouterPage.followListPage) |
| @@ -32,15 +33,16 @@ export struct PeopleShipAttentionContentListTopComponent { | @@ -32,15 +33,16 @@ export struct PeopleShipAttentionContentListTopComponent { | ||
| 32 | .scrollBar(BarState.Off) | 33 | .scrollBar(BarState.Off) |
| 33 | .width('100%') | 34 | .width('100%') |
| 34 | .height('102vp') | 35 | .height('102vp') |
| 36 | + | ||
| 35 | Divider().strokeWidth(1).color($r('app.color.color_F5F5F5')) | 37 | Divider().strokeWidth(1).color($r('app.color.color_F5F5F5')) |
| 36 | } | 38 | } |
| 37 | } | 39 | } |
| 38 | 40 | ||
| 39 | @Builder | 41 | @Builder |
| 40 | PeopleShipFollowTop() { | 42 | PeopleShipFollowTop() { |
| 41 | - Column(){ | 43 | + Column() { |
| 42 | // 头像 | 44 | // 头像 |
| 43 | - Image( $r('app.media.attention_mine') ) | 45 | + Image($r('app.media.attention_mine')) |
| 44 | .alt($r('app.media.attention_mine')) | 46 | .alt($r('app.media.attention_mine')) |
| 45 | .width(48) | 47 | .width(48) |
| 46 | .height(48) | 48 | .height(48) |
| @@ -48,8 +50,8 @@ export struct PeopleShipAttentionContentListTopComponent { | @@ -48,8 +50,8 @@ export struct PeopleShipAttentionContentListTopComponent { | ||
| 48 | .objectFit(ImageFit.ScaleDown) | 50 | .objectFit(ImageFit.ScaleDown) |
| 49 | .backgroundColor($r('app.color.color_F5F5F5')) | 51 | .backgroundColor($r('app.color.color_F5F5F5')) |
| 50 | .margin({ | 52 | .margin({ |
| 51 | - bottom: '8vp' | ||
| 52 | - }) | 53 | + bottom: '8vp' |
| 54 | + }) | ||
| 53 | 55 | ||
| 54 | Text('我的关注') | 56 | Text('我的关注') |
| 55 | .fontColor($r('app.color.color_666666')) | 57 | .fontColor($r('app.color.color_666666')) |
| @@ -58,7 +60,7 @@ export struct PeopleShipAttentionContentListTopComponent { | @@ -58,7 +60,7 @@ export struct PeopleShipAttentionContentListTopComponent { | ||
| 58 | .height('18vp') | 60 | .height('18vp') |
| 59 | .lineHeight('18vp') | 61 | .lineHeight('18vp') |
| 60 | .maxLines(1) | 62 | .maxLines(1) |
| 61 | - .textOverflow({overflow: TextOverflow.Ellipsis}) | 63 | + .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 62 | .padding({ | 64 | .padding({ |
| 63 | left: '2vp', | 65 | left: '2vp', |
| 64 | right: '2vp' | 66 | right: '2vp' |
-
Please register or login to post a comment