Showing
3 changed files
with
6 additions
and
3 deletions
| @@ -19,7 +19,7 @@ export struct FollowChildComponent{ | @@ -19,7 +19,7 @@ export struct FollowChildComponent{ | ||
| 19 | Row() { | 19 | Row() { |
| 20 | Row(){ | 20 | Row(){ |
| 21 | Stack({alignContent: Alignment.Bottom}){ | 21 | Stack({alignContent: Alignment.Bottom}){ |
| 22 | - Image(StringUtils.isEmpty(this.data.headPhotoUrl)?$r('app.media.default_head'):this.data.headPhotoUrl) | 22 | + Image(StringUtils.isEmpty(this.data.headPhotoUrl)?$r('app.media.icon_default_head_mater'):this.data.headPhotoUrl) |
| 23 | .objectFit(ImageFit.Auto) | 23 | .objectFit(ImageFit.Auto) |
| 24 | .width('92lpx') | 24 | .width('92lpx') |
| 25 | .height('92lpx') | 25 | .height('92lpx') |
| @@ -128,7 +128,7 @@ export struct FollowChildComponent{ | @@ -128,7 +128,7 @@ export struct FollowChildComponent{ | ||
| 128 | Row() { | 128 | Row() { |
| 129 | Row(){ | 129 | Row(){ |
| 130 | Stack({alignContent: Alignment.Bottom}){ | 130 | Stack({alignContent: Alignment.Bottom}){ |
| 131 | - Image(StringUtils.isEmpty(this.data.headPhotoUrl)?$r('app.media.default_head'):this.data.headPhotoUrl) | 131 | + Image(StringUtils.isEmpty(this.data.headPhotoUrl)?$r('app.media.icon_default_head_mater'):this.data.headPhotoUrl) |
| 132 | .objectFit(ImageFit.Auto) | 132 | .objectFit(ImageFit.Auto) |
| 133 | .width('92lpx') | 133 | .width('92lpx') |
| 134 | .height('92lpx') | 134 | .height('92lpx') |
| @@ -70,7 +70,7 @@ export struct FollowListDetailUI { | @@ -70,7 +70,7 @@ export struct FollowListDetailUI { | ||
| 70 | Column() { | 70 | Column() { |
| 71 | if (this.count === 0) { | 71 | if (this.count === 0) { |
| 72 | if (this.isGetRequest == true) { | 72 | if (this.isGetRequest == true) { |
| 73 | - EmptyComponent({ emptyType: 14 }) | 73 | + EmptyComponent({ emptyType: 14,emptyHeight:"100%" }) |
| 74 | .layoutWeight(1) | 74 | .layoutWeight(1) |
| 75 | .width('100%') | 75 | .width('100%') |
| 76 | } | 76 | } |
| @@ -179,6 +179,7 @@ export struct FollowListDetailUI { | @@ -179,6 +179,7 @@ export struct FollowListDetailUI { | ||
| 179 | if (!this.data || value.list.length == 0) { | 179 | if (!this.data || value.list.length == 0) { |
| 180 | this.hasMore = false | 180 | this.hasMore = false |
| 181 | this.isLoading = false | 181 | this.isLoading = false |
| 182 | + this.isGetRequest = true | ||
| 182 | } else { | 183 | } else { |
| 183 | this.getFollowListStatus(value) | 184 | this.getFollowListStatus(value) |
| 184 | } | 185 | } |
| @@ -226,6 +227,8 @@ export struct FollowListDetailUI { | @@ -226,6 +227,8 @@ export struct FollowListDetailUI { | ||
| 226 | }) | 227 | }) |
| 227 | }) | 228 | }) |
| 228 | this.getFollowStatus(data_temp, result.totalCount) | 229 | this.getFollowStatus(data_temp, result.totalCount) |
| 230 | + }else{ | ||
| 231 | + this.isGetRequest = true | ||
| 229 | } | 232 | } |
| 230 | }).catch((err: Error) => { | 233 | }).catch((err: Error) => { |
| 231 | console.log(TAG, JSON.stringify(err)) | 234 | console.log(TAG, JSON.stringify(err)) |
-
Please register or login to post a comment