Showing
2 changed files
with
9 additions
and
8 deletions
| @@ -55,9 +55,10 @@ export struct WdWebComponent { | @@ -55,9 +55,10 @@ export struct WdWebComponent { | ||
| 55 | let url: string = event.data.getRequestUrl().toString() | 55 | let url: string = event.data.getRequestUrl().toString() |
| 56 | return this.onLoadIntercept(url); | 56 | return this.onLoadIntercept(url); |
| 57 | }) | 57 | }) |
| 58 | - .onControllerAttached(() => { | ||
| 59 | - this.webviewControl.setCustomUserAgent(this.userAgent); | ||
| 60 | - }) | 58 | + // 添加之后影响了专题详情页中 点击稿件进详情的操作,这里先临时注释 |
| 59 | + // .onControllerAttached(() => { | ||
| 60 | + // this.webviewControl.setCustomUserAgent(this.userAgent); | ||
| 61 | + // }) | ||
| 61 | } | 62 | } |
| 62 | } | 63 | } |
| 63 | 64 | ||
| @@ -119,7 +120,7 @@ export struct WdWebComponent { | @@ -119,7 +120,7 @@ export struct WdWebComponent { | ||
| 119 | this.isPageEnd = true | 120 | this.isPageEnd = true |
| 120 | } | 121 | } |
| 121 | onLoadIntercept: (url: string) => boolean = (url: string) => { | 122 | onLoadIntercept: (url: string) => boolean = (url: string) => { |
| 122 | - Logger.debug(TAG, 'onLoadIntercept'); | 123 | + Logger.debug(TAG, 'onLoadIntercept' + url); |
| 123 | url = url.replace("%(?![0-9a-fA-F]{2})", "%25") | 124 | url = url.replace("%(?![0-9a-fA-F]{2})", "%25") |
| 124 | .replace("\\+", "%2B"); | 125 | .replace("\\+", "%2B"); |
| 125 | url = decodeURIComponent(url) | 126 | url = decodeURIComponent(url) |
| @@ -168,10 +168,10 @@ export struct SpacialTopicPageComponent { | @@ -168,10 +168,10 @@ export struct SpacialTopicPageComponent { | ||
| 168 | .height(CommonConstants.FULL_HEIGHT) | 168 | .height(CommonConstants.FULL_HEIGHT) |
| 169 | .padding({ bottom: this.action?.params?.backVisibility ? 115 : 75 }) | 169 | .padding({ bottom: this.action?.params?.backVisibility ? 115 : 75 }) |
| 170 | 170 | ||
| 171 | - RelativeContainer() { | ||
| 172 | - // 挂角广告 | ||
| 173 | - this.pageHornAd() | ||
| 174 | - } | 171 | + // RelativeContainer() { |
| 172 | + // // 挂角广告 | ||
| 173 | + // this.pageHornAd() | ||
| 174 | + // } | ||
| 175 | 175 | ||
| 176 | if (!this.isNetConnected) { | 176 | if (!this.isNetConnected) { |
| 177 | Column() { | 177 | Column() { |
-
Please register or login to post a comment