陈剑华

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

@@ -129,6 +129,10 @@ export struct RmhTitle { @@ -129,6 +129,10 @@ export struct RmhTitle {
129 return !(this.hideTime && this.getDaysBetweenDates(Number(this.publishTime)) > 2) 129 return !(this.hideTime && this.getDaysBetweenDates(Number(this.publishTime)) > 2)
130 } 130 }
131 131
  132 + hasRightFollow() {
  133 + return this.rmhInfo?.cnIsAttention && this.rmhInfo?.userType != "5"
  134 + }
  135 +
132 build() { 136 build() {
133 Flex() { 137 Flex() {
134 if (this.rmhInfo.userType != '5') { 138 if (this.rmhInfo.userType != '5') {
@@ -196,7 +200,7 @@ export struct RmhTitle { @@ -196,7 +200,7 @@ export struct RmhTitle {
196 .textAlign(TextAlign.Start) 200 .textAlign(TextAlign.Start)
197 .height(14) 201 .height(14)
198 .lineHeight(14) 202 .lineHeight(14)
199 - .width('calc(100% - 65vp)') 203 + .width(this.hasRightFollow() ? 'calc(100% - 65vp)' : '100%')
200 // .constraintSize({maxWidth:(DisplayUtils.getDeviceWidth() - 32 - 36 - 18 - this.getTextWidth(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime))))}) 204 // .constraintSize({maxWidth:(DisplayUtils.getDeviceWidth() - 32 - 36 - 18 - this.getTextWidth(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime))))})
201 } 205 }
202 206
@@ -211,7 +215,7 @@ export struct RmhTitle { @@ -211,7 +215,7 @@ export struct RmhTitle {
211 .width('100%') 215 .width('100%')
212 216
213 Blank() 217 Blank()
214 - if (this.rmhInfo?.cnIsAttention && this.rmhInfo?.userType != "5") { 218 + if (this.hasRightFollow()) {
215 Column() { 219 Column() {
216 Row(){ 220 Row(){
217 if (Number(this.followStatus) === 0) { 221 if (Number(this.followStatus) === 0) {