fanmingyou3_wd

修改早晚报

@@ -37,13 +37,7 @@ export struct MorningEveningPaperComponent { @@ -37,13 +37,7 @@ export struct MorningEveningPaperComponent {
37 } 37 }
38 38
39 build() { 39 build() {
40 - Column() {  
41 - PaperTitleComponent({  
42 - title: this.morningEveningPaperDTO?.topicInfo?.title ?? "",  
43 - // subtitle: this.morningEveningPaperDTO?.topicInfo?.topicDate ?? ''  
44 - subtitle: this.subTitle  
45 - })  
46 - 40 + Stack({ alignContent: Alignment.Top }) {
47 List() { 41 List() {
48 ListItem() { 42 ListItem() {
49 topicInfoView({ frontLinkObject: this.morningEveningPaperDTO?.topicInfo?.frontLinkObject }) 43 topicInfoView({ frontLinkObject: this.morningEveningPaperDTO?.topicInfo?.frontLinkObject })
@@ -56,24 +50,21 @@ export struct MorningEveningPaperComponent { @@ -56,24 +50,21 @@ export struct MorningEveningPaperComponent {
56 ListItem() { 50 ListItem() {
57 SingleColumn999Component() 51 SingleColumn999Component()
58 } 52 }
59 -  
60 - // ListItem() {  
61 - // Text("已显示全部内容")  
62 - // .width("100%")  
63 - // .height(100)  
64 - // .padding(9)  
65 - // .fontColor(Color.White)  
66 - // .fontSize($r('app.float.font_size_16'))  
67 - // .fontWeight(FontWeight.Medium)  
68 - // .textAlign(TextAlign.Center)  
69 - // .align(Alignment.Bottom)  
70 - // .maxLines(1)  
71 - // .textOverflow({ overflow: TextOverflow.Ellipsis })  
72 - // }  
73 } 53 }
74 // .backgroundColor('#FFF1F3F5') 54 // .backgroundColor('#FFF1F3F5')
75 // .backgroundColor(Color.Blue) 55 // .backgroundColor(Color.Blue)
  56 + .height('100%')
76 .margin({ left: 14, right: 14 }) 57 .margin({ left: 14, right: 14 })
77 - }.width('100%') 58 +
  59 + PaperTitleComponent({
  60 + title: this.morningEveningPaperDTO?.topicInfo?.title ?? "",
  61 + // subtitle: this.morningEveningPaperDTO?.topicInfo?.topicDate ?? ''
  62 + subtitle: this.subTitle
  63 + })
  64 + .margin({ left: 14, right: 14 })
  65 + }
  66 + .width('100%')
  67 + // .backgroundColor('#000080')
  68 + .backgroundColor(Color.Black)
78 } 69 }
79 } 70 }
@@ -70,7 +70,7 @@ export struct PaperTitleComponent { @@ -70,7 +70,7 @@ export struct PaperTitleComponent {
70 center: { anchor: "__container__", align: VerticalAlign.Center } }) 70 center: { anchor: "__container__", align: VerticalAlign.Center } })
71 .id('img_share') 71 .id('img_share')
72 } 72 }
73 - .margin({ left: 14, right: 14 }) 73 + // .margin({ left: 14, right: 14 })
74 .height($r('app.float.top_bar_height')) 74 .height($r('app.float.top_bar_height'))
75 .backgroundColor(Color.Black) 75 .backgroundColor(Color.Black)
76 } 76 }
@@ -108,21 +108,32 @@ export struct SingleColumn999Component { @@ -108,21 +108,32 @@ export struct SingleColumn999Component {
108 build() { 108 build() {
109 if (this.compDTO && this.compDTO?.operDataList?.length > 0) { 109 if (this.compDTO && this.compDTO?.operDataList?.length > 0) {
110 List({ space: 2, initialIndex: 0 }) { 110 List({ space: 2, initialIndex: 0 }) {
111 - ListItemGroup({  
112 - // footer: this.itemFooter("")  
113 - }) { 111 + // ListItemGroup({
  112 + // // footer: this.itemFooter("")
  113 + // }) {
114 ForEach(this.compDTO?.operDataList, (item: ContentDTO, index: number) => { 114 ForEach(this.compDTO?.operDataList, (item: ContentDTO, index: number) => {
115 ListItem() { 115 ListItem() {
116 this.buildPaperItem(item, index) 116 this.buildPaperItem(item, index)
117 } 117 }
118 }, (item: ContentDTO, index: number) => JSON.stringify(item)) 118 }, (item: ContentDTO, index: number) => JSON.stringify(item))
119 - }  
120 - 119 + // }
121 // .divider({ strokeWidth: 1, color: '#EFEFEF' }) // 每行之间的分界线 120 // .divider({ strokeWidth: 1, color: '#EFEFEF' }) // 每行之间的分界线
  121 +
  122 + ListItem() {
  123 + Text("已显示全部内容")
  124 + .width("100%")// .height(100)
  125 + .padding(9)
  126 + .fontColor(Color.White)
  127 + .fontSize($r('app.float.font_size_16'))
  128 + .fontWeight(FontWeight.Medium)
  129 + .textAlign(TextAlign.Center)
  130 + .align(Alignment.Bottom)
  131 + .maxLines(1)
  132 + .textOverflow({ overflow: TextOverflow.Ellipsis })
  133 + }
122 } 134 }
123 - .width('100%')  
124 .height("100%") // 必须设置height 135 .height("100%") // 必须设置height
125 - // .margin({ left: $r('app.float.main_margin'), right: $r('app.float.main_margin') }) 136 + // .margin({ left: 14, right: 14 })
126 // .listDirection(Axis.Vertical) // 默认值:Axis.Vertical 137 // .listDirection(Axis.Vertical) // 默认值:Axis.Vertical
127 // .lanes(this.buildLanes()) // 行/列数,一列 // 默认值:1 138 // .lanes(this.buildLanes()) // 行/列数,一列 // 默认值:1
128 .cachedCount(2) 139 .cachedCount(2)
@@ -442,6 +442,7 @@ export struct PaperSingleColumn999CardView { @@ -442,6 +442,7 @@ export struct PaperSingleColumn999CardView {
442 .justifyContent(FlexAlign.SpaceBetween) 442 .justifyContent(FlexAlign.SpaceBetween)
443 } 443 }
444 } 444 }
  445 + .backgroundColor(Color.White)
445 .margin({ bottom: 5 }) 446 .margin({ bottom: 5 })
446 } 447 }
447 } 448 }