Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main
* 'main' of http://192.168.1.42/developOne/harmonyPool: 电子报优化骨架屏逻辑 电子报优化骨架屏逻辑 fix: 18537 精选评论卡-评论有动态表情时不该不展示 fix: 18537 精选评论卡-评论有动态表情时不该不展示
Showing
3 changed files
with
17 additions
and
5 deletions
| @@ -40,7 +40,6 @@ export struct ENewspaperItemComponent { | @@ -40,7 +40,6 @@ export struct ENewspaperItemComponent { | ||
| 40 | Image(this.newspaperListItemBean.pagePic) | 40 | Image(this.newspaperListItemBean.pagePic) |
| 41 | .width(px2vp(this.itemPicWidth)) | 41 | .width(px2vp(this.itemPicWidth)) |
| 42 | .height(px2vp(this.itemPicHeight)) | 42 | .height(px2vp(this.itemPicHeight)) |
| 43 | - .alt($r('app.media.paper_placeholder')) | ||
| 44 | .onComplete((event) => { | 43 | .onComplete((event) => { |
| 45 | if (event?.loadingStatus == 1) { | 44 | if (event?.loadingStatus == 1) { |
| 46 | this.contentWidth = event?.contentWidth | 45 | this.contentWidth = event?.contentWidth |
| @@ -50,9 +49,9 @@ export struct ENewspaperItemComponent { | @@ -50,9 +49,9 @@ export struct ENewspaperItemComponent { | ||
| 50 | }) | 49 | }) |
| 51 | .objectFit(ImageFit.Fill) | 50 | .objectFit(ImageFit.Fill) |
| 52 | .zIndex(10) | 51 | .zIndex(10) |
| 53 | - // newsSkeleton() | ||
| 54 | - // .height('100%') | ||
| 55 | - // .zIndex(1) | 52 | + newsSkeleton() |
| 53 | + .visibility(this.isShowSkeleton ? Visibility.Visible : Visibility.None) | ||
| 54 | + .zIndex(1) | ||
| 56 | if (this.contentWidth !== 0) { | 55 | if (this.contentWidth !== 0) { |
| 57 | Canvas(this.context) | 56 | Canvas(this.context) |
| 58 | .width(px2vp(this.contentWidth)) | 57 | .width(px2vp(this.contentWidth)) |
| @@ -29,6 +29,7 @@ export struct ZhSingleRow06 { | @@ -29,6 +29,7 @@ export struct ZhSingleRow06 { | ||
| 29 | @State loadImg: boolean = false; | 29 | @State loadImg: boolean = false; |
| 30 | 30 | ||
| 31 | async aboutToAppear(): Promise<void> { | 31 | async aboutToAppear(): Promise<void> { |
| 32 | + console.log('Zh_Single_Row-06', JSON.stringify(this.compDTO.operDataList[0]?.commentInfo)) | ||
| 32 | this.getInteractDataStatus() | 33 | this.getInteractDataStatus() |
| 33 | this.loadImg = await onlyWifiLoadImg(); | 34 | this.loadImg = await onlyWifiLoadImg(); |
| 34 | } | 35 | } |
| @@ -101,13 +102,24 @@ export struct ZhSingleRow06 { | @@ -101,13 +102,24 @@ export struct ZhSingleRow06 { | ||
| 101 | .textOverflow({overflow: TextOverflow.Ellipsis}) | 102 | .textOverflow({overflow: TextOverflow.Ellipsis}) |
| 102 | .lineHeight(23) | 103 | .lineHeight(23) |
| 103 | .fontSize(16) | 104 | .fontSize(16) |
| 105 | + .margin({bottom: this.compDTO.operDataList[0]?.commentInfo?.commentPics ? 0 : 10}) | ||
| 106 | + .padding({bottom: this.compDTO.operDataList[0]?.commentInfo?.commentPics ? 0 : 10}) | ||
| 107 | + .textAlign(TextAlign.Start) | ||
| 108 | + .width('100%') | ||
| 109 | + .border({width: { bottom: this.compDTO.operDataList[0]?.commentInfo?.commentPics ? 0 : 1 }}) | ||
| 110 | + .borderColor(0xf4f4f4) | ||
| 111 | + | ||
| 112 | + Text('[动画表情]') | ||
| 113 | + .fontWeight(500) | ||
| 114 | + .lineHeight(23) | ||
| 115 | + .fontSize(16) | ||
| 104 | .margin({bottom: 10}) | 116 | .margin({bottom: 10}) |
| 105 | .padding({bottom: 10}) | 117 | .padding({bottom: 10}) |
| 106 | .textAlign(TextAlign.Start) | 118 | .textAlign(TextAlign.Start) |
| 107 | .width('100%') | 119 | .width('100%') |
| 108 | .border({width: {bottom: 1}}) | 120 | .border({width: {bottom: 1}}) |
| 109 | .borderColor(0xf4f4f4) | 121 | .borderColor(0xf4f4f4) |
| 110 | - | 122 | + .visibility(this.compDTO.operDataList[0]?.commentInfo?.commentPics ? Visibility.Visible : Visibility.None) |
| 111 | 123 | ||
| 112 | Row() { | 124 | Row() { |
| 113 | Image($r('app.media.icon_clip')) | 125 | Image($r('app.media.icon_clip')) |
-
Please register or login to post a comment