王士厅
... ... @@ -130,9 +130,17 @@ export struct RmhTitle {
build() {
Flex() {
if (this.rmhInfo.userType != '5') {
Stack() {
Image(this.loadImg ? this.rmhInfo?.rmhHeadUrl : this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
.alt(this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
Image(
this.loadImg
? this.rmhInfo?.rmhHeadUrl
: this.rmhInfo.userType == '1'
? $r('app.media.default_head_userPage')
: $r('app.media.AccountOwner_DefaultIcon'))
.alt(
this.rmhInfo.userType == '1'?$r('app.media.default_head_userPage'):
$r('app.media.AccountOwner_DefaultIcon'))
.width(36)
.height(36)
.borderRadius(18)
... ... @@ -149,6 +157,7 @@ export struct RmhTitle {
.margin({ right: 8 })
.alignContent(Alignment.BottomEnd)
.flexShrink(0)
}
Column() {
Text(this.rmhInfo?.rmhName)
... ...