Showing
5 changed files
with
11 additions
and
4 deletions
| @@ -34,6 +34,7 @@ export struct CardParser { | @@ -34,6 +34,7 @@ export struct CardParser { | ||
| 34 | @ObjectLink compDTO: CompDTO | 34 | @ObjectLink compDTO: CompDTO |
| 35 | pageShowTime: number = 0; | 35 | pageShowTime: number = 0; |
| 36 | pageHideTime: number = 0; | 36 | pageHideTime: number = 0; |
| 37 | + isPeopleShipHome: boolean = false; | ||
| 37 | 38 | ||
| 38 | aboutToAppear(): void { | 39 | aboutToAppear(): void { |
| 39 | console.log('CardParser-', JSON.stringify(this.contentDTO)) | 40 | console.log('CardParser-', JSON.stringify(this.contentDTO)) |
| @@ -164,7 +165,8 @@ export struct CardParser { | @@ -164,7 +165,8 @@ export struct CardParser { | ||
| 164 | contentDTO, | 165 | contentDTO, |
| 165 | compDTO: this.compDTO, | 166 | compDTO: this.compDTO, |
| 166 | pageId: this.pageId, | 167 | pageId: this.pageId, |
| 167 | - pageName: this.pageName | 168 | + pageName: this.pageName, |
| 169 | + isPeopleShipHome:this.isPeopleShipHome | ||
| 168 | }) | 170 | }) |
| 169 | } else if (contentDTO.appStyle === CompStyle.Card_21) { | 171 | } else if (contentDTO.appStyle === CompStyle.Card_21) { |
| 170 | Card21Component({ | 172 | Card21Component({ |
| @@ -25,6 +25,7 @@ export struct RmhTitle { | @@ -25,6 +25,7 @@ export struct RmhTitle { | ||
| 25 | @Prop rmhInfo: RmhInfoDTO | 25 | @Prop rmhInfo: RmhInfoDTO |
| 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 | /** | 29 | /** |
| 29 | * 是否需要隐藏发布时间超过2天的时间展示,默认不隐藏 | 30 | * 是否需要隐藏发布时间超过2天的时间展示,默认不隐藏 |
| 30 | */ | 31 | */ |
| @@ -194,6 +195,8 @@ export struct RmhTitle { | @@ -194,6 +195,8 @@ export struct RmhTitle { | ||
| 194 | .width(CommonConstants.FULL_WIDTH) | 195 | .width(CommonConstants.FULL_WIDTH) |
| 195 | .margin({ bottom: 10 }) | 196 | .margin({ bottom: 10 }) |
| 196 | .onClick(()=>{ | 197 | .onClick(()=>{ |
| 198 | + ///个人主页 动态头像不能跳转 | ||
| 199 | + if (this.isPeopleShipHome) return | ||
| 197 | 200 | ||
| 198 | // 跳转号主 | 201 | // 跳转号主 |
| 199 | ProcessUtils.gotoPeopleShipHomePage( this.rmhInfo?.rmhId,this.rmhInfo?.banControl,this.rmhInfo?.cnMainControl,this.rmhInfo?.userId,this.rmhInfo?.userType) | 202 | ProcessUtils.gotoPeopleShipHomePage( this.rmhInfo?.rmhId,this.rmhInfo?.banControl,this.rmhInfo?.cnMainControl,this.rmhInfo?.userId,this.rmhInfo?.userType) |
| @@ -25,6 +25,7 @@ export struct Card20Component { | @@ -25,6 +25,7 @@ export struct Card20Component { | ||
| 25 | @State clicked: boolean = false; | 25 | @State clicked: boolean = false; |
| 26 | @State titleMarked: boolean = false; | 26 | @State titleMarked: boolean = false; |
| 27 | @State textArr: textItem[] = [] | 27 | @State textArr: textItem[] = [] |
| 28 | + isPeopleShipHome: boolean = false; | ||
| 28 | 29 | ||
| 29 | aboutToAppear(): void { | 30 | aboutToAppear(): void { |
| 30 | this.titleInit(); | 31 | this.titleInit(); |
| @@ -48,7 +49,8 @@ export struct Card20Component { | @@ -48,7 +49,8 @@ export struct Card20Component { | ||
| 48 | contentDTO: this.contentDTO, | 49 | contentDTO: this.contentDTO, |
| 49 | compDTO: this.compDTO, | 50 | compDTO: this.compDTO, |
| 50 | pageId: this.pageId, | 51 | pageId: this.pageId, |
| 51 | - pageName: this.pageName | 52 | + pageName: this.pageName, |
| 53 | + isPeopleShipHome:this.isPeopleShipHome | ||
| 52 | } | 54 | } |
| 53 | ) // 标题 | 55 | ) // 标题 |
| 54 | if (this.contentDTO.newsTitle) { | 56 | if (this.contentDTO.newsTitle) { |
| @@ -535,7 +535,7 @@ export struct PaperSingleColumn999CardView { | @@ -535,7 +535,7 @@ export struct PaperSingleColumn999CardView { | ||
| 535 | } | 535 | } |
| 536 | if (this.item?.newsSummary) { | 536 | if (this.item?.newsSummary) { |
| 537 | Text(this.item?.newsSummary) | 537 | Text(this.item?.newsSummary) |
| 538 | - .fontColor(this.isRead ? 0x848484 : '#222222') | 538 | + .fontColor(this.isRead ? '#808080' : '#222222') |
| 539 | .fontSize(14) | 539 | .fontSize(14) |
| 540 | .padding({ top: 10 }) | 540 | .padding({ top: 10 }) |
| 541 | .alignSelf(ItemAlign.Start) | 541 | .alignSelf(ItemAlign.Start) |
| @@ -88,7 +88,7 @@ export struct PeopleShipHomeArticleListComponent { | @@ -88,7 +88,7 @@ export struct PeopleShipHomeArticleListComponent { | ||
| 88 | ForEach(this.arr, (item: ContentDTO, index: number) => { | 88 | ForEach(this.arr, (item: ContentDTO, index: number) => { |
| 89 | ListItem() { | 89 | ListItem() { |
| 90 | Column() { | 90 | Column() { |
| 91 | - CardParser({compDTO:new CompDTO, contentDTO: item }) | 91 | + CardParser({compDTO:new CompDTO, contentDTO: item , isPeopleShipHome:true}) |
| 92 | Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) | 92 | Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) |
| 93 | } | 93 | } |
| 94 | }.width("100%") | 94 | }.width("100%") |
-
Please register or login to post a comment