Showing
2 changed files
with
4 additions
and
2 deletions
| @@ -40,6 +40,7 @@ export struct ENewspaperItemComponent { | @@ -40,6 +40,7 @@ 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')) | ||
| 43 | .onComplete((event) => { | 44 | .onComplete((event) => { |
| 44 | if (event?.loadingStatus == 1) { | 45 | if (event?.loadingStatus == 1) { |
| 45 | this.contentWidth = event?.contentWidth | 46 | this.contentWidth = event?.contentWidth |
| @@ -49,8 +50,9 @@ export struct ENewspaperItemComponent { | @@ -49,8 +50,9 @@ export struct ENewspaperItemComponent { | ||
| 49 | }) | 50 | }) |
| 50 | .objectFit(ImageFit.Fill) | 51 | .objectFit(ImageFit.Fill) |
| 51 | .zIndex(10) | 52 | .zIndex(10) |
| 52 | - newsSkeleton() | ||
| 53 | - .zIndex(1) | 53 | + // newsSkeleton() |
| 54 | + // .height('100%') | ||
| 55 | + // .zIndex(1) | ||
| 54 | if (this.contentWidth !== 0) { | 56 | if (this.contentWidth !== 0) { |
| 55 | Canvas(this.context) | 57 | Canvas(this.context) |
| 56 | .width(px2vp(this.contentWidth)) | 58 | .width(px2vp(this.contentWidth)) |
-
Please register or login to post a comment