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
yangchenggong1_wd
2024-09-25 15:43:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c3e6ca8ff1419338e2faa38656ce0878889f2520
c3e6ca8f
1 parent
faad4e0b
fix |> 20448 不能评论的稿件详情页面,最下方的推荐阅读,展示不完整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/RecommendList.ets
sight_harmony/features/wdComponent/src/main/ets/components/CardParser.ets
View file @
c3e6ca8
...
...
@@ -37,6 +37,7 @@ export struct CardParser {
pageShowTime: number = 0;
pageHideTime: number = 0;
isPeopleShipHome: boolean = false;
isNeedDivider:boolean = true
aboutToAppear(): void {
console.log('CardParser-', JSON.stringify(this.contentDTO))
...
...
@@ -66,11 +67,13 @@ export struct CardParser {
@Builder
getBehindDivider() {
behindDivider({
compDTO: this.compDTO,
nextCompDTO: this.nextCompDTO,
compIndex: this.compIndex
})
if(this.isNeedDivider){
behindDivider({
compDTO: this.compDTO,
nextCompDTO: this.nextCompDTO,
compIndex: this.compIndex
})
}
}
@Builder
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/RecommendList.ets
View file @
c3e6ca8
...
...
@@ -29,7 +29,7 @@ export struct RecommendList {
}
ForEach(this.recommendList, (item: ContentDTO, index: number) => {
Row() {
CardParser({ compDTO:new CompDTO,contentDTO: item });
CardParser({ compDTO:new CompDTO,contentDTO: item
,isNeedDivider:false
});
}.padding({ left: 6, right: 6 })
if (this.recommendList.length !== index + 1) {
Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
...
...
Please
register
or
login
to post a comment