yumaochao

fix:somebug

... ... @@ -130,7 +130,7 @@ export struct CardMediaInfo {
Image($r('app.media.card_image'))
.mediaLogo()
Text(`${this.contentDTO.photoNum}`)
.mediaText()
.mediaTextImgtype()
}
.margin({ left: 80,top: 55})
... ... @@ -185,3 +185,14 @@ function mediaText() {
offsetY: 2
})
}
@Extend(Text)
function mediaTextImgtype() {
.fontColor($r('app.color.color_fff'))
.fontSize($r('app.float.font_size_13'))
.lineHeight(18)
.textShadow({
radius: 2,
color: 'rgba(0,0,0,0.3)',
offsetY: 2
})
}
... ...