wangliang_wd

feat:优化人民号动态卡图片展示

@@ -303,7 +303,7 @@ struct createImg { @@ -303,7 +303,7 @@ struct createImg {
303 .width('100%') 303 .width('100%')
304 .autoResize(true) 304 .autoResize(true)
305 .objectFit(ImageFit.Cover) 305 .objectFit(ImageFit.Cover)
306 - .height(this.compWidth * 3 / 4) 306 + .aspectRatio(3/4)
307 .borderRadius(this.caclImageRadius(index)) 307 .borderRadius(this.caclImageRadius(index))
308 .borderStyle(BorderStyle.Solid) 308 .borderStyle(BorderStyle.Solid)
309 .borderWidth(0.5) 309 .borderWidth(0.5)
@@ -339,7 +339,7 @@ struct createImg { @@ -339,7 +339,7 @@ struct createImg {
339 .width('100%') 339 .width('100%')
340 .height(this.getPicHeight(item.weight,item.height)) 340 .height(this.getPicHeight(item.weight,item.height))
341 // .constraintSize({ 341 // .constraintSize({
342 - // maxHeight: this.getPicHeight(this.onePicW,this.onePicH) 342 + // maxHeight: this.getPicHeight(item.weight,item.height)
343 // }) 343 // })
344 .autoResize(true) 344 .autoResize(true)
345 .borderRadius(this.caclImageRadius(index)) 345 .borderRadius(this.caclImageRadius(index))
@@ -257,9 +257,9 @@ struct Index { @@ -257,9 +257,9 @@ struct Index {
257 ) 257 )
258 .borderRadius(4) 258 .borderRadius(4)
259 .shadow({ 259 .shadow({
260 - radius: vp2px(5),  
261 - color: 'rgba(0, 0, 0, 0.10)',  
262 - offsetX: 0, 260 + radius: 2,
  261 + color: 'rgba(0, 0, 0, 0.30)',
  262 + offsetX: 1,
263 offsetY: 1 263 offsetY: 1
264 }) // 设 264 }) // 设
265 .backgroundColor(Color.White) 265 .backgroundColor(Color.White)