Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
4 changed files
with
27 additions
and
3 deletions
| @@ -141,7 +141,7 @@ export struct ENewspaperPageComponent { | @@ -141,7 +141,7 @@ export struct ENewspaperPageComponent { | ||
| 141 | // bottomSafeHeight 底导高度 topSafeHeight 顶导高度 44 顶部高度 60 底部高度 | 141 | // bottomSafeHeight 底导高度 topSafeHeight 顶导高度 44 顶部高度 60 底部高度 |
| 142 | // newspaper_shadow 49 高度 e_newspaper_content 59 margin top | 142 | // newspaper_shadow 49 高度 e_newspaper_content 59 margin top |
| 143 | let height = | 143 | let height = |
| 144 | - // screenHeight - this.bottomSafeHeight - this.topSafeHeight - vp2px(44) - vp2px(60) - vp2px(49) - vp2px(59) | 144 | + // screenHeight - this.bottomSafeHeight - this.topSafeHeight - vp2px(44) - vp2px(60) - vp2px(49) - vp2px(59 |
| 145 | this.picHeight = (this.picWidth * 506)/355 | 145 | this.picHeight = (this.picWidth * 506)/355 |
| 146 | 146 | ||
| 147 | let ratio = this.ratio == '100%' ? 1 : 0.5 | 147 | let ratio = this.ratio == '100%' ? 1 : 0.5 |
| @@ -26,6 +26,7 @@ export struct RmhTitle { | @@ -26,6 +26,7 @@ export struct RmhTitle { | ||
| 26 | @Prop publishTime: string | undefined | 26 | @Prop publishTime: string | undefined |
| 27 | @State loadImg: boolean = false; | 27 | @State loadImg: boolean = false; |
| 28 | isPeopleShipHome: boolean = false; | 28 | isPeopleShipHome: boolean = false; |
| 29 | + @Consume @Watch('pageShowForUpdateData') pageShow:number | ||
| 29 | /** | 30 | /** |
| 30 | * 是否需要隐藏发布时间超过2天的时间展示,默认不隐藏 | 31 | * 是否需要隐藏发布时间超过2天的时间展示,默认不隐藏 |
| 31 | */ | 32 | */ |
| @@ -95,7 +96,11 @@ export struct RmhTitle { | @@ -95,7 +96,11 @@ export struct RmhTitle { | ||
| 95 | } | 96 | } |
| 96 | 97 | ||
| 97 | async aboutToAppear(): Promise<void> { | 98 | async aboutToAppear(): Promise<void> { |
| 99 | + //关注查询限制 | ||
| 100 | + if (this.rmhInfo?.cnIsAttention) { | ||
| 98 | this.getBatchAttentionStatus() | 101 | this.getBatchAttentionStatus() |
| 102 | + } | ||
| 103 | + | ||
| 99 | const curRouter = router.getState().name; | 104 | const curRouter = router.getState().name; |
| 100 | if (curRouter === 'MainPage') { | 105 | if (curRouter === 'MainPage') { |
| 101 | this.hideTime = true; | 106 | this.hideTime = true; |
| @@ -104,6 +109,12 @@ export struct RmhTitle { | @@ -104,6 +109,12 @@ export struct RmhTitle { | ||
| 104 | this.loadImg = await onlyWifiLoadImg(); | 109 | this.loadImg = await onlyWifiLoadImg(); |
| 105 | } | 110 | } |
| 106 | 111 | ||
| 112 | + pageShowForUpdateData(): void { | ||
| 113 | + if (this.rmhInfo?.cnIsAttention) { | ||
| 114 | + this.getBatchAttentionStatus() | ||
| 115 | + } | ||
| 116 | + } | ||
| 117 | + | ||
| 107 | getDaysBetweenDates(date: number) { | 118 | getDaysBetweenDates(date: number) { |
| 108 | const oneDay = 24 * 60 * 60 * 1000; // 一天的毫秒数 | 119 | const oneDay = 24 * 60 * 60 * 1000; // 一天的毫秒数 |
| 109 | const time1 = new Date().getTime(); // 今天日期的时间戳 | 120 | const time1 = new Date().getTime(); // 今天日期的时间戳 |
| @@ -19,6 +19,11 @@ import { CustomTitleUI } from '../reusable/CustomTitleUI' | @@ -19,6 +19,11 @@ import { CustomTitleUI } from '../reusable/CustomTitleUI' | ||
| 19 | @Entry | 19 | @Entry |
| 20 | @Component | 20 | @Component |
| 21 | struct PeopleShipHomePage { | 21 | struct PeopleShipHomePage { |
| 22 | + | ||
| 23 | + //RmhTitle组件刷新需要设置 该界面为用户主页,所以不需要刷新操作 | ||
| 24 | + @Provide pageShow: number = -1 | ||
| 25 | + @Provide pageHide: number = -1 | ||
| 26 | + | ||
| 22 | // Todo 传入数据 后续在修改 | 27 | // Todo 传入数据 后续在修改 |
| 23 | creatorId: string = (router.getParams() as Record<string, string>)['creatorId']; | 28 | creatorId: string = (router.getParams() as Record<string, string>)['creatorId']; |
| 24 | // 页面详情数据 | 29 | // 页面详情数据 |
| @@ -35,12 +35,17 @@ export struct HorizontalStrokeCardThreeTwoRadioForOneComponent { | @@ -35,12 +35,17 @@ export struct HorizontalStrokeCardThreeTwoRadioForOneComponent { | ||
| 35 | .width(14) | 35 | .width(14) |
| 36 | .height(14) | 36 | .height(14) |
| 37 | } | 37 | } |
| 38 | - }.justifyContent(FlexAlign.SpaceBetween) | 38 | + .visibility(this.showMore() ? Visibility.Visible : Visibility.None) |
| 39 | + .onClick(() => { | ||
| 40 | + ProcessUtils.compJumpPage(this.compDTO) | ||
| 41 | + }) | ||
| 42 | + } | ||
| 43 | + .justifyContent(FlexAlign.SpaceBetween) | ||
| 39 | .margin({ top: 8, bottom: 8 }) | 44 | .margin({ top: 8, bottom: 8 }) |
| 40 | .width('100%') | 45 | .width('100%') |
| 41 | 46 | ||
| 42 | 47 | ||
| 43 | - Image($r("app.media.setting")) | 48 | + Image(this.compDTO.operDataList[0].coverUrl) |
| 44 | .aspectRatio(1.5) | 49 | .aspectRatio(1.5) |
| 45 | .width('100%') | 50 | .width('100%') |
| 46 | .borderRadius(4) | 51 | .borderRadius(4) |
| @@ -73,5 +78,8 @@ export struct HorizontalStrokeCardThreeTwoRadioForOneComponent { | @@ -73,5 +78,8 @@ export struct HorizontalStrokeCardThreeTwoRadioForOneComponent { | ||
| 73 | }) | 78 | }) |
| 74 | } | 79 | } |
| 75 | 80 | ||
| 81 | + showMore() { | ||
| 82 | + return (!!this.compDTO.dataSourceType && this.compDTO.dataSourceType !== 'OBJECT_POS') || !(this.compDTO?.objectType === '0' || this.compDTO?.objectType === '') | ||
| 83 | + } | ||
| 76 | 84 | ||
| 77 | } | 85 | } |
-
Please register or login to post a comment