王士厅

fix: 时间链卡ui修改

@@ -94,7 +94,7 @@ export struct Card9Component { @@ -94,7 +94,7 @@ export struct Card9Component {
94 .fontSize($r('app.float.font_size_18')) 94 .fontSize($r('app.float.font_size_18'))
95 .maxLines(2) 95 .maxLines(2)
96 .textOverflow({ overflow: TextOverflow.Ellipsis }) 96 .textOverflow({ overflow: TextOverflow.Ellipsis })
97 - .margin({ top: 10, bottom: 10 }) 97 + .margin({ bottom: 14 })
98 .fontWeight(400) 98 .fontWeight(400)
99 } 99 }
100 // 大图 100 // 大图
@@ -104,21 +104,21 @@ export struct Card9Component { @@ -104,21 +104,21 @@ export struct Card9Component {
104 .width('100%') 104 .width('100%')
105 .height(133) 105 .height(133)
106 .borderRadius({ 106 .borderRadius({
107 - topLeft: $r('app.float.image_border_radius'),  
108 - topRight: $r('app.float.image_border_radius') 107 + topLeft: 4,
  108 + topRight: 4
109 }) 109 })
110 if(this.contentDTO.objectType == '5'){ 110 if(this.contentDTO.objectType == '5'){
111 Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center) 111 Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center)
112 - .margin({ left: 5, bottom: 5 }) 112 + .margin({ left: 8, bottom: 8 })
113 } else { 113 } else {
114 if (this.contentDTO.seoTags) { 114 if (this.contentDTO.seoTags) {
115 - Notes({ newTags: this.contentDTO.seoTags }).height(20).align(Alignment.Center) 115 + Notes({ newTags: this.contentDTO.seoTags }).height(20).align(Alignment.Center).margin({ left: 8, bottom: 8 })
116 } 116 }
117 if (this.contentDTO.newTags) { 117 if (this.contentDTO.newTags) {
118 - Notes({ newTags: this.contentDTO.newTags }).height(20).align(Alignment.Center) 118 + Notes({ newTags: this.contentDTO.newTags }).height(20).align(Alignment.Center).margin({ left: 8, bottom: 8 })
119 } 119 }
120 if (this.contentDTO.top === 1) { 120 if (this.contentDTO.top === 1) {
121 - Notes({ newTags: '置顶' }).height(20).align(Alignment.Center) 121 + Notes({ newTags: '置顶' }).height(20).align(Alignment.Center).margin({ left: 8, bottom: 8 })
122 } 122 }
123 } 123 }
124 124
@@ -131,6 +131,9 @@ export struct Card9Component { @@ -131,6 +131,9 @@ export struct Card9Component {
131 this.timelineItem(item, index, index === this.contentDTO.slideShows.length - 1) 131 this.timelineItem(item, index, index === this.contentDTO.slideShows.length - 1)
132 }) 132 })
133 } 133 }
  134 + .margin({
  135 + top: 14
  136 + })
134 } 137 }
135 138
136 // 底部-查看更多。根据接口返回的isMore判断是否显示查看更多 139 // 底部-查看更多。根据接口返回的isMore判断是否显示查看更多
@@ -149,18 +152,16 @@ export struct Card9Component { @@ -149,18 +152,16 @@ export struct Card9Component {
149 .height(40) 152 .height(40)
150 .borderRadius($r('app.float.button_border_radius')) 153 .borderRadius($r('app.float.button_border_radius'))
151 .justifyContent(FlexAlign.Center) 154 .justifyContent(FlexAlign.Center)
152 - .margin({ top: 5 })  
153 } 155 }
154 } 156 }
155 .width(CommonConstants.FULL_WIDTH) 157 .width(CommonConstants.FULL_WIDTH)
156 .padding({ 158 .padding({
157 - top: 5, 159 + top: 14,
158 left: 16, 160 left: 16,
159 right: 16, 161 right: 16,
160 bottom: 14 162 bottom: 14
161 }) 163 })
162 .backgroundColor($r("app.color.white")) 164 .backgroundColor($r("app.color.white"))
163 - .margin({ bottom: 8 })  
164 .onClick((event: ClickEvent) => { 165 .onClick((event: ClickEvent) => {
165 InfomationCardClick.track(this.compDTO, this.contentDTO, this.pageId, this.pageName) 166 InfomationCardClick.track(this.compDTO, this.contentDTO, this.pageId, this.pageName)
166 if (router.getState().name !== 'MyCollectionListPage') { 167 if (router.getState().name !== 'MyCollectionListPage') {
@@ -213,7 +214,7 @@ export struct Card9Component { @@ -213,7 +214,7 @@ export struct Card9Component {
213 Image($r("app.media.timeAxis")) 214 Image($r("app.media.timeAxis"))
214 .width(9) 215 .width(9)
215 .height(6) 216 .height(6)
216 - .margin({ right: 5 }) 217 + .margin({ right: 6 })
217 .fillColor(item.newsTitleColor) 218 .fillColor(item.newsTitleColor)
218 219
219 Text(this.formatTime(item.publishTime)) 220 Text(this.formatTime(item.publishTime))
@@ -224,19 +225,19 @@ export struct Card9Component { @@ -224,19 +225,19 @@ export struct Card9Component {
224 .width(CommonConstants.FULL_WIDTH) 225 .width(CommonConstants.FULL_WIDTH)
225 .height(32) 226 .height(32)
226 .alignItems(VerticalAlign.Center) 227 .alignItems(VerticalAlign.Center)
227 -  
228 Row() { 228 Row() {
229 Text(item.newsTitle) 229 Text(item.newsTitle)
230 - .fontSize($r('app.float.font_size_17')) 230 + .fontSize(18)
  231 + .lineHeight(25)
231 .fontWeight(400) 232 .fontWeight(400)
232 .fontColor($r('app.color.color_222222')) 233 .fontColor($r('app.color.color_222222'))
233 .layoutWeight(1) 234 .layoutWeight(1)
234 .maxLines(2) 235 .maxLines(2)
235 .textOverflow({ overflow: TextOverflow.Ellipsis }) 236 .textOverflow({ overflow: TextOverflow.Ellipsis })
236 - .alignSelf(ItemAlign.Center)  
237 - .margin({ left: 4 })  
238 - .padding({ bottom: 20, left: 12 }) 237 + .alignSelf(ItemAlign.Start)
  238 + .padding({ bottom: 20, left: 10 })
239 .border({ width: { left: isLastOne ? 0 : 1 }, color: 0xededed}) 239 .border({ width: { left: isLastOne ? 0 : 1 }, color: 0xededed})
  240 + .margin({ left: 4 })
240 } 241 }
241 } 242 }
242 } 243 }