Showing
1 changed file
with
15 additions
and
13 deletions
| @@ -155,24 +155,26 @@ export struct SpacialTopicPageComponent { | @@ -155,24 +155,26 @@ export struct SpacialTopicPageComponent { | ||
| 155 | // .fontWeight(500) | 155 | // .fontWeight(500) |
| 156 | // .visibility(this.action?.params?.backVisibility && this.isPageEnd ? Visibility.Visible : Visibility.None) | 156 | // .visibility(this.action?.params?.backVisibility && this.isPageEnd ? Visibility.Visible : Visibility.None) |
| 157 | 157 | ||
| 158 | - WdWebComponent({ | ||
| 159 | - webviewControl: this.webviewControl, | ||
| 160 | - webUrl: this.webUrl, | ||
| 161 | - reload: this.reload, | ||
| 162 | - onWebPrepared: this.onWebPrepared.bind(this), | ||
| 163 | - isPageEnd: $isPageEnd, | ||
| 164 | - receiveH5SendToNativeData: this.receiveH5SendToNativeData.bind(this) | ||
| 165 | - }) | 158 | + RelativeContainer() { |
| 159 | + | ||
| 160 | + WdWebComponent({ | ||
| 161 | + webviewControl: this.webviewControl, | ||
| 162 | + webUrl: this.webUrl, | ||
| 163 | + reload: this.reload, | ||
| 164 | + onWebPrepared: this.onWebPrepared.bind(this), | ||
| 165 | + isPageEnd: $isPageEnd, | ||
| 166 | + receiveH5SendToNativeData: this.receiveH5SendToNativeData.bind(this) | ||
| 167 | + }) | ||
| 168 | + .id('web_page') | ||
| 169 | + | ||
| 170 | + // 挂角广告 | ||
| 171 | + this.pageHornAd() | ||
| 172 | + } | ||
| 166 | } | 173 | } |
| 167 | .width(CommonConstants.FULL_WIDTH) | 174 | .width(CommonConstants.FULL_WIDTH) |
| 168 | .height(CommonConstants.FULL_HEIGHT) | 175 | .height(CommonConstants.FULL_HEIGHT) |
| 169 | .padding({ bottom: this.action?.params?.backVisibility ? 115 : 75 }) | 176 | .padding({ bottom: this.action?.params?.backVisibility ? 115 : 75 }) |
| 170 | 177 | ||
| 171 | - // RelativeContainer() { | ||
| 172 | - // // 挂角广告 | ||
| 173 | - // this.pageHornAd() | ||
| 174 | - // } | ||
| 175 | - | ||
| 176 | if (!this.isNetConnected) { | 178 | if (!this.isNetConnected) { |
| 177 | Column() { | 179 | Column() { |
| 178 | Image($r('app.media.line')) | 180 | Image($r('app.media.line')) |
-
Please register or login to post a comment