Showing
5 changed files
with
27 additions
and
10 deletions
| @@ -24,7 +24,7 @@ import PageAdModel from '../../viewmodel/PageAdvModel'; | @@ -24,7 +24,7 @@ import PageAdModel from '../../viewmodel/PageAdvModel'; | ||
| 24 | import PageHelper from '../../viewmodel/PageHelper'; | 24 | import PageHelper from '../../viewmodel/PageHelper'; |
| 25 | import { PeopleShipAttentionContentListTopComponent } from './PeopleShipAttentionContentListTopComponent' | 25 | import { PeopleShipAttentionContentListTopComponent } from './PeopleShipAttentionContentListTopComponent' |
| 26 | import { CardParser } from '../CardParser' | 26 | import { CardParser } from '../CardParser' |
| 27 | -import NoMoreLayout from '../page/NoMoreLayout'; | 27 | +import { PeopleShipNoMoreData } from '../reusable/PeopleShipNoMoreData'; |
| 28 | 28 | ||
| 29 | @Preview | 29 | @Preview |
| 30 | @Component | 30 | @Component |
| @@ -161,7 +161,7 @@ export struct PeopleShipMainComponent { | @@ -161,7 +161,7 @@ export struct PeopleShipMainComponent { | ||
| 161 | // 加载更多 | 161 | // 加载更多 |
| 162 | ListItem() { | 162 | ListItem() { |
| 163 | if (!this.hasMore && !this.isLoading) { | 163 | if (!this.hasMore && !this.isLoading) { |
| 164 | - NoMoreLayout() | 164 | + PeopleShipNoMoreData() |
| 165 | } | 165 | } |
| 166 | } | 166 | } |
| 167 | } | 167 | } |
| 1 | import { PeopleShipRecommendHeadComponent } from './PeopleShipRecommendHeadComponent' | 1 | import { PeopleShipRecommendHeadComponent } from './PeopleShipRecommendHeadComponent' |
| 2 | import { RmhRecommendDTO } from 'wdBean'; | 2 | import { RmhRecommendDTO } from 'wdBean'; |
| 3 | -import { Logger } from 'wdKit/Index'; | ||
| 4 | -import NoMoreLayout from '../page/NoMoreLayout'; | 3 | +import { PeopleShipNoMoreData } from '../reusable/PeopleShipNoMoreData'; |
| 5 | 4 | ||
| 6 | @Component | 5 | @Component |
| 7 | export struct PeopleShipRecommendComponent { | 6 | export struct PeopleShipRecommendComponent { |
| @@ -87,7 +86,8 @@ export struct PeopleShipRecommendComponent { | @@ -87,7 +86,8 @@ export struct PeopleShipRecommendComponent { | ||
| 87 | // 为你推荐 | 86 | // 为你推荐 |
| 88 | Button(this.rmhSelectedList.length == 0 ? '一键关注' : `一键关注 (${this.rmhSelectedList.length})`, { type: ButtonType.Normal, stateEffect: this.rmhSelectedList.length != 0 }) | 87 | Button(this.rmhSelectedList.length == 0 ? '一键关注' : `一键关注 (${this.rmhSelectedList.length})`, { type: ButtonType.Normal, stateEffect: this.rmhSelectedList.length != 0 }) |
| 89 | .margin({ | 88 | .margin({ |
| 90 | - top: '24vp' | 89 | + top: '24vp', |
| 90 | + bottom: '10vp' | ||
| 91 | }) | 91 | }) |
| 92 | .width('120vp') | 92 | .width('120vp') |
| 93 | .height('36vp') | 93 | .height('36vp') |
| @@ -104,7 +104,7 @@ export struct PeopleShipRecommendComponent { | @@ -104,7 +104,7 @@ export struct PeopleShipRecommendComponent { | ||
| 104 | } | 104 | } |
| 105 | }) | 105 | }) |
| 106 | // 没有更多 | 106 | // 没有更多 |
| 107 | - NoMoreLayout() | 107 | + PeopleShipNoMoreData() |
| 108 | } | 108 | } |
| 109 | .width('100%') | 109 | .width('100%') |
| 110 | } | 110 | } |
| @@ -18,9 +18,9 @@ import { CardParser } from '../CardParser' | @@ -18,9 +18,9 @@ import { CardParser } from '../CardParser' | ||
| 18 | import { PageRepository } from '../../repository/PageRepository' | 18 | import { PageRepository } from '../../repository/PageRepository' |
| 19 | import { RefreshLayoutBean } from '../page/RefreshLayoutBean' | 19 | import { RefreshLayoutBean } from '../page/RefreshLayoutBean' |
| 20 | import CustomRefreshLoadLayout from '../page/CustomRefreshLoadLayout' | 20 | import CustomRefreshLoadLayout from '../page/CustomRefreshLoadLayout' |
| 21 | -import { ErrorComponent } from '../view/ErrorComponent'; | ||
| 22 | -import NoMoreLayout from '../page/NoMoreLayout'; | 21 | +import { ErrorComponent } from '../view/ErrorComponent' |
| 23 | import { CustomPullToRefresh } from '../reusable/CustomPullToRefresh' | 22 | import { CustomPullToRefresh } from '../reusable/CustomPullToRefresh' |
| 23 | +import { PeopleShipNoMoreData } from '../reusable/PeopleShipNoMoreData' | ||
| 24 | 24 | ||
| 25 | const TAG = 'PeopleShipHomeArticleListComponent'; | 25 | const TAG = 'PeopleShipHomeArticleListComponent'; |
| 26 | 26 | ||
| @@ -104,7 +104,7 @@ export struct PeopleShipHomeArticleListComponent { | @@ -104,7 +104,7 @@ export struct PeopleShipHomeArticleListComponent { | ||
| 104 | // 加载更多 | 104 | // 加载更多 |
| 105 | ListItem() { | 105 | ListItem() { |
| 106 | if (!this.hasMore && !this.isLoading) { | 106 | if (!this.hasMore && !this.isLoading) { |
| 107 | - NoMoreLayout() | 107 | + PeopleShipNoMoreData() |
| 108 | } | 108 | } |
| 109 | } | 109 | } |
| 110 | } | 110 | } |
| @@ -56,7 +56,7 @@ export struct PeopleShipHomePageNavComponent { | @@ -56,7 +56,7 @@ export struct PeopleShipHomePageNavComponent { | ||
| 56 | 56 | ||
| 57 | if (this.isAttention == '0') { | 57 | if (this.isAttention == '0') { |
| 58 | // 关注 | 58 | // 关注 |
| 59 | - Button('+关注', { type: ButtonType.Normal, stateEffect: true }) | 59 | + Button('+ 关注', { type: ButtonType.Normal, stateEffect: true }) |
| 60 | .borderRadius(4) | 60 | .borderRadius(4) |
| 61 | .backgroundColor($r('app.color.color_ED2800')) | 61 | .backgroundColor($r('app.color.color_ED2800')) |
| 62 | .width('54vp') | 62 | .width('54vp') |
sight_harmony/features/wdComponent/src/main/ets/components/reusable/PeopleShipNoMoreData.ets
0 → 100644
| 1 | +@Component | ||
| 2 | +export struct PeopleShipNoMoreData{ | ||
| 3 | + | ||
| 4 | + @State title: string = '已显示全部内容' | ||
| 5 | + build(){ | ||
| 6 | + Row(){ | ||
| 7 | + Text("已显示全部内容") | ||
| 8 | + .fontColor($r('app.color.color_999999')) | ||
| 9 | + .fontWeight(400) | ||
| 10 | + .fontSize('14vp') | ||
| 11 | + } | ||
| 12 | + .justifyContent(FlexAlign.Center) | ||
| 13 | + .alignItems(VerticalAlign.Center) | ||
| 14 | + .width('100%') | ||
| 15 | + .margin({top:'24vp',bottom:'24vp'}) | ||
| 16 | + } | ||
| 17 | +} |
-
Please register or login to post a comment