chenquansheng

fix |> 屏蔽代码修复专题详情页点击稿件无法跳转详情页的问题

... ... @@ -55,9 +55,10 @@ export struct WdWebComponent {
let url: string = event.data.getRequestUrl().toString()
return this.onLoadIntercept(url);
})
.onControllerAttached(() => {
this.webviewControl.setCustomUserAgent(this.userAgent);
})
// 添加之后影响了专题详情页中 点击稿件进详情的操作,这里先临时注释
// .onControllerAttached(() => {
// this.webviewControl.setCustomUserAgent(this.userAgent);
// })
}
}
... ... @@ -119,7 +120,7 @@ export struct WdWebComponent {
this.isPageEnd = true
}
onLoadIntercept: (url: string) => boolean = (url: string) => {
Logger.debug(TAG, 'onLoadIntercept');
Logger.debug(TAG, 'onLoadIntercept' + url);
url = url.replace("%(?![0-9a-fA-F]{2})", "%25")
.replace("\\+", "%2B");
url = decodeURIComponent(url)
... ...
... ... @@ -168,10 +168,10 @@ export struct SpacialTopicPageComponent {
.height(CommonConstants.FULL_HEIGHT)
.padding({ bottom: this.action?.params?.backVisibility ? 115 : 75 })
RelativeContainer() {
// 挂角广告
this.pageHornAd()
}
// RelativeContainer() {
// // 挂角广告
// this.pageHornAd()
// }
if (!this.isNetConnected) {
Column() {
... ...