fanmingyou3_wd

修改早晚报

... ... @@ -37,13 +37,7 @@ export struct MorningEveningPaperComponent {
}
build() {
Column() {
PaperTitleComponent({
title: this.morningEveningPaperDTO?.topicInfo?.title ?? "",
// subtitle: this.morningEveningPaperDTO?.topicInfo?.topicDate ?? ''
subtitle: this.subTitle
})
Stack({ alignContent: Alignment.Top }) {
List() {
ListItem() {
topicInfoView({ frontLinkObject: this.morningEveningPaperDTO?.topicInfo?.frontLinkObject })
... ... @@ -56,24 +50,21 @@ export struct MorningEveningPaperComponent {
ListItem() {
SingleColumn999Component()
}
// ListItem() {
// Text("已显示全部内容")
// .width("100%")
// .height(100)
// .padding(9)
// .fontColor(Color.White)
// .fontSize($r('app.float.font_size_16'))
// .fontWeight(FontWeight.Medium)
// .textAlign(TextAlign.Center)
// .align(Alignment.Bottom)
// .maxLines(1)
// .textOverflow({ overflow: TextOverflow.Ellipsis })
// }
}
// .backgroundColor('#FFF1F3F5')
// .backgroundColor(Color.Blue)
.height('100%')
.margin({ left: 14, right: 14 })
}.width('100%')
PaperTitleComponent({
title: this.morningEveningPaperDTO?.topicInfo?.title ?? "",
// subtitle: this.morningEveningPaperDTO?.topicInfo?.topicDate ?? ''
subtitle: this.subTitle
})
.margin({ left: 14, right: 14 })
}
.width('100%')
// .backgroundColor('#000080')
.backgroundColor(Color.Black)
}
}
\ No newline at end of file
... ...
... ... @@ -70,7 +70,7 @@ export struct PaperTitleComponent {
center: { anchor: "__container__", align: VerticalAlign.Center } })
.id('img_share')
}
.margin({ left: 14, right: 14 })
// .margin({ left: 14, right: 14 })
.height($r('app.float.top_bar_height'))
.backgroundColor(Color.Black)
}
... ...
... ... @@ -108,21 +108,32 @@ export struct SingleColumn999Component {
build() {
if (this.compDTO && this.compDTO?.operDataList?.length > 0) {
List({ space: 2, initialIndex: 0 }) {
ListItemGroup({
// footer: this.itemFooter("")
}) {
// ListItemGroup({
// // footer: this.itemFooter("")
// }) {
ForEach(this.compDTO?.operDataList, (item: ContentDTO, index: number) => {
ListItem() {
this.buildPaperItem(item, index)
}
}, (item: ContentDTO, index: number) => JSON.stringify(item))
}
// }
// .divider({ strokeWidth: 1, color: '#EFEFEF' }) // 每行之间的分界线
ListItem() {
Text("已显示全部内容")
.width("100%")// .height(100)
.padding(9)
.fontColor(Color.White)
.fontSize($r('app.float.font_size_16'))
.fontWeight(FontWeight.Medium)
.textAlign(TextAlign.Center)
.align(Alignment.Bottom)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
}
}
.width('100%')
.height("100%") // 必须设置height
// .margin({ left: $r('app.float.main_margin'), right: $r('app.float.main_margin') })
// .margin({ left: 14, right: 14 })
// .listDirection(Axis.Vertical) // 默认值:Axis.Vertical
// .lanes(this.buildLanes()) // 行/列数,一列 // 默认值:1
.cachedCount(2)
... ...
... ... @@ -442,6 +442,7 @@ export struct PaperSingleColumn999CardView {
.justifyContent(FlexAlign.SpaceBetween)
}
}
.backgroundColor(Color.White)
.margin({ bottom: 5 })
}
}
\ No newline at end of file
... ...