陈剑华

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

... ... @@ -129,6 +129,10 @@ export struct RmhTitle {
return !(this.hideTime && this.getDaysBetweenDates(Number(this.publishTime)) > 2)
}
hasRightFollow() {
return this.rmhInfo?.cnIsAttention && this.rmhInfo?.userType != "5"
}
build() {
Flex() {
if (this.rmhInfo.userType != '5') {
... ... @@ -196,7 +200,7 @@ export struct RmhTitle {
.textAlign(TextAlign.Start)
.height(14)
.lineHeight(14)
.width('calc(100% - 65vp)')
.width(this.hasRightFollow() ? 'calc(100% - 65vp)' : '100%')
// .constraintSize({maxWidth:(DisplayUtils.getDeviceWidth() - 32 - 36 - 18 - this.getTextWidth(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime))))})
}
... ... @@ -211,7 +215,7 @@ export struct RmhTitle {
.width('100%')
Blank()
if (this.rmhInfo?.cnIsAttention && this.rmhInfo?.userType != "5") {
if (this.hasRightFollow()) {
Column() {
Row(){
if (Number(this.followStatus) === 0) {
... ...