wangliang_wd

feat:优化文章缺省图展示

... ... @@ -245,6 +245,7 @@ export struct ImageAndTextPageComponent {
.justifyContent(FlexAlign.SpaceBetween)
.alignItems(VerticalAlign.Bottom)
if (this.isNetConnected && !this.detailContentEmpty) {
Row() {
Image($r('app.media.ic_news_detail_division'))
.width('100%')
... ... @@ -254,6 +255,7 @@ export struct ImageAndTextPageComponent {
}
.padding({ left: 15, right: 15 })
.backgroundColor(Color.White)
}
}.backgroundColor(Color.White)
}
.margin({top: `${this.topSafeHeight}px`, bottom: `${this.bottomSafeHeight}px`})
... ...
... ... @@ -251,11 +251,12 @@ export struct EmptyComponent {
} else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVideo) {
imageString = $r('app.media.icon_no_content')
} else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent1 ||
this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow ||
this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent2) {
this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) {
imageString = $r('app.media.icon_no_appointmentMade1')
}else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoUserHomepage){
imageString = $r('app.media.icon_no_master1')
}else if(this.emptyType === WDViewDefaultType.WDViewDefaultType_NoContent2){
imageString = $r('app.media.icon_no_content1')
}
return imageString
}
... ...
import { LiveRoomItemBean } from 'wdBean/Index'
import { LiveMessageRole } from 'wdBean/src/main/ets/bean/live/LiveRoomBean'
import { LengthMetrics } from '@kit.ArkUI'
// import { LengthMetrics } from '@kit.ArkUI'
@Component
export struct ChatItemComponent {
... ...