Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-07-02 16:07:03 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ac45d29bbe818e4cc0433337eb02d76a50d22971
ac45d29b
1 parent
872b4aad
feat:优化他人主页动态列表
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card20Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomeArticleListComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
View file @
ac45d29
...
...
@@ -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({
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
View file @
ac45d29
...
...
@@ -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)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card20Component.ets
View file @
ac45d29
...
...
@@ -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) {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
View file @
ac45d29
...
...
@@ -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)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomeArticleListComponent.ets
View file @
ac45d29
...
...
@@ -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%")
...
...
Please
register
or
login
to post a comment