Showing
2 changed files
with
5 additions
and
3 deletions
| @@ -17,6 +17,7 @@ import { onlyWifiLoadImg } from '../../utils/lazyloadImg'; | @@ -17,6 +17,7 @@ import { onlyWifiLoadImg } from '../../utils/lazyloadImg'; | ||
| 17 | import { InfomationCardClick } from '../../utils/infomationCardClick' | 17 | import { InfomationCardClick } from '../../utils/infomationCardClick' |
| 18 | import measure from '@ohos.measure' | 18 | import measure from '@ohos.measure' |
| 19 | import { PeopleShipHomePageDataModel } from '../../viewmodel/PeopleShipHomePageDataModel' | 19 | import { PeopleShipHomePageDataModel } from '../../viewmodel/PeopleShipHomePageDataModel' |
| 20 | + | ||
| 20 | @Component | 21 | @Component |
| 21 | export struct RmhTitle { | 22 | export struct RmhTitle { |
| 22 | @State compDTO: CompDTO = new CompDTO() | 23 | @State compDTO: CompDTO = new CompDTO() |
| @@ -200,7 +201,7 @@ export struct RmhTitle { | @@ -200,7 +201,7 @@ export struct RmhTitle { | ||
| 200 | .textAlign(TextAlign.Start) | 201 | .textAlign(TextAlign.Start) |
| 201 | .height(14) | 202 | .height(14) |
| 202 | .lineHeight(14) | 203 | .lineHeight(14) |
| 203 | - .width(this.hasRightFollow() ? 'calc(100% - 65vp)' : '100%') | 204 | + .width('calc(100% - 65vp)') |
| 204 | // .constraintSize({maxWidth:(DisplayUtils.getDeviceWidth() - 32 - 36 - 18 - this.getTextWidth(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime))))}) | 205 | // .constraintSize({maxWidth:(DisplayUtils.getDeviceWidth() - 32 - 36 - 18 - this.getTextWidth(DateTimeUtils.getCommentTime(Number.parseFloat(this.publishTime))))}) |
| 205 | } | 206 | } |
| 206 | 207 | ||
| @@ -227,7 +228,8 @@ export struct RmhTitle { | @@ -227,7 +228,8 @@ export struct RmhTitle { | ||
| 227 | Text(Number(this.followStatus) === 0 ? '关注' : '已关注') | 228 | Text(Number(this.followStatus) === 0 ? '关注' : '已关注') |
| 228 | .fontSize($r('app.float.font_size_13')) | 229 | .fontSize($r('app.float.font_size_13')) |
| 229 | .fontColor(Number(this.followStatus) === 0 ? $r('app.color.color_ED2800') : 0xc6c6c6) | 230 | .fontColor(Number(this.followStatus) === 0 ? $r('app.color.color_ED2800') : 0xc6c6c6) |
| 230 | - }.margin({top:4}) | 231 | + } |
| 232 | + .margin({top:4}) | ||
| 231 | .height(36) | 233 | .height(36) |
| 232 | } | 234 | } |
| 233 | .flexShrink(0) | 235 | .flexShrink(0) |
| @@ -87,7 +87,7 @@ export struct Card5Component { | @@ -87,7 +87,7 @@ export struct Card5Component { | ||
| 87 | }) | 87 | }) |
| 88 | 88 | ||
| 89 | Row() { | 89 | Row() { |
| 90 | - if (this.contentDTO.titleShow == 1 && this.contentDTO.newsTitle) { | 90 | + if (this.compDTO.titleShow == 1 && this.contentDTO.newsTitle) { |
| 91 | Stack() { | 91 | Stack() { |
| 92 | if(this.contentDTO.objectType == '5'){ | 92 | if(this.contentDTO.objectType == '5'){ |
| 93 | Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center) | 93 | Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center) |
-
Please register or login to post a comment