Showing
3 changed files
with
8 additions
and
6 deletions
| @@ -39,7 +39,7 @@ export struct PeopleShipMainComponent { | @@ -39,7 +39,7 @@ export struct PeopleShipMainComponent { | ||
| 39 | pageId: string = ""; | 39 | pageId: string = ""; |
| 40 | channelId: string = ""; | 40 | channelId: string = ""; |
| 41 | @Link @Watch('onChange') currentTopNavSelectedIndex: number | 41 | @Link @Watch('onChange') currentTopNavSelectedIndex: number |
| 42 | - private scroller: Scroller = new Scroller() | 42 | + // private scroller: Scroller = new Scroller() |
| 43 | private listScroller: Scroller = new Scroller() | 43 | private listScroller: Scroller = new Scroller() |
| 44 | 44 | ||
| 45 | @State rmhList: RmhRecommendDTO[] = [] | 45 | @State rmhList: RmhRecommendDTO[] = [] |
| @@ -86,7 +86,7 @@ export struct PeopleShipMainComponent { | @@ -86,7 +86,7 @@ export struct PeopleShipMainComponent { | ||
| 86 | if (this.followList.length == 0) { | 86 | if (this.followList.length == 0) { |
| 87 | CustomPullToRefresh({ | 87 | CustomPullToRefresh({ |
| 88 | alldata: this.rmhList, | 88 | alldata: this.rmhList, |
| 89 | - scroller: this.scroller, | 89 | + scroller: this.listScroller, |
| 90 | hasMore: false, | 90 | hasMore: false, |
| 91 | customList: () => { | 91 | customList: () => { |
| 92 | this.ListLayout() | 92 | this.ListLayout() |
| @@ -137,14 +137,17 @@ export struct PeopleShipMainComponent { | @@ -137,14 +137,17 @@ export struct PeopleShipMainComponent { | ||
| 137 | 137 | ||
| 138 | @Builder | 138 | @Builder |
| 139 | ListLayout() { | 139 | ListLayout() { |
| 140 | - Scroll(this.scroller) { | ||
| 141 | - // 推荐人民号 | 140 | + |
| 141 | + List({scroller: this.listScroller}){ | ||
| 142 | + // 头部关注列表 | ||
| 143 | + ListItem(){ | ||
| 142 | PeopleShipRecommendComponent({ | 144 | PeopleShipRecommendComponent({ |
| 143 | rmhList: this.rmhList, | 145 | rmhList: this.rmhList, |
| 144 | oneKeyFollow: this.oneKeyFollow, | 146 | oneKeyFollow: this.oneKeyFollow, |
| 145 | changeButton: this.changeButton | 147 | changeButton: this.changeButton |
| 146 | }) | 148 | }) |
| 147 | } | 149 | } |
| 150 | + } | ||
| 148 | .edgeEffect(EdgeEffect.None) | 151 | .edgeEffect(EdgeEffect.None) |
| 149 | .scrollBar(BarState.Off) | 152 | .scrollBar(BarState.Off) |
| 150 | .width('100%') | 153 | .width('100%') |
| @@ -56,7 +56,6 @@ export struct PeopleShipRecommendComponent { | @@ -56,7 +56,6 @@ export struct PeopleShipRecommendComponent { | ||
| 56 | .width('100%') | 56 | .width('100%') |
| 57 | .alignSelf(ItemAlign.Start) | 57 | .alignSelf(ItemAlign.Start) |
| 58 | .margin({ | 58 | .margin({ |
| 59 | - top: '-50vp', | ||
| 60 | bottom: '10vp' | 59 | bottom: '10vp' |
| 61 | }) | 60 | }) |
| 62 | 61 |
| @@ -53,7 +53,7 @@ export struct BottomNavigationComponent { | @@ -53,7 +53,7 @@ export struct BottomNavigationComponent { | ||
| 53 | // 自动刷新触发(双击tab自动刷新) | 53 | // 自动刷新触发(双击tab自动刷新) |
| 54 | @State autoRefresh: number = 0 | 54 | @State autoRefresh: number = 0 |
| 55 | // 顶导数据,从接口获取 TODO 顶导业务逻辑没看懂,暂时不替换顶导list。频道管理数据待梳理 | 55 | // 顶导数据,从接口获取 TODO 顶导业务逻辑没看懂,暂时不替换顶导list。频道管理数据待梳理 |
| 56 | - @State topNavMap: Record<string, TopNavDTO[]> = {} | 56 | + // @State topNavMap: Record<string, TopNavDTO[]> = {} |
| 57 | 57 | ||
| 58 | async aboutToAppear() { | 58 | async aboutToAppear() { |
| 59 | Logger.info(TAG, `aboutToAppear currentNavIndex: ${this.currentNavIndex}`); | 59 | Logger.info(TAG, `aboutToAppear currentNavIndex: ${this.currentNavIndex}`); |
-
Please register or login to post a comment