Showing
2 changed files
with
9 additions
and
5 deletions
| @@ -48,7 +48,7 @@ export struct WdWebLocalComponent { | @@ -48,7 +48,7 @@ export struct WdWebLocalComponent { | ||
| 48 | 48 | ||
| 49 | Row() { | 49 | Row() { |
| 50 | RelativeContainer() { | 50 | RelativeContainer() { |
| 51 | - Web({ src: this.webResource, controller: this.webviewControl }) | 51 | + Web({ src: this.webResource, controller: this.webviewControl, renderMode: RenderMode.SYNC_RENDER }) |
| 52 | .domStorageAccess(true) | 52 | .domStorageAccess(true) |
| 53 | .databaseAccess(true) | 53 | .databaseAccess(true) |
| 54 | .javaScriptAccess(true) | 54 | .javaScriptAccess(true) |
| @@ -56,7 +56,9 @@ export struct WdWebLocalComponent { | @@ -56,7 +56,9 @@ export struct WdWebLocalComponent { | ||
| 56 | .mixedMode(MixedMode.All) | 56 | .mixedMode(MixedMode.All) |
| 57 | .onlineImageAccess(true) | 57 | .onlineImageAccess(true) |
| 58 | .enableNativeEmbedMode(true) | 58 | .enableNativeEmbedMode(true) |
| 59 | - .height(this.webHeight) | 59 | + .layoutMode(WebLayoutMode.FIT_CONTENT) |
| 60 | + .nestedScroll({ scrollForward: NestedScrollMode.SELF_FIRST, scrollBackward: NestedScrollMode.PARENT_FIRST }) | ||
| 61 | + // .height(this.webHeight) | ||
| 60 | .onPageBegin((event) => { | 62 | .onPageBegin((event) => { |
| 61 | this.onPageBegin(event?.url); | 63 | this.onPageBegin(event?.url); |
| 62 | }) | 64 | }) |
| @@ -87,6 +87,7 @@ export struct ImageAndTextPageComponent { | @@ -87,6 +87,7 @@ export struct ImageAndTextPageComponent { | ||
| 87 | action: this.action, | 87 | action: this.action, |
| 88 | isPageEnd: $isPageEnd | 88 | isPageEnd: $isPageEnd |
| 89 | }) | 89 | }) |
| 90 | + .padding({bottom:10}) | ||
| 90 | Column() { | 91 | Column() { |
| 91 | // 点赞 | 92 | // 点赞 |
| 92 | if (this.contentDetailData[0]?.openLikes) { | 93 | if (this.contentDetailData[0]?.openLikes) { |
| @@ -114,8 +115,8 @@ export struct ImageAndTextPageComponent { | @@ -114,8 +115,8 @@ export struct ImageAndTextPageComponent { | ||
| 114 | .fontWeight(500) | 115 | .fontWeight(500) |
| 115 | } | 116 | } |
| 116 | } | 117 | } |
| 117 | - .width(140) | ||
| 118 | - .height(36) | 118 | + .width(154) |
| 119 | + .height(40) | ||
| 119 | .justifyContent(FlexAlign.Center) | 120 | .justifyContent(FlexAlign.Center) |
| 120 | .alignItems(VerticalAlign.Center) | 121 | .alignItems(VerticalAlign.Center) |
| 121 | .borderRadius(20) | 122 | .borderRadius(20) |
| @@ -127,7 +128,8 @@ export struct ImageAndTextPageComponent { | @@ -127,7 +128,8 @@ export struct ImageAndTextPageComponent { | ||
| 127 | this.toggleLikeStatus() | 128 | this.toggleLikeStatus() |
| 128 | }) | 129 | }) |
| 129 | 130 | ||
| 130 | - }.width(CommonConstants.FULL_WIDTH).height(80) | 131 | + }.width(CommonConstants.FULL_WIDTH) |
| 132 | + .padding({top:14,bottom:24}) | ||
| 131 | .justifyContent(FlexAlign.Center) | 133 | .justifyContent(FlexAlign.Center) |
| 132 | } | 134 | } |
| 133 | if (this.recommendList.length > 0) { | 135 | if (this.recommendList.length > 0) { |
-
Please register or login to post a comment