yumaochao

更改

@@ -37,8 +37,12 @@ export const enum WDViewDefaultType { @@ -37,8 +37,12 @@ export const enum WDViewDefaultType {
37 WDViewDefaultType_NoVisitAccount, 37 WDViewDefaultType_NoVisitAccount,
38 ///暂无关注 38 ///暂无关注
39 WDViewDefaultType_NoFollow, 39 WDViewDefaultType_NoFollow,
40 - ///搜索为空  
41 - WDViewDefaultType_NoSearch, 40 + ///直播结束
  41 + WDViewDefaultType_NoLiveEnd,
  42 + /// 直播暂停
  43 + WDViewDefaultType_NoLiveSuspend,
  44 + /// 视频加载失败
  45 + WDViewDefaultType_NoVideo,
42 } 46 }
43 47
44 /** 48 /**
@@ -122,8 +126,12 @@ export struct EmptyComponent { @@ -122,8 +126,12 @@ export struct EmptyComponent {
122 contentString = '' // 前方拥堵,请耐心等待 126 contentString = '' // 前方拥堵,请耐心等待
123 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVisitAccount) { 127 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVisitAccount) {
124 contentString = '该号主暂时无法访问' // 前方拥堵,请耐心等待 128 contentString = '该号主暂时无法访问' // 前方拥堵,请耐心等待
125 - }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearch) {  
126 - contentString = '没有找到相关内容' // 前方拥堵,请耐心等待 129 + }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoLiveEnd) {
  130 + contentString = '直播已结束' // 前方拥堵,请耐心等待
  131 + }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoLiveSuspend) {
  132 + contentString = '主播暂时离开,马上回来' // 前方拥堵,请耐心等待
  133 + }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVideo) {
  134 + contentString = '获取内容失败请重试' // 前方拥堵,请耐心等待
127 } 135 }
128 136
129 return contentString 137 return contentString
@@ -152,8 +160,10 @@ export struct EmptyComponent { @@ -152,8 +160,10 @@ export struct EmptyComponent {
152 imageString = $r('app.media.icon_no_net') 160 imageString = $r('app.media.icon_no_net')
153 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVisitAccount) { 161 } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVisitAccount) {
154 imageString = $r('app.media.icon_no_master1') 162 imageString = $r('app.media.icon_no_master1')
155 - }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearch) {  
156 - imageString = $r('app.media.icon_no_result1') 163 + }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoLiveEnd) {
  164 + imageString = $r('app.media.icon_no_end')
  165 + }else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoVideo) {
  166 + imageString = $r('app.media.icon_no_content')
157 } 167 }
158 return imageString 168 return imageString
159 } 169 }