Showing
3 changed files
with
15 additions
and
5 deletions
| @@ -71,6 +71,7 @@ export struct LiveFollowComponent { | @@ -71,6 +71,7 @@ export struct LiveFollowComponent { | ||
| 71 | //号主名称 | 71 | //号主名称 |
| 72 | Text(this.rmhInfo.rmhName) | 72 | Text(this.rmhInfo.rmhName) |
| 73 | .fontColor(Color.White) | 73 | .fontColor(Color.White) |
| 74 | + .textOverflow({overflow:TextOverflow.Ellipsis}) | ||
| 74 | .maxLines(1) | 75 | .maxLines(1) |
| 75 | .fontWeight(500) | 76 | .fontWeight(500) |
| 76 | .fontSize('12fp') | 77 | .fontSize('12fp') |
| @@ -115,7 +115,8 @@ export struct RmhTitle { | @@ -115,7 +115,8 @@ export struct RmhTitle { | ||
| 115 | build() { | 115 | build() { |
| 116 | Flex() { | 116 | Flex() { |
| 117 | Stack() { | 117 | Stack() { |
| 118 | - Image(this.loadImg ? this.rmhInfo?.rmhHeadUrl : $r('app.media.comment_rmh_tag')) | 118 | + Image(this.loadImg ? this.rmhInfo?.rmhHeadUrl : this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.comment_rmh_tag')) |
| 119 | + .alt(this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.comment_rmh_tag')) | ||
| 119 | .width(36) | 120 | .width(36) |
| 120 | .height(36) | 121 | .height(36) |
| 121 | .borderRadius(50) | 122 | .borderRadius(50) |
| @@ -198,11 +198,19 @@ export struct PeopleShipHomeArticleListComponent { | @@ -198,11 +198,19 @@ export struct PeopleShipHomeArticleListComponent { | ||
| 198 | contentType: item.type | 198 | contentType: item.type |
| 199 | }) | 199 | }) |
| 200 | }); | 200 | }); |
| 201 | - PageRepository.getContentInteract(params).then(res => { | ||
| 202 | - this.articleListDTOChangeContentDTO(listData, res.data ?? []) | ||
| 203 | - }).catch(() => { | 201 | + |
| 202 | + | ||
| 203 | + ///直播没有评论 | ||
| 204 | + if (this.typeModel.type === 2){ | ||
| 204 | this.articleListDTOChangeContentDTO(listData, []) | 205 | this.articleListDTOChangeContentDTO(listData, []) |
| 205 | - }) | 206 | + }else { |
| 207 | + PageRepository.getContentInteract(params).then(res => { | ||
| 208 | + this.articleListDTOChangeContentDTO(listData, res.data ?? []) | ||
| 209 | + }).catch(() => { | ||
| 210 | + this.articleListDTOChangeContentDTO(listData, []) | ||
| 211 | + }) | ||
| 212 | + } | ||
| 213 | + | ||
| 206 | 214 | ||
| 207 | } | 215 | } |
| 208 | } | 216 | } |
-
Please register or login to post a comment