wangliang_wd

feat:优化他人主页动态列表

... ... @@ -34,6 +34,7 @@ export struct CardParser {
@ObjectLink compDTO: CompDTO
pageShowTime: number = 0;
pageHideTime: number = 0;
isPeopleShipHome: boolean = false;
aboutToAppear(): void {
console.log('CardParser-', JSON.stringify(this.contentDTO))
... ... @@ -164,7 +165,8 @@ export struct CardParser {
contentDTO,
compDTO: this.compDTO,
pageId: this.pageId,
pageName: this.pageName
pageName: this.pageName,
isPeopleShipHome:this.isPeopleShipHome
})
} else if (contentDTO.appStyle === CompStyle.Card_21) {
Card21Component({
... ...
... ... @@ -25,6 +25,7 @@ export struct RmhTitle {
@Prop rmhInfo: RmhInfoDTO
@Prop publishTime: string | undefined
@State loadImg: boolean = false;
isPeopleShipHome: boolean = false;
/**
* 是否需要隐藏发布时间超过2天的时间展示,默认不隐藏
*/
... ... @@ -194,6 +195,8 @@ export struct RmhTitle {
.width(CommonConstants.FULL_WIDTH)
.margin({ bottom: 10 })
.onClick(()=>{
///个人主页 动态头像不能跳转
if (this.isPeopleShipHome) return
// 跳转号主
ProcessUtils.gotoPeopleShipHomePage( this.rmhInfo?.rmhId,this.rmhInfo?.banControl,this.rmhInfo?.cnMainControl,this.rmhInfo?.userId,this.rmhInfo?.userType)
... ...
... ... @@ -25,6 +25,7 @@ export struct Card20Component {
@State clicked: boolean = false;
@State titleMarked: boolean = false;
@State textArr: textItem[] = []
isPeopleShipHome: boolean = false;
aboutToAppear(): void {
this.titleInit();
... ... @@ -48,7 +49,8 @@ export struct Card20Component {
contentDTO: this.contentDTO,
compDTO: this.compDTO,
pageId: this.pageId,
pageName: this.pageName
pageName: this.pageName,
isPeopleShipHome:this.isPeopleShipHome
}
) // 标题
if (this.contentDTO.newsTitle) {
... ...
... ... @@ -535,7 +535,7 @@ export struct PaperSingleColumn999CardView {
}
if (this.item?.newsSummary) {
Text(this.item?.newsSummary)
.fontColor(this.isRead ? 0x848484 : '#222222')
.fontColor(this.isRead ? '#808080' : '#222222')
.fontSize(14)
.padding({ top: 10 })
.alignSelf(ItemAlign.Start)
... ...
... ... @@ -88,7 +88,7 @@ export struct PeopleShipHomeArticleListComponent {
ForEach(this.arr, (item: ContentDTO, index: number) => {
ListItem() {
Column() {
CardParser({compDTO:new CompDTO, contentDTO: item })
CardParser({compDTO:new CompDTO, contentDTO: item , isPeopleShipHome:true})
Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
}
}.width("100%")
... ...