wangliang_wd

feat:优化直播界面人民号名称展示,人民号主页-直播list展示

... ... @@ -71,6 +71,7 @@ export struct LiveFollowComponent {
//号主名称
Text(this.rmhInfo.rmhName)
.fontColor(Color.White)
.textOverflow({overflow:TextOverflow.Ellipsis})
.maxLines(1)
.fontWeight(500)
.fontSize('12fp')
... ...
... ... @@ -115,7 +115,8 @@ export struct RmhTitle {
build() {
Flex() {
Stack() {
Image(this.loadImg ? this.rmhInfo?.rmhHeadUrl : $r('app.media.comment_rmh_tag'))
Image(this.loadImg ? this.rmhInfo?.rmhHeadUrl : this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.comment_rmh_tag'))
.alt(this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.comment_rmh_tag'))
.width(36)
.height(36)
.borderRadius(50)
... ...
... ... @@ -198,11 +198,19 @@ export struct PeopleShipHomeArticleListComponent {
contentType: item.type
})
});
///直播没有评论
if (this.typeModel.type === 2){
this.articleListDTOChangeContentDTO(listData, [])
}else {
PageRepository.getContentInteract(params).then(res => {
this.articleListDTOChangeContentDTO(listData, res.data ?? [])
}).catch(() => {
this.articleListDTOChangeContentDTO(listData, [])
})
}
}
}
... ...