wangliang_wd

Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main

* 'main' of http://192.168.1.42/developOne/harmonyPool:
  fix: 18511 UI还原问题-【uat】地方精选卡,出版方名称超过一行没有省略显示
  fix: 18034 健康频道-时间轴专题_时间节点间距有的偏大有的的偏小
  fix: 18034 健康频道-时间轴专题_时间节点间距有的偏大有的的偏小
@@ -108,7 +108,7 @@ export struct Card9Component { @@ -108,7 +108,7 @@ export struct Card9Component {
108 // 时间线--后端返回三个, 108 // 时间线--后端返回三个,
109 Column() { 109 Column() {
110 ForEach(this.contentDTO.slideShows, (item: slideShows, index: number) => { 110 ForEach(this.contentDTO.slideShows, (item: slideShows, index: number) => {
111 - this.timelineItem(item, index) 111 + this.timelineItem(item, index, index === this.contentDTO.slideShows.length - 1)
112 }) 112 })
113 } 113 }
114 114
@@ -149,25 +149,41 @@ export struct Card9Component { @@ -149,25 +149,41 @@ export struct Card9Component {
149 } 149 }
150 150
151 @Builder 151 @Builder
152 - timelineItem(item: slideShows, index: number) { 152 + timelineItem(item: slideShows, index: number, isLastOne: boolean) {
153 Column() { 153 Column() {
154 Stack() { 154 Stack() {
155 - if (index < this.contentDTO.slideShows.length - 1) { 155 + if (index === 0) {
156 Divider() 156 Divider()
157 .vertical(true) 157 .vertical(true)
158 .color($r('app.color.color_EDEDED')) 158 .color($r('app.color.color_EDEDED'))
159 .strokeWidth(1) 159 .strokeWidth(1)
160 - .margin({ top: index > 0 ? 0 : 16, left: 4 })  
161 - }  
162 - if (index > 0 && index == this.contentDTO.slideShows.length - 1) { 160 + .margin({ top: 16, left: 4 })
  161 + .height(16)
  162 + } else {
163 Divider() 163 Divider()
164 .vertical(true) 164 .vertical(true)
165 .color($r('app.color.color_EDEDED')) 165 .color($r('app.color.color_EDEDED'))
166 .strokeWidth(1) 166 .strokeWidth(1)
  167 + .margin({ top: 0, left: 4 })
167 .height(16) 168 .height(16)
168 - .margin({ left: 4 }) 169 + if (!isLastOne)
  170 + {
  171 + Divider()
  172 + .vertical(true)
  173 + .color($r('app.color.color_EDEDED'))
  174 + .strokeWidth(1)
  175 + .margin({ top: 16, left: 4 })
  176 + .height(16)
  177 + }
169 } 178 }
170 179
  180 + // Divider()
  181 + // .vertical(true)
  182 + // .color($r('app.color.color_EDEDED'))
  183 + // .strokeWidth(1)
  184 + // .margin({ top: index > 0 ? 0 : 32, left: 4 })
  185 + // .height(16)
  186 +
171 Column() { 187 Column() {
172 Row() { 188 Row() {
173 // 标题 189 // 标题
@@ -195,21 +211,14 @@ export struct Card9Component { @@ -195,21 +211,14 @@ export struct Card9Component {
195 .maxLines(2) 211 .maxLines(2)
196 .textOverflow({ overflow: TextOverflow.Ellipsis }) 212 .textOverflow({ overflow: TextOverflow.Ellipsis })
197 .alignSelf(ItemAlign.Center) 213 .alignSelf(ItemAlign.Center)
198 - .margin({ left: 12 })  
199 - // .padding({bottom: 20})  
200 - // if (item.fullColumnImgUrls[0] && item.fullColumnImgUrls[0].url) {  
201 - // Image(this.loadImg? item.fullColumnImgUrls[0].url : '')  
202 - // .backgroundColor(0xf5f5f5)  
203 - // .width(90)  
204 - // .height(60)  
205 - // .borderRadius($r('app.float.image_border_radius'))  
206 - // } 214 + .margin({ left: 4 })
  215 + .padding({ bottom: 20, left: 12 })
  216 + .border({ width: { left: isLastOne ? 0 : 1 }, color: 0xededed})
207 } 217 }
208 } 218 }
209 } 219 }
210 .alignContent(Alignment.TopStart) 220 .alignContent(Alignment.TopStart)
211 } 221 }
212 - .height(item.fullColumnImgUrls[0] && item.fullColumnImgUrls[0].url ? 100 : 50)  
213 .alignItems(HorizontalAlign.Start) 222 .alignItems(HorizontalAlign.Start)
214 } 223 }
215 } 224 }
@@ -109,6 +109,7 @@ struct localCard { @@ -109,6 +109,7 @@ struct localCard {
109 .width('100%') 109 .width('100%')
110 .margin({ bottom: 6 }) 110 .margin({ bottom: 6 })
111 .flexShrink(0) 111 .flexShrink(0)
  112 + .maxLines(1)
112 113
113 Text(this.operDataListItem.newsTitle) 114 Text(this.operDataListItem.newsTitle)
114 .width(CommonConstants.FULL_PARENT) 115 .width(CommonConstants.FULL_PARENT)