王士厅
... ... @@ -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
... ...
... ... @@ -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 })
... ...