wangliang_wd

feat:优化文章缺省图展示

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