陈剑华

fix: 19531 【UI走查-卡片】折叠屏展开-人民号单图卡

... ... @@ -17,6 +17,7 @@ import { onlyWifiLoadImg } from '../../utils/lazyloadImg';
import { InfomationCardClick } from '../../utils/infomationCardClick'
import measure from '@ohos.measure'
import { PeopleShipHomePageDataModel } from '../../viewmodel/PeopleShipHomePageDataModel'
@Component
export struct RmhTitle {
@State compDTO: CompDTO = new CompDTO()
... ... @@ -200,7 +201,7 @@ export struct RmhTitle {
.textAlign(TextAlign.Start)
.height(14)
.lineHeight(14)
.width(this.hasRightFollow() ? 'calc(100% - 65vp)' : '100%')
.width('calc(100% - 65vp)')
// .constraintSize({maxWidth:(DisplayUtils.getDeviceWidth() - 32 - 36 - 18 - this.getTextWidth(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime))))})
}
... ... @@ -227,7 +228,8 @@ export struct RmhTitle {
Text(Number(this.followStatus) === 0 ? '关注' : '已关注')
.fontSize($r('app.float.font_size_13'))
.fontColor(Number(this.followStatus) === 0 ? $r('app.color.color_ED2800') : 0xc6c6c6)
}.margin({top:4})
}
.margin({top:4})
.height(36)
}
.flexShrink(0)
... ...
... ... @@ -87,7 +87,7 @@ export struct Card5Component {
})
Row() {
if (this.contentDTO.titleShow == 1 && this.contentDTO.newsTitle) {
if (this.compDTO.titleShow == 1 && this.contentDTO.newsTitle) {
Stack() {
if(this.contentDTO.objectType == '5'){
Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center)
... ...