Showing
7 changed files
with
14 additions
and
12 deletions
| @@ -44,7 +44,7 @@ export struct CompParser { | @@ -44,7 +44,7 @@ export struct CompParser { | ||
| 44 | 44 | ||
| 45 | @Builder | 45 | @Builder |
| 46 | componentBuilder(compDTO: CompDTO, compIndex: number) { | 46 | componentBuilder(compDTO: CompDTO, compIndex: number) { |
| 47 | - // if (compDTO.operDataList[0]?.objectType !== '3' && compDTO.operDataList[0]?.objectType !== '13') { //暂时屏蔽活动和音频详情入口 | 47 | + if (compDTO.operDataList[0]?.objectType !== '3' && compDTO.operDataList[0]?.objectType !== '13') { //暂时屏蔽活动和音频详情入口 |
| 48 | if (compDTO.compStyle === CompStyle.Label_03) { | 48 | if (compDTO.compStyle === CompStyle.Label_03) { |
| 49 | LabelComponent({ compDTO: compDTO }) | 49 | LabelComponent({ compDTO: compDTO }) |
| 50 | Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) | 50 | Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) |
| @@ -119,6 +119,6 @@ export struct CompParser { | @@ -119,6 +119,6 @@ export struct CompParser { | ||
| 119 | } | 119 | } |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | - // } | 122 | + } |
| 123 | } | 123 | } |
| 124 | 124 |
| @@ -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)) |
| @@ -449,7 +449,7 @@ struct ChannelDialog { | @@ -449,7 +449,7 @@ struct ChannelDialog { | ||
| 449 | }.width('100%').height('100%') | 449 | }.width('100%').height('100%') |
| 450 | .scrollBar(BarState.Off) | 450 | .scrollBar(BarState.Off) |
| 451 | } | 451 | } |
| 452 | - .padding({ top: 40, right: 15, bottom: 20, left: 15 }) | 452 | + .padding({ top: 40, right: 15, bottom: 40, left: 15 }) |
| 453 | .backgroundColor('#ffffff') | 453 | .backgroundColor('#ffffff') |
| 454 | } | 454 | } |
| 455 | } | 455 | } |
| @@ -526,10 +526,9 @@ struct ChannelSubscriptionLayout { | @@ -526,10 +526,9 @@ struct ChannelSubscriptionLayout { | ||
| 526 | .width(18) | 526 | .width(18) |
| 527 | } | 527 | } |
| 528 | .width(36) | 528 | .width(36) |
| 529 | - .height(36) | 529 | + .height(40) |
| 530 | .justifyContent(FlexAlign.Center) | 530 | .justifyContent(FlexAlign.Center) |
| 531 | - .padding({ bottom: 6 }) | ||
| 532 | - .backgroundColor('#ffffff') | 531 | + .backgroundColor(Color.White) |
| 533 | .onClick(() => { | 532 | .onClick(() => { |
| 534 | if (this.dialogController != null) { | 533 | if (this.dialogController != null) { |
| 535 | this.dialogController.open() | 534 | this.dialogController.open() |
| @@ -197,7 +197,7 @@ export struct EmptyComponent { | @@ -197,7 +197,7 @@ export struct EmptyComponent { | ||
| 197 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoNetwork) { | 197 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoNetwork) { |
| 198 | contentString = '网络出小差了,请检查网络后重试' | 198 | contentString = '网络出小差了,请检查网络后重试' |
| 199 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_ContentFailed) { | 199 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_ContentFailed) { |
| 200 | - contentString = '获取内容失败请重试' | 200 | + contentString = '获取内容失败,请重试' |
| 201 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoCreation) { | 201 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoCreation) { |
| 202 | contentString = '暂无作品' | 202 | contentString = '暂无作品' |
| 203 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoBooking) { | 203 | } else if (this.emptyType === WDViewDefaultType.WDViewDefaultType_NoBooking) { |
| @@ -52,7 +52,7 @@ export class PageHelper { | @@ -52,7 +52,7 @@ export class PageHelper { | ||
| 52 | PageViewModel.getPageInfo(pageModel.pageId).then(pageInfo => { | 52 | PageViewModel.getPageInfo(pageModel.pageId).then(pageInfo => { |
| 53 | if (pageInfo == null) { | 53 | if (pageInfo == null) { |
| 54 | pageModel.viewType = ViewType.EMPTY; | 54 | pageModel.viewType = ViewType.EMPTY; |
| 55 | - pageModel.emptyType = WDViewDefaultType.WDViewDefaultType_NoListContent; | 55 | + pageModel.emptyType = WDViewDefaultType.WDViewDefaultType_NoContent1; |
| 56 | return; | 56 | return; |
| 57 | } | 57 | } |
| 58 | pageModel.pageInfo = pageInfo; | 58 | pageModel.pageInfo = pageInfo; |
| @@ -94,7 +94,7 @@ export class PageHelper { | @@ -94,7 +94,7 @@ export class PageHelper { | ||
| 94 | // 没数据,展示空页面 | 94 | // 没数据,展示空页面 |
| 95 | Logger.debug(TAG, 'aboutToAppear, data response page ' + pageModel.pageId + ', comp list is empty.'); | 95 | Logger.debug(TAG, 'aboutToAppear, data response page ' + pageModel.pageId + ', comp list is empty.'); |
| 96 | pageModel.viewType = ViewType.EMPTY; | 96 | pageModel.viewType = ViewType.EMPTY; |
| 97 | - pageModel.emptyType = WDViewDefaultType.WDViewDefaultType_NoListContent; | 97 | + pageModel.emptyType = WDViewDefaultType.WDViewDefaultType_NoContent1; |
| 98 | 98 | ||
| 99 | } | 99 | } |
| 100 | } | 100 | } |
-
Please register or login to post a comment