王士厅

fix: 断网,进入沉浸式播放鸿蒙默认缺省图背景颜色不正确

@@ -251,7 +251,11 @@ export struct EmptyComponent { @@ -251,7 +251,11 @@ export struct EmptyComponent {
251 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearchResult) { 251 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearchResult) {
252 imageString = $r('app.media.icon_no_result1') 252 imageString = $r('app.media.icon_no_result1')
253 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoNetwork) { 253 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoNetwork) {
  254 + if(this.isBlack) {
  255 + imageString = $r('app.media.icon_no_net')
  256 + } else {
254 imageString = $r('app.media.icon_no_net1') 257 imageString = $r('app.media.icon_no_net1')
  258 + }
255 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_ContentFailed) { 259 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_ContentFailed) {
256 imageString = $r('app.media.icon_no_content') 260 imageString = $r('app.media.icon_no_content')
257 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoCreation) { 261 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoCreation) {