Showing
1 changed file
with
6 additions
and
2 deletions
| 1 | -import { Logger} from 'wdKit' | 1 | +import { Logger, ToastUtils} from 'wdKit' |
| 2 | import { PeopleShipHomePageDataModel } from '../../viewmodel/PeopleShipHomePageDataModel' | 2 | import { PeopleShipHomePageDataModel } from '../../viewmodel/PeopleShipHomePageDataModel' |
| 3 | import { | 3 | import { |
| 4 | ContentDTO, | 4 | ContentDTO, |
| @@ -49,7 +49,10 @@ export struct PeopleShipHomeArticleListComponent { | @@ -49,7 +49,10 @@ export struct PeopleShipHomeArticleListComponent { | ||
| 49 | // LoadingComponent() | 49 | // LoadingComponent() |
| 50 | this.LoadingLayout() | 50 | this.LoadingLayout() |
| 51 | } else if (this.viewType == 2) { | 51 | } else if (this.viewType == 2) { |
| 52 | - ErrorComponent() | 52 | + Column(){ |
| 53 | + EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoCreation}).height('40%') | ||
| 54 | + }.width('100%') | ||
| 55 | + .height('100%') | ||
| 53 | }else if(this.viewType == 4){ | 56 | }else if(this.viewType == 4){ |
| 54 | Column(){ | 57 | Column(){ |
| 55 | EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoCreation}).height('40%') | 58 | EmptyComponent({emptyType:WDViewDefaultType.WDViewDefaultType_NoCreation}).height('40%') |
| @@ -201,6 +204,7 @@ export struct PeopleShipHomeArticleListComponent { | @@ -201,6 +204,7 @@ export struct PeopleShipHomeArticleListComponent { | ||
| 201 | this.isLoading = false | 204 | this.isLoading = false |
| 202 | if (this.arr.length == 0) { | 205 | if (this.arr.length == 0) { |
| 203 | this.viewType = 2 | 206 | this.viewType = 2 |
| 207 | + ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000) | ||
| 204 | } | 208 | } |
| 205 | } | 209 | } |
| 206 | } | 210 | } |
-
Please register or login to post a comment