Showing
1 changed file
with
6 additions
and
1 deletions
| @@ -41,6 +41,8 @@ export const enum WDViewDefaultType { | @@ -41,6 +41,8 @@ export const enum WDViewDefaultType { | ||
| 41 | WDViewDefaultType_NoVideo, | 41 | WDViewDefaultType_NoVideo, |
| 42 | /// 16.暂无内容1 | 42 | /// 16.暂无内容1 |
| 43 | WDViewDefaultType_NoContent1, | 43 | WDViewDefaultType_NoContent1, |
| 44 | + // 17. 暂无评论快来抢沙发 | ||
| 45 | + WDViewDefaultType_NoComment1 | ||
| 44 | } | 46 | } |
| 45 | 47 | ||
| 46 | /** | 48 | /** |
| @@ -210,6 +212,8 @@ export struct EmptyComponent { | @@ -210,6 +212,8 @@ export struct EmptyComponent { | ||
| 210 | contentString = '暂无内容' | 212 | contentString = '暂无内容' |
| 211 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) { | 213 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoFollow) { |
| 212 | contentString = '暂无关注' | 214 | contentString = '暂无关注' |
| 215 | + } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoComment1) { | ||
| 216 | + contentString = '暂无评论,快来抢沙发' | ||
| 213 | } | 217 | } |
| 214 | 218 | ||
| 215 | return contentString | 219 | return contentString |
| @@ -222,7 +226,7 @@ export struct EmptyComponent { | @@ -222,7 +226,7 @@ export struct EmptyComponent { | ||
| 222 | imageString = $r('app.media.icon_no_collection') | 226 | imageString = $r('app.media.icon_no_collection') |
| 223 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoMessage) { | 227 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoMessage) { |
| 224 | imageString = $r('app.media.icon_no_message') | 228 | imageString = $r('app.media.icon_no_message') |
| 225 | - } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoComment) { | 229 | + } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoComment || this.emptyType === WDViewDefaultType.WDViewDefaultType_NoComment1) { |
| 226 | imageString = $r('app.media.icon_no_comment') | 230 | imageString = $r('app.media.icon_no_comment') |
| 227 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearchResult) { | 231 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoSearchResult) { |
| 228 | imageString = $r('app.media.icon_no_result') | 232 | imageString = $r('app.media.icon_no_result') |
| @@ -254,3 +258,4 @@ export struct EmptyComponent { | @@ -254,3 +258,4 @@ export struct EmptyComponent { | ||
| 254 | } | 258 | } |
| 255 | } | 259 | } |
| 256 | } | 260 | } |
| 261 | + |
-
Please register or login to post a comment